diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-02-13 20:29:49 +0200 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-02-13 20:29:49 +0200 |
commit | 8ce60649c85f1ad5371d443675f91c8fc36c3d2e (patch) | |
tree | 45d09313d0aaba325f1af5de43211ed563034257 /visualizer.c | |
parent | 209167d4d6a7e65a728fab5d996904cc5fb33a3c (diff) |
Initialize backlight and LCD during visualizer_init
Diffstat (limited to 'visualizer.c')
-rw-r--r-- | visualizer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/visualizer.c b/visualizer.c index 2a92524e25..402bbd1517 100644 --- a/visualizer.c +++ b/visualizer.c @@ -321,6 +321,13 @@ static THD_FUNCTION(visualizerThread, arg) { } 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 // when the main thread is sleeping during the matrix scanning chEvtObjectInit(&layer_changed_event); |