summaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2018-07-04 08:16:38 +0900
committerDrashna Jaelre <drashna@live.com>2018-07-03 16:16:38 -0700
commitc197d080c40cb37bb7c8d7970fcf217e986eca42 (patch)
tree1bbbd73a0ff34a4644bff6edaadf7ab2abd213c5 /keyboards/helix/rev2/keymaps/led_test/led_test_init.c
parentdf73b74b55d390c1d6b2c7990d194e403c4f8e8d (diff)
Update Helix 'led_test' keymap (#3292)
* now helix led_test local rgblight.[ch] not use. remove. * greatly simplify keyboards/helix/rev2/keymaps/led_test/keymap.c Helix keymap 'led_test' use modified default/keymap.c
Diffstat (limited to 'keyboards/helix/rev2/keymaps/led_test/led_test_init.c')
-rw-r--r--keyboards/helix/rev2/keymaps/led_test/led_test_init.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/helix/rev2/keymaps/led_test/led_test_init.c b/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
new file mode 100644
index 0000000000..1d9cb4ebde
--- /dev/null
+++ b/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
@@ -0,0 +1,20 @@
+#include QMK_KEYBOARD_H
+
+#if 1
+void led_test_init(void) {
+ static int scan_count = 0;
+ if( scan_count == 2 ) {
+ rgblight_enable_noeeprom();
+ rgblight_mode_noeeprom(35);
+ }
+ if( scan_count < 3 ) scan_count ++;
+}
+
+#else
+// when qmk/qmk_firmware PullRequest #3113 available.
+// can use this?
+void startup_user(void) {
+ rgblight_enable_noeeprom();
+ rgblight_mode_noeeprom(35);
+}
+#endif