summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Loiseau <didierloiseau+git@gmail.com>2015-12-30 00:56:02 +0100
committerDidier Loiseau <didierloiseau+git@gmail.com>2016-01-09 18:10:24 +0100
commit8677ec0c9fbf0d0bb639ad082e27d6650b3c1dd0 (patch)
tree7eb52281da14d5a58b9fd7c2c7345cb752e5bb5e
parentac94577cbe03b771820a17e94ced640d78c06dfc (diff)
downloadqmk_firmware-8677ec0c9fbf0d0bb639ad082e27d6650b3c1dd0.tar.gz
qmk_firmware-8677ec0c9fbf0d0bb639ad082e27d6650b3c1dd0.zip
Use 3rd led as caps-lock indicator
-rw-r--r--keyboard/ergodox_ez/keymaps/keymap_typematrix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyboard/ergodox_ez/keymaps/keymap_typematrix.c b/keyboard/ergodox_ez/keymaps/keymap_typematrix.c
index 01ae6bbcae..1b201c2237 100644
--- a/keyboard/ergodox_ez/keymaps/keymap_typematrix.c
+++ b/keyboard/ergodox_ez/keymaps/keymap_typematrix.c
@@ -2,6 +2,7 @@
#include "ergodox_ez.h"
#include "debug.h"
#include "action_layer.h"
+#include "led.h"
#define BASE 0 // default layer
#define SYMB 1 // symbols
@@ -191,5 +192,7 @@ void * matrix_scan_user(void) {
// none
break;
}
-
+ if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) {
+ ergodox_right_led_3_on();
+ }
};