summaryrefslogtreecommitdiff
path: root/include/arch/esp8266
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-09-23 21:05:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-09-23 21:05:09 +0200
commit30a29dcd0d064ab8403a9afb32c59800bb346840 (patch)
tree8e4d5c2c7d7575762a6af6833098a7f673ad1e0f /include/arch/esp8266
parent102e6f03e9d1ab9dc213b021b1dbe81d7fda332a (diff)
GPIO: Specify default LED ID
Diffstat (limited to 'include/arch/esp8266')
-rw-r--r--include/arch/esp8266/driver/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/esp8266/driver/gpio.h b/include/arch/esp8266/driver/gpio.h
index b609f76..29e7950 100644
--- a/include/arch/esp8266/driver/gpio.h
+++ b/include/arch/esp8266/driver/gpio.h
@@ -20,9 +20,9 @@ class GPIO {
};
void setup();
- void led_on(unsigned char id);
- void led_off(unsigned char id);
- void led_toggle(unsigned char id);
+ void led_on(unsigned char id = 0);
+ void led_off(unsigned char id = 0);
+ void led_toggle(unsigned char id = 0);
void input(unsigned char const pin);
void input(unsigned char const pin, bool pullup);
void output(unsigned char const pin);