Added scheduling
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user