summaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/keymaps/led_test/led_test_init.c
blob: 85f5d1aa7efb0ad7337329ac43bf5a5d7c291167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(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