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 ©); 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