Add SDL option to BaseUI on Native (#7568)

* Add SDL option to BaseUI on Native

* Update to latest LovyanGFX PR and use LGFX_SDL define

* Move SDL backend to native-sdl target
This commit is contained in:
Jonathan Bennett
2025-08-20 12:51:14 -05:00
committed by GitHub
parent 57e1725419
commit 5ce47045e7
4 changed files with 87 additions and 4 deletions

View File

@@ -1562,7 +1562,13 @@ void loop()
#endif
service->loop();
#if defined(LGFX_SDL)
if (screen) {
auto dispdev = screen->getDisplayDevice();
if (dispdev)
static_cast<TFTDisplay *>(dispdev)->sdlLoop();
}
#endif
long delayMsec = mainController.runOrDelay();
// We want to sleep as long as possible here - because it saves power