Fix initialisation of Right button for DevKit

This commit is contained in:
Scott Allen 2017-07-07 11:30:48 -04:00
parent 46ecb2dd78
commit e6e82bf336
1 changed files with 2 additions and 2 deletions

View File

@ -163,10 +163,10 @@ void Arduboy2Core::bootPins()
DDRB |= _BV(BLUE_LED_BIT) | _BV(SPI_MOSI_BIT) | _BV(SPI_SCK_BIT); DDRB |= _BV(BLUE_LED_BIT) | _BV(SPI_MOSI_BIT) | _BV(SPI_SCK_BIT);
// Port C INPUT_PULLUP or HIGH // Port C INPUT_PULLUP or HIGH
PORTE |= _BV(RIGHT_BUTTON_BIT); PORTC |= _BV(RIGHT_BUTTON_BIT);
// Port C INPUT or LOW (none) // Port C INPUT or LOW (none)
// Port C inputs // Port C inputs
DDRE &= ~(_BV(RIGHT_BUTTON_BIT)); DDRC &= ~(_BV(RIGHT_BUTTON_BIT));
// Port C outputs (none) // Port C outputs (none)
// Port D INPUT_PULLUP or HIGH // Port D INPUT_PULLUP or HIGH