summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arch/arduino-nano/driver/gpio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h
index 74aa879..30df113 100644
--- a/include/arch/arduino-nano/driver/gpio.h
+++ b/include/arch/arduino-nano/driver/gpio.h
@@ -132,15 +132,15 @@ class GPIO {
}
} else if (pin < 24) {
if (value) {
- PORTB |= _BV(pin - 16);
+ PORTC |= _BV(pin - 16);
} else {
- PORTB &= ~_BV(pin - 16);
+ PORTC &= ~_BV(pin - 16);
}
} else if (pin < 32) {
if (value) {
- PORTB |= _BV(pin - 24);
+ PORTD |= _BV(pin - 24);
} else {
- PORTB &= ~_BV(pin - 24);
+ PORTD &= ~_BV(pin - 24);
}
}
}