2018-07-04 01:16:38 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
#if 1
|
|
|
|
void led_test_init(void) {
|
|
|
|
static int scan_count = 0;
|
|
|
|
if( scan_count == 2 ) {
|
|
|
|
rgblight_enable_noeeprom();
|
2018-09-29 19:40:54 +02:00
|
|
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
|
2018-07-04 01:16:38 +02:00
|
|
|
}
|
|
|
|
if( scan_count < 3 ) scan_count ++;
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
// when qmk/qmk_firmware PullRequest #3113 available.
|
|
|
|
// can use this?
|
|
|
|
void startup_user(void) {
|
|
|
|
rgblight_enable_noeeprom();
|
2018-09-29 19:40:54 +02:00
|
|
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
|
2018-07-04 01:16:38 +02:00
|
|
|
}
|
|
|
|
#endif
|