summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5cb7131)
Change to use keyboard_post_init_user() hook (#3113)
//SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
#ifdef SSD1306OLED
//SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
#ifdef SSD1306OLED
-// hook point for 'led_test' keymap
-// 'default' keymap's led_test_init() is empty function, do nothing
-// 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
-__attribute__ ((weak))
-void led_test_init(void) {}
-
void matrix_scan_user(void) {
void matrix_scan_user(void) {
iota_gfx_task(); // this is what updates the display continuously
}
iota_gfx_task(); // this is what updates the display continuously
}
-#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) {
+void keyboard_post_init_user(void) {
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
}
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
}