diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-05 16:00:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-05 16:00:05 +0100 |
commit | 6bdfa059a45b8b0dffc392e994827467463f0103 (patch) | |
tree | 9d2a7ff61dafbb2522a0a70f16179592e7c64096 /include/esp8266 | |
parent | 7b5284023070b841293d0c5a6be0c6c345372cde (diff) |
Add basic ESP8266 support
Diffstat (limited to 'include/esp8266')
-rw-r--r-- | include/esp8266/driver/gpio.h | 18 | ||||
-rw-r--r-- | include/esp8266/user_config.h | 5 |
2 files changed, 23 insertions, 0 deletions
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 diff --git a/include/esp8266/user_config.h b/include/esp8266/user_config.h new file mode 100644 index 0000000..529fb46 --- /dev/null +++ b/include/esp8266/user_config.h @@ -0,0 +1,5 @@ +/* + * required by ESP8266 SDK's osapi.h + * + * Intentionally left blank. + */ |