mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 19:21:38 +02:00
0.7.46
* removed `delay` from ePaper * started improvements of `/system` * fix LEDs to check all configured inverters
This commit is contained in:
parent
201098ae0b
commit
f3192b49ab
16 changed files with 218 additions and 124 deletions
|
@ -30,6 +30,8 @@ class DisplayEPaper {
|
|||
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 loop(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod);
|
||||
void refreshLoop();
|
||||
void tickerSecond();
|
||||
|
||||
private:
|
||||
void headlineIP();
|
||||
|
@ -38,15 +40,26 @@ class DisplayEPaper {
|
|||
void offlineFooter();
|
||||
void versionFooter();
|
||||
|
||||
enum class RefreshStatus : uint8_t {
|
||||
DONE,
|
||||
BLACK,
|
||||
WHITE,
|
||||
WAIT,
|
||||
PARTITIALS,
|
||||
LOGO
|
||||
};
|
||||
|
||||
uint8_t mDisplayRotation;
|
||||
bool _changed = false;
|
||||
char _fmtText[35];
|
||||
const char* _settedIP;
|
||||
String _settedIP;
|
||||
uint8_t mHeadFootPadding;
|
||||
GxEPD2_GFX* _display;
|
||||
uint32_t* mUtcTs;
|
||||
bool mEnPowerSafe;
|
||||
const char* _version;
|
||||
RefreshStatus mRefreshState, mNextRefreshState;
|
||||
uint8_t mSecondCnt;
|
||||
};
|
||||
|
||||
#endif // ESP32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue