summaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
diff options
context:
space:
mode:
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 000000000..1d9cb4ebd
--- /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