Added scheduling

This commit is contained in:
Joren de Graaf
2026-10-10 16:03:44 +02:00
parent 7f5ef0b61b
commit c35ac005fb
24 changed files with 896 additions and 39 deletions
@@ -2,12 +2,14 @@
#include <Arduino.h>
#include "boomcast_state.h"
#include "lvgl.h"
#include "esp_timer.h"
#include "src/display/epaper_driver_bsp.h"
class BoomDisplay {
public:
bool begin();
void update();
void setScheduledIdle(bool idle, const String& next);
void nextPage();
void showPage(uint8_t page);
uint8_t page() const { return page_; }
@@ -23,6 +25,11 @@ private:
uint16_t partialCount_ = 0;
uint32_t lastStatusUpdateMs_ = 0;
esp_timer_handle_t tickTimer_ = nullptr;
bool scheduledIdle_ = false;
String sleepNext_;
lv_obj_t* sleepScreen_ = nullptr;
lv_obj_t* sleepNextLabel_ = nullptr;
lv_obj_t* publicScreen_ = nullptr;
lv_obj_t* detailScreen_ = nullptr;