implement ScreenSaver in simulator

set ruth to stub only, because of cross compile error

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-20 10:48:43 +02:00
parent d3dd96c93a
commit 1a912d31c4
11 changed files with 63 additions and 40 deletions

View File

@@ -2,7 +2,6 @@
#include "MenuOptions.h"
#include "common/Widget.h"
#include <cstdlib>
#include <vector>
class ScreenSaver final : public Widget

View File

@@ -16,11 +16,7 @@ SplashScreen::SplashScreen(menu_options_t *options) : Widget(options->u8g2), m_o
void SplashScreen::update(const uint64_t dt)
{
counter += dt;
#ifndef ESP32
if (counter > 3000)
#else
if (counter > 10)
#endif
if (counter >= 3000)
{
counter = 0;
if (m_options && m_options->setScreen)