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
This commit is contained in:
committed by
Drashna Jaelre
parent
df73b74b55
commit
c197d080c4
20
keyboards/helix/rev2/keymaps/led_test/led_test_init.c
Normal file
20
keyboards/helix/rev2/keymaps/led_test/led_test_init.c
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user