]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
fc660c: Change pin for Insert LED
authortmk <hasu@tmk-kbd.com>
Sun, 2 Apr 2017 17:32:21 +0000 (02:32 +0900)
committertmk <hasu@tmk-kbd.com>
Sun, 2 Apr 2017 17:32:21 +0000 (02:32 +0900)
keyboard/fc660c/README.md
keyboard/fc660c/actionmap.c
keyboard/fc660c/fc660c.c

index 906396d357cbc03dfa2fa8717f1409476ece7096..ac46e64a23ac5849e4e25e60683c0019c6849687 100644 (file)
@@ -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
 
 ```
index e153cc117f9ed53fe7fb4ffbcc7f8803d19725cc..a8320aa840a58809613884351d2688350947d9ba 100644 (file)
@@ -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);
     }
 } 
index 62698850629a794d9e6501a32bace399887b6d63..226494445ea87227df200434479b97a5bbd3313a 100644 (file)
@@ -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;