diff options
Diffstat (limited to 'include/arch/blinkenrocket/driver')
-rw-r--r-- | include/arch/blinkenrocket/driver/gpio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/blinkenrocket/driver/gpio.h b/include/arch/blinkenrocket/driver/gpio.h index 0d76521..af2648d 100644 --- a/include/arch/blinkenrocket/driver/gpio.h +++ b/include/arch/blinkenrocket/driver/gpio.h @@ -51,13 +51,13 @@ class GPIO { PORTD = 0x7f; DDRD = 0xff; } - inline void led_on(unsigned char id) { + inline void led_on(unsigned char id = 0) { PORTB |= _BV(id); } - inline void led_off(unsigned char id) { + inline void led_off(unsigned char id = 0) { PORTB &= ~_BV(id); } - inline void led_toggle(unsigned char id) { + inline void led_toggle(unsigned char id = 0) { PORTB ^= _BV(id); } inline void input(unsigned char const pin) { |