mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-29 04:39:26 +06:00
Initialize backlight and LCD during visualizer_init
This commit is contained in:
parent
209167d4d6
commit
8ce60649c8
@ -321,6 +321,13 @@ static THD_FUNCTION(visualizerThread, arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void visualizer_init(void) {
|
void visualizer_init(void) {
|
||||||
|
#ifdef LCD_ENABLE
|
||||||
|
gfxInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef LCD_BACKLIGHT_ENABLE
|
||||||
|
lcd_backlight_init();
|
||||||
|
#endif
|
||||||
// We are using a low priority thread, the idea is to have it run only
|
// We are using a low priority thread, the idea is to have it run only
|
||||||
// when the main thread is sleeping during the matrix scanning
|
// when the main thread is sleeping during the matrix scanning
|
||||||
chEvtObjectInit(&layer_changed_event);
|
chEvtObjectInit(&layer_changed_event);
|
||||||
|
@ -24,6 +24,7 @@ GFXLIB = $(VISUALIZER_DIR)/ugfx
|
|||||||
ifdef LCD_ENABLE
|
ifdef LCD_ENABLE
|
||||||
include $(GFXLIB)/gfx.mk
|
include $(GFXLIB)/gfx.mk
|
||||||
OPT_DEFS += -DLCD_ENABLE
|
OPT_DEFS += -DLCD_ENABLE
|
||||||
|
OPT_LIBS += -lm
|
||||||
endif
|
endif
|
||||||
SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c
|
SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c
|
||||||
INC += $(GFXINC) $(VISUALIZER_DIR)
|
INC += $(GFXINC) $(VISUALIZER_DIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user