绘制基础UI

This commit is contained in:
kai
2024-05-24 20:49:07 +08:00
parent 20546dd2d7
commit 03ae284fca
6 changed files with 138 additions and 57 deletions

View File

@@ -126,11 +126,12 @@ __attribute__((noreturn)) void StartROBOTTASK(void const *argument)
__attribute__((noreturn)) void StartUITASK(void const *argument)
{
LOGINFO("[freeRTOS] UI Task Start");
MyUIInit();
// MyUIInit();
LOGINFO("[freeRTOS] UI Init Done, communication with ref has established");
for (;;)
{
// 每给裁判系统发送一包数据会挂起一次,详见UITask函数的refereeSend()
MyUIInit();
UITask();
osDelay(1); // 即使没有任何UI需要刷新,也挂起一次,防止卡在UITask中无法切换
}