From 3fddb519f01ca53f1fd6f5c24e154912b25d1138 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 17 Jul 2018 09:57:10 +0200 Subject: Move include/$arch to include/arch/$arch to be consistent with src/ hierarchy --- include/esp8266/driver/gpio.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 include/esp8266/driver/gpio.h (limited to 'include/esp8266/driver/gpio.h') diff --git a/include/esp8266/driver/gpio.h b/include/esp8266/driver/gpio.h deleted file mode 100644 index 3db5d9d..0000000 --- a/include/esp8266/driver/gpio.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef GPIO_H -#define GPIO_H - -class GPIO { - private: - GPIO(const GPIO ©); - - public: - GPIO () {} - - enum Pin : unsigned char { - d3 = 0, tx, d4, rx, d2, d1, - d6 = 12, d7, d5, d8, - d0 = 16 - }; - - void setup(); - void led_on(unsigned char id); - void led_off(unsigned char id); - void led_toggle(unsigned char id); - void input(unsigned char const pin); - void input(unsigned char const pin, bool pullup); - void output(unsigned char const pin); - unsigned char read(unsigned char const pin); - void write(unsigned char const pin, unsigned char value); -}; - -extern GPIO gpio; - -#endif -- cgit v1.2.3