From c8e1ad8c91e8edfd7a5c18d2b593ebf873924b13 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 11 Oct 2010 23:28:03 +0900 Subject: make input ports(PE6,7) *with pullup*. --- matrix_hhkb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matrix_hhkb.c') diff --git a/matrix_hhkb.c b/matrix_hhkb.c index d6ac0101d0..d1c0003b4a 100644 --- a/matrix_hhkb.c +++ b/matrix_hhkb.c @@ -37,9 +37,9 @@ void matrix_init(void) // row & col output(PB0-6) DDRB = 0xFF; PORTB = KEY_SELELCT(0, 0); - // KEY & VALID input w/o pullup(PE6,7) + // KEY & VALID input with pullup(PE6,7) DDRE = 0x3F; - PORTE = 0x00; + PORTE = 0xC0; // initialize matrix state: all keys off for (int i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0xFF; -- cgit v1.2.3