summaryrefslogtreecommitdiffstats
path: root/keyboards/helix/rev2/keymaps/led_test/keymap.c
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2018-06-02 18:07:32 +0200
committerDrashna Jaelre <drashna@live.com>2018-06-02 18:07:32 +0200
commit8707bdd509b56e07c0398c2d14ff41b7675e02f4 (patch)
tree9dab9f09c7f21fc8c684281680a32d9c76a1610d /keyboards/helix/rev2/keymaps/led_test/keymap.c
parentd554d9633492d2334e0b3b591adc406e07e35ad0 (diff)
downloadqmk_firmware-8707bdd509b56e07c0398c2d14ff41b7675e02f4.tar.gz
qmk_firmware-8707bdd509b56e07c0398c2d14ff41b7675e02f4.tar.xz
Fix helix:led_test build break (#3110)
* copy new rgblight.[ch] from quantum/ into keyboards/helix/rev2/keymaps/led_test/ and add mode 35 RGB cyclic mode * force RGB light mode 25
Diffstat (limited to 'keyboards/helix/rev2/keymaps/led_test/keymap.c')
-rw-r--r--keyboards/helix/rev2/keymaps/led_test/keymap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/keyboards/helix/rev2/keymaps/led_test/keymap.c b/keyboards/helix/rev2/keymaps/led_test/keymap.c
index b8a9baee3..d597020d8 100644
--- a/keyboards/helix/rev2/keymaps/led_test/keymap.c
+++ b/keyboards/helix/rev2/keymaps/led_test/keymap.c
@@ -32,7 +32,7 @@ extern uint8_t is_master;
#define _DVORAK 2
#define _LOWER 3
#define _RAISE 4
-#define _ADJUST 16
+#define _ADJUST 6
enum custom_keycodes {
QWERTY = SAFE_RANGE,
@@ -513,6 +513,12 @@ void music_scale_user(void)
#ifdef SSD1306OLED
void matrix_scan_user(void) {
+ static int scan_count = 0;
+ if( scan_count == 2 ) {
+ rgblight_enable();
+ rgblight_mode(35);
+ }
+ if( scan_count < 3 ) scan_count ++;
iota_gfx_task(); // this is what updates the display continuously
}