From 30a29dcd0d064ab8403a9afb32c59800bb346840 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 23 Sep 2021 21:05:09 +0200 Subject: GPIO: Specify default LED ID --- include/arch/esp8266/driver/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/arch/esp8266/driver') 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); -- cgit v1.2.3