Browse Source

change pins of matrix rows. (teensy is installed inside of keyboard case.)

tags/v1.9
tmk 13 years ago
parent
commit
4be6458be7
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      matrix.c

+ 9
- 9
matrix.c View File

PORTF = 0x00; PORTF = 0x00;
break; break;
case 1: case 1:
DDRD = (1<<1);
DDRD = 0x00;
PORTD = 0x00; PORTD = 0x00;
DDRC = 0x00;
DDRC = (1<<7);
PORTC = 0x00; PORTC = 0x00;
DDRF = 0x00; DDRF = 0x00;
PORTF = 0x00; PORTF = 0x00;
break; break;
case 2: case 2:
DDRD = (1<<2);
DDRD = (1<<7);
PORTD = 0x00; PORTD = 0x00;
DDRC = 0x00; DDRC = 0x00;
PORTC = 0x00; PORTC = 0x00;
PORTF = 0x00; PORTF = 0x00;
break; break;
case 3: case 3:
DDRD = (1<<3);
DDRD = 0x00;
PORTD = 0x00; PORTD = 0x00;
DDRC = 0x00; DDRC = 0x00;
PORTC = 0x00; PORTC = 0x00;
DDRF = 0x00;
DDRF = (1<<6);
PORTF = 0x00; PORTF = 0x00;
break; break;
case 4: case 4:
PORTF = 0x00; PORTF = 0x00;
break; break;
case 5: case 5:
DDRD = (1<<7);
DDRD = (1<<1);
PORTD = 0x00; PORTD = 0x00;
DDRC = 0x00; DDRC = 0x00;
PORTC = 0x00; PORTC = 0x00;
PORTF = 0x00; PORTF = 0x00;
break; break;
case 6: case 6:
DDRD = 0x00;
DDRD = (1<<2);
PORTD = 0x00; PORTD = 0x00;
DDRC = (1<<6);
DDRC = 0x00;
PORTC = 0x00; PORTC = 0x00;
DDRF = 0x00; DDRF = 0x00;
PORTF = 0x00; PORTF = 0x00;
case 7: case 7:
DDRD = 0x00; DDRD = 0x00;
PORTD = 0x00; PORTD = 0x00;
DDRC = (1<<7);
DDRC = (1<<6);
PORTC = 0x00; PORTC = 0x00;
DDRF = 0x00; DDRF = 0x00;
PORTF = 0x00; PORTF = 0x00;

Loading…
Cancel
Save