qmk-keychron-q3-colemak-dh/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
Takeshi ISHII c197d080c4 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
2018-07-03 16:16:38 -07:00

21 lines
400 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(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