chore(color): cleanup UI code (#6989)

This commit is contained in:
philmoz
2026-01-21 12:48:24 +10:00
committed by GitHub
parent ca21f02afc
commit b0ecde2842
207 changed files with 1204 additions and 1208 deletions
+24 -1
View File
@@ -32,8 +32,8 @@
#include "tasks.h"
#include "tasks/mixer_task.h"
#if defined(COLORLCD)
#include "LvglWrapper.h"
#include "startup_shutdown.h"
#endif
@@ -136,6 +136,25 @@ static void timer10msStart()
timer_start(&_timer10ms);
}
#if defined(COLORLCD) && defined(SIMU)
static timer_handle_t _timer1ms = TIMER_INITIALIZER;
static void _timer_1ms_cb(timer_handle_t* h)
{
// Increment LVGL animation timer
lv_tick_inc(1);
}
static void timer1msStart()
{
if (!timer_is_created(&_timer1ms)) {
timer_create(&_timer1ms, _timer_1ms_cb, "1ms", 1, true);
}
timer_start(&_timer1ms);
}
#endif
void tasksStart()
{
mutex_create(&audioMutex);
@@ -144,6 +163,10 @@ void tasksStart()
cliStart();
#endif
#if defined(COLORLCD) && defined(SIMU)
timer1msStart();
#endif
timer10msStart();
task_create(&menusTaskId, menusTask, "menus", menusStack, MENUS_STACK_SIZE,