diff options
author | trinity1561 <47289299+trinity1561@users.noreply.github.com> | 2019-11-20 16:11:00 -0500 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-11-20 13:10:59 -0800 |
commit | 0a5125a535ff5ee33fdb01853d32adcfd6b0860c (patch) | |
tree | 5ccd3bae3d36e4ccbe828079052e800c522bad78 | |
parent | eb91c962886b1bb52c2d457a574cba09e2a8b0f0 (diff) | |
download | qmk_firmware-0a5125a535ff5ee33fdb01853d32adcfd6b0860c.tar.gz qmk_firmware-0a5125a535ff5ee33fdb01853d32adcfd6b0860c.zip |
[Keyboard] Update e65.c to fix Caps Lock indicator (#7405)
* Update e65.c
Fixing Caps Lock LED indicator
* Update e65.c
Using new LED functions (led_update_kb)
-rw-r--r-- | keyboards/exclusive/e65/e65.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/keyboards/exclusive/e65/e65.c b/keyboards/exclusive/e65/e65.c index e3dab3830..e01a0614c 100644 --- a/keyboards/exclusive/e65/e65.c +++ b/keyboards/exclusive/e65/e65.c | |||
@@ -17,16 +17,22 @@ | |||
17 | #include "e65.h" | 17 | #include "e65.h" |
18 | 18 | ||
19 | void matrix_init_kb(void) { | 19 | void matrix_init_kb(void) { |
20 | setPinOutput(B6); | 20 | // put your keyboard start-up code here |
21 | // runs once when the firmware starts up | ||
22 | |||
21 | matrix_init_user(); | 23 | matrix_init_user(); |
24 | led_init_ports(); | ||
25 | } | ||
26 | |||
27 | void led_init_ports(void) { | ||
28 | setPinOutput(B6); | ||
29 | writePinHigh(B6); | ||
22 | } | 30 | } |
23 | 31 | ||
24 | void led_set_kb(uint8_t usb_led) { | 32 | bool led_update_kb(led_t led_state) { |
25 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | 33 | if(led_update_user(led_state)) { |
26 | writePinHigh(B6); | 34 | writePin(B6, !led_state.caps_lock); |
27 | } else { | ||
28 | writePinLow(B6); | ||
29 | } | 35 | } |
30 | 36 | ||
31 | led_set_user(usb_led); | 37 | return true; |
32 | } | 38 | } |