diff options
Diffstat (limited to 'include/arch/lora32u4ii')
-rw-r--r-- | include/arch/lora32u4ii/driver/gpio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/lora32u4ii/driver/gpio.h b/include/arch/lora32u4ii/driver/gpio.h index 8bbaa40..7c03f3d 100644 --- a/include/arch/lora32u4ii/driver/gpio.h +++ b/include/arch/lora32u4ii/driver/gpio.h @@ -62,13 +62,13 @@ class GPIO { return _BV(pin % 8); } #pragma GCC diagnostic ignored "-Wunused-parameter" - inline void led_on(unsigned char id) { + inline void led_on(unsigned char id = 0) { PORTC |= _BV(PC7); } - inline void led_off(unsigned char id) { + inline void led_off(unsigned char id = 0) { PORTC &= ~_BV(PC7); } - inline void led_toggle(unsigned char id) { + inline void led_toggle(unsigned char id = 0) { PINC = _BV(PC7); } inline void input(unsigned char const pin) { |