From 2a206315ac194c21e3a14ca0b3a9e29cd0cec0b2 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Fri, 14 Sep 2012 23:01:20 +0200 Subject: [PATCH] buttons according to pins.txt --- firmware/buttons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/buttons.c b/firmware/buttons.c index d5a18be..84dd8da 100644 --- a/firmware/buttons.c +++ b/firmware/buttons.c @@ -11,8 +11,8 @@ static unsigned char sleep_after_release; void init_buttons() { - DDRB &= ~(_BV(PB6) | _BV(PB0)); - PORTB |= _BV(PB6) | _BV(PB0); + DDRB &= ~(_BV(PB4) | _BV(PB6)); + PORTB |= _BV(PB4) | _BV(PB6); sleep_after_release = 0; // log_byte(PORTB); @@ -56,7 +56,7 @@ void timer_check_buttons() unsigned char i; unsigned char port_states[N_BUTTONS] = { pinb & _BV(PB6), - pinb & _BV(PB0), + pinb & _BV(PB4), }; for (i = 0; i < N_BUTTONS; i++) { if (!port_states[i]) { // is pressed -- 2.39.3