|16 | 5 |+Z3-LVC138A-2-B |COL3 |PD5
|17 | 4 |+Z3-LVC138A-1-A |COL2 |PD4
|18 | 3 |+Z3-LVC138A-4-~G2A Z6-TP1684-5-~EN |COL1 |PD7
- |19 | 2 |+Z7-LV07A-11-~InsertLED |LED1 |PB7
+ |19 | 2 |+Z7-LV07A-11-~InsertLED |LED1 |PB5
|20 | 1 |+Z7-LV07A-13-~CapsLED |LED2 |PB6
```
{
// lights LED on Insert when layer 1 is enabled
if (layer_state & (1L<<1)) {
- PORTB &= ~(1<<7);
+ PORTB &= ~(1<<5);
} else {
- PORTB |= (1<<7);
+ PORTB |= (1<<5);
}
}
KEY_INIT();
// LEDs on CapsLock and Insert
- DDRB |= (1<<6) | (1<<7);
- PORTB |= (1<<6) | (1<<7);
+ DDRB |= (1<<5) | (1<<6);
+ PORTB |= (1<<5) | (1<<6);
// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;