summaryrefslogtreecommitdiff
path: root/keyboard/macway/matrix.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-06-15 16:14:56 +0900
committertmk <nobody@nowhere>2012-06-15 16:14:56 +0900
commitdd10d11a449b1c050d6e42c61e2ecb910b5b678e (patch)
treed2a2d6429bc00ec2f6edd5a49a909c1ddbe4a8a0 /keyboard/macway/matrix.c
parent784c6e39795edd86e368e601f3c2e367a758c69f (diff)
Change pin configurationa and keymap.
Diffstat (limited to 'keyboard/macway/matrix.c')
-rw-r--r--keyboard/macway/matrix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboard/macway/matrix.c b/keyboard/macway/matrix.c
index 56fb858960..394c3d9709 100644
--- a/keyboard/macway/matrix.c
+++ b/keyboard/macway/matrix.c
@@ -216,9 +216,9 @@ inline
static void unselect_rows(void)
{
// Hi-Z(DDR:0, PORT:0) to unselect
- DDRC &= ~0b11000000; // PC: 7,6
+ DDRC &= ~0b01000000; // PC: 6
PORTC &= ~0b11000000;
- DDRD &= ~0b11000111; // PD: 7,6,2,1,0
+ DDRD &= ~0b11100111; // PD: 7,6,5,2,1,0
PORTD &= ~0b11000111;
DDRF &= ~0b11000000; // PF: 7,6
PORTF &= ~0b11000000;
@@ -229,15 +229,15 @@ static void select_row(uint8_t row)
{
// Output low(DDR:1, PORT:0) to select
// row: 0 1 2 3 4 5 6 7 8
- // pin: PD0, PC7, PD7, PF6, PD6, PD1, PD2, PC6, PF7
+ // pin: PD0, PD5, PD7, PF6, PD6, PD1, PD2, PC6, PF7
switch (row) {
case 0:
DDRD |= (1<<0);
PORTD &= ~(1<<0);
break;
case 1:
- DDRC |= (1<<7);
- PORTC &= ~(1<<7);
+ DDRD |= (1<<5);
+ PORTD &= ~(1<<5);
break;
case 2:
DDRD |= (1<<7);