summaryrefslogtreecommitdiff
path: root/include/posix/driver/gpio.h
blob: 09957298255230d954fac5871d2f1ba3bc0ccd4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GPIO_H
#define GPIO_H

class GPIO {
	private:
		GPIO(const GPIO &copy);
		unsigned char ledstate;

	public:
		GPIO () : ledstate(0) {}
		void setup() {}
		void led_on(unsigned char id);
		void led_off(unsigned char id);
		void led_toggle(unsigned char id);
};

extern GPIO gpio;

#endif