Add TFT_LVGL_UI support (#18438)
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
#include "gcode/parser.h"
|
||||
#include "gcode/queue.h"
|
||||
|
||||
#if ENABLED(TFT_LITTLE_VGL_UI)
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
#include "lvgl.h"
|
||||
#include "lcd/extui/lib/mks_ui/tft_lvgl_configuration.h"
|
||||
#include "lcd/extui/lib/mks_ui/draw_ui.h"
|
||||
@@ -743,7 +743,7 @@ void idle(TERN_(ADVANCED_PAUSE_FEATURE, bool no_stepper_sleep/*=false*/)) {
|
||||
// Direct Stepping
|
||||
TERN_(DIRECT_STEPPING, page_manager.write_responses());
|
||||
|
||||
#if ENABLED(TFT_LITTLE_VGL_UI)
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
LV_TASK_HANDLER();
|
||||
#endif
|
||||
}
|
||||
@@ -1180,7 +1180,8 @@ void setup() {
|
||||
SETUP_RUN(page_manager.init());
|
||||
#endif
|
||||
|
||||
#if ENABLED(TFT_LITTLE_VGL_UI)
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
if (!card.isMounted()) SETUP_RUN(card.mount()); // Mount SD to load graphics and fonts
|
||||
SETUP_RUN(tft_lvgl_init());
|
||||
#endif
|
||||
|
||||
@@ -1216,7 +1217,7 @@ void loop() {
|
||||
|
||||
endstops.event_handler();
|
||||
|
||||
TERN_(TFT_LITTLE_VGL_UI, printer_state_polling());
|
||||
TERN_(TFT_LVGL_UI, printer_state_polling());
|
||||
|
||||
} while (ENABLED(__AVR__)); // Loop forever on slower (AVR) boards
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user