jlj-qmk/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
Takeshi ISHII cd215209ef Helix led_test keymap reduce size (#4023)
* Helix: make rgblight modes selectable.

No change in build result.

* edit the comment of helix/rev2/keymaps/default/keymap.c

* Helix led_test keymap: reduced the size.
2018-09-29 10:40:54 -07:00

21 lines
440 B
C

#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(RGBLIGHT_MODE_RGB_TEST);
}
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(RGBLIGHT_MODE_RGB_TEST);
}
#endif