make input ports(PE6,7) *with pullup*.

This commit is contained in:
tmk 2010-10-11 23:28:03 +09:00
parent 99bba8d949
commit c8e1ad8c91
2 changed files with 15 additions and 59 deletions

View file

@ -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;