From 2ed3abb6da2ed519df6477d2fe82704b07a942e6 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 3 Apr 2017 02:32:21 +0900 Subject: [PATCH] fc660c: Change pin for Insert LED --- keyboard/fc660c/README.md | 2 +- keyboard/fc660c/actionmap.c | 4 ++-- keyboard/fc660c/fc660c.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/keyboard/fc660c/README.md b/keyboard/fc660c/README.md index 906396d3..ac46e64a 100644 --- a/keyboard/fc660c/README.md +++ b/keyboard/fc660c/README.md @@ -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 ``` diff --git a/keyboard/fc660c/actionmap.c b/keyboard/fc660c/actionmap.c index e153cc11..a8320aa8 100644 --- a/keyboard/fc660c/actionmap.c +++ b/keyboard/fc660c/actionmap.c @@ -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); } } diff --git a/keyboard/fc660c/fc660c.c b/keyboard/fc660c/fc660c.c index 62698850..22649444 100644 --- a/keyboard/fc660c/fc660c.c +++ b/keyboard/fc660c/fc660c.c @@ -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; -- 2.46.2