From 6bdfa059a45b8b0dffc392e994827467463f0103 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Dec 2017 16:00:05 +0100 Subject: Add basic ESP8266 support --- include/esp8266/driver/gpio.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/esp8266/driver/gpio.h (limited to 'include/esp8266/driver') diff --git a/include/esp8266/driver/gpio.h b/include/esp8266/driver/gpio.h new file mode 100644 index 0000000..177e7c5 --- /dev/null +++ b/include/esp8266/driver/gpio.h @@ -0,0 +1,18 @@ +#ifndef GPIO_H +#define GPIO_H + +class GPIO { + private: + GPIO(const GPIO ©); + + public: + GPIO () {} + void setup(); + void led_on(unsigned char id); + void led_off(unsigned char id); + void led_toggle(unsigned char id); +}; + +extern GPIO gpio; + +#endif -- cgit v1.2.3