mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-31 17:56:11 +02:00
refactor display class
Display class gets access to App interface and HmRadio Display class prepares relevant online information for displays in new DisplayData structure Displays get pointer to DisplayData and only use information received from there
This commit is contained in:
parent
e8fa9c747e
commit
f1bff0b824
13 changed files with 207 additions and 197 deletions
|
@ -28,7 +28,7 @@ class DisplayEPaper {
|
|||
DisplayEPaper();
|
||||
void fullRefresh();
|
||||
void init(uint8_t type, uint8_t _CS, uint8_t _DC, uint8_t _RST, uint8_t _BUSY, uint8_t _SCK, uint8_t _MOSI, uint32_t* utcTs, const char* version);
|
||||
void config(uint8_t rotation, bool enPowerSafe);
|
||||
void config(uint8_t rotation, bool enPowerSave);
|
||||
void loop(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod);
|
||||
void refreshLoop();
|
||||
void tickerSecond();
|
||||
|
@ -56,7 +56,7 @@ class DisplayEPaper {
|
|||
uint8_t mHeadFootPadding;
|
||||
GxEPD2_GFX* _display;
|
||||
uint32_t* mUtcTs;
|
||||
bool mEnPowerSafe;
|
||||
bool mEnPowerSave;
|
||||
const char* _version;
|
||||
RefreshStatus mRefreshState, mNextRefreshState;
|
||||
uint8_t mSecondCnt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue