summaryrefslogtreecommitdiff
path: root/include/arch/arduino-nano
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/arduino-nano')
-rw-r--r--include/arch/arduino-nano/driver/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h
index 47cb7dc..4fc9c63 100644
--- a/include/arch/arduino-nano/driver/gpio.h
+++ b/include/arch/arduino-nano/driver/gpio.h
@@ -57,13 +57,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) {
PORTB |= _BV(PB5);
}
- inline void led_off(unsigned char id) {
+ inline void led_off(unsigned char id = 0) {
PORTB &= ~_BV(PB5);
}
- inline void led_toggle(unsigned char id) {
+ inline void led_toggle(unsigned char id = 0) {
PINB = _BV(PB5);
}
inline void input(unsigned char const pin) {