diff options
author | tmk <nobody@nowhere> | 2010-10-11 23:28:03 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-10-11 23:28:03 +0900 |
commit | c8e1ad8c91e8edfd7a5c18d2b593ebf873924b13 (patch) | |
tree | 2fd1618869445ddbc9f8227f0babcbcd61c9c627 /matrix_hhkb.c | |
parent | 99bba8d949fe38d9f3b9a8aff7d0328fa3787160 (diff) |
make input ports(PE6,7) *with pullup*.
Diffstat (limited to 'matrix_hhkb.c')
-rw-r--r-- | matrix_hhkb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |