sTodo-m5paper-client/libraries/M5Unified/examples/PlatformIO_SDL/src/sdl_main.cpp
2025-06-30 20:47:33 +02:00

25 lines
459 B
C++

#include <M5GFX.h>
#if defined ( SDL_h_ )
void setup(void);
void loop(void);
__attribute__((weak))
int user_func(bool* running)
{
setup();
do
{
loop();
} while (*running);
return 0;
}
int main(int, char**)
{
// The second argument is effective for step execution with breakpoints.
// You can specify the time in milliseconds to perform slow execution that ensures screen updates.
return lgfx::Panel_sdl::main(user_func, 128);
}
#endif