summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/keymaps
diff options
context:
space:
mode:
authorcoderkun <olli@coderkun.de>2016-05-22 12:58:54 +0200
committercoderkun <olli@coderkun.de>2016-07-29 11:07:50 +0200
commit08239aadeacabc3c8f2e727aff055a6816bb416e (patch)
tree2ffff710362f8b7e133e185a41249cec6bd5e6f5 /keyboards/ergodox_ez/keymaps
parent61fbb47eb674ee1fab2f8415fe7f43311e51d260 (diff)
use Ergodox EZ’s third LED for “scroll lock”
Diffstat (limited to 'keyboards/ergodox_ez/keymaps')
-rw-r--r--keyboards/ergodox_ez/keymaps/coderkun_neo2/keymap.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/keyboards/ergodox_ez/keymaps/coderkun_neo2/keymap.c b/keyboards/ergodox_ez/keymaps/coderkun_neo2/keymap.c
index 958523c8ba..b71823e156 100644
--- a/keyboards/ergodox_ez/keymaps/coderkun_neo2/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/coderkun_neo2/keymap.c
@@ -1,7 +1,8 @@
#include "ergodox_ez.h"
#include "debug.h"
#include "action_layer.h"
-#include "keymap_neo2.h"
+#include "led.h"
+#include "keymap_extras/keymap_neo2.h"
// Layer names
#define BASE 0 // default layer
@@ -267,7 +268,13 @@ void matrix_scan_user(void)
ergodox_right_led_3_on();
break;
default:
- ergodox_board_led_off();
+ if(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) {
+ ergodox_led_all_set(LED_BRIGHTNESS_HI);
+ ergodox_right_led_1_on();
+ }
+ else {
+ ergodox_board_led_off();
+ }
break;
}