mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Implement LVGL task for POSIX fbdev
This commit is contained in:
parent
4c20d6a4b9
commit
6bfe89cac0
@ -70,12 +70,13 @@ int32_t TftFbdevDrv::height()
|
||||
static void* gui_entrypoint(void* arg)
|
||||
{
|
||||
#if HASP_USE_LVGL_TASK
|
||||
#error "fbdev LVGL task is not implemented"
|
||||
#else
|
||||
// create a LVGL tick thread
|
||||
pthread_t thread;
|
||||
pthread_create(&thread, 0, tick_thread, NULL);
|
||||
// create an LVGL GUI task thread
|
||||
pthread_t gui_pthread;
|
||||
pthread_create(&gui_pthread, 0, (void* (*)(void*))gui_task, NULL);
|
||||
#endif
|
||||
// create an LVGL tick thread
|
||||
pthread_t tick_pthread;
|
||||
pthread_create(&tick_pthread, 0, tick_thread, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -181,12 +182,7 @@ void TftFbdevDrv::init(int32_t w, int h)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HASP_USE_LVGL_TASK
|
||||
#error "fbdev LVGL task is not implemented"
|
||||
#else
|
||||
// do not use the gui_task(), just init the GUI and return
|
||||
gui_entrypoint(NULL);
|
||||
#endif
|
||||
}
|
||||
void TftFbdevDrv::show_info()
|
||||
{
|
||||
|
@ -30,6 +30,7 @@ build_flags =
|
||||
-D HASP_USE_GIFDECODE=0
|
||||
-D HASP_USE_JPGDECODE=0
|
||||
-D HASP_USE_MQTT=1
|
||||
-D HASP_USE_LVGL_TASK=1
|
||||
-D MQTT_MAX_PACKET_SIZE=2048
|
||||
-D HASP_ATTRIBUTE_FAST_MEM=
|
||||
-D IRAM_ATTR= ; No IRAM_ATTR available
|
||||
|
Loading…
x
Reference in New Issue
Block a user