From e6e82bf3361ac638aad01ca19f07598336c00c28 Mon Sep 17 00:00:00 2001 From: Scott Allen Date: Fri, 7 Jul 2017 11:30:48 -0400 Subject: [PATCH] Fix initialisation of Right button for DevKit --- src/Arduboy2Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Arduboy2Core.cpp b/src/Arduboy2Core.cpp index 44730f8..cb6167a 100644 --- a/src/Arduboy2Core.cpp +++ b/src/Arduboy2Core.cpp @@ -163,10 +163,10 @@ void Arduboy2Core::bootPins() DDRB |= _BV(BLUE_LED_BIT) | _BV(SPI_MOSI_BIT) | _BV(SPI_SCK_BIT); // Port C INPUT_PULLUP or HIGH - PORTE |= _BV(RIGHT_BUTTON_BIT); + PORTC |= _BV(RIGHT_BUTTON_BIT); // Port C INPUT or LOW (none) // Port C inputs - DDRE &= ~(_BV(RIGHT_BUTTON_BIT)); + DDRC &= ~(_BV(RIGHT_BUTTON_BIT)); // Port C outputs (none) // Port D INPUT_PULLUP or HIGH