diff options
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.c | 20 |
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 |