fc660c: Change pin for Insert LED
This commit is contained in:
parent
fc0fe84a69
commit
2ed3abb6da
3 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ Pinouts
|
|||
|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
|
||||
|
||||
```
|
||||
|
|
|
@ -79,8 +79,8 @@ void hook_layer_change(uint32_t layer_state)
|
|||
{
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,8 @@ void matrix_init(void)
|
|||
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;
|
||||
|
|
Reference in a new issue