fw: Fix rotary input
Accidentally disabled pull-ups instead of enabling them.
This commit is contained in:
parent
c4c6446d16
commit
8fec7fbc8b
@ -10,7 +10,7 @@ static volatile uint8_t sw_event = 0;
|
|||||||
void input_init()
|
void input_init()
|
||||||
{
|
{
|
||||||
PORT_ROTARY(DDR) &= ~(PIN_ROTARY_A | PIN_ROTARY_B); // Configure as input
|
PORT_ROTARY(DDR) &= ~(PIN_ROTARY_A | PIN_ROTARY_B); // Configure as input
|
||||||
PORT_ROTARY(PORT) &= ~(PIN_ROTARY_A | PIN_ROTARY_B); // Set pullups
|
PORT_ROTARY(PORT) |= (PIN_ROTARY_A | PIN_ROTARY_B); // Set pullups
|
||||||
|
|
||||||
PORT_KEYPAD(DDR) &= ~(PIN_KEYPAD_MASK); // Key inputs
|
PORT_KEYPAD(DDR) &= ~(PIN_KEYPAD_MASK); // Key inputs
|
||||||
PORT_KEYPAD(PORT) |= PIN_KEYPAD_MASK; // Key pullups
|
PORT_KEYPAD(PORT) |= PIN_KEYPAD_MASK; // Key pullups
|
||||||
|
Loading…
Reference in New Issue
Block a user