What use is it then? if you can only connect a single device.
However, I solved it the other way around. I put the UI task in a thread.
That way the screen stays responsive.
#include "freeRTOS\freeRTOS.h"
#include "freeRTOS\task.h"
[..]
void setup() {
xTaskCreate(tick, "tick", 4096, NULL, 2, NULL); // keeps the GUI running
}
[..]
void tick(void *parameters)
{
while (true) {
delay(5);
lv_timer_handler();
}
}