|
|
@ -24,29 +24,29 @@ |
|
|
|
// GDEH0154D67 1.54" b/w 200x200
|
|
|
|
|
|
|
|
class DisplayEPaper { |
|
|
|
public: |
|
|
|
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 loop(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod); |
|
|
|
|
|
|
|
private: |
|
|
|
void headlineIP(); |
|
|
|
void actualPowerPaged(float _totalPower, float _totalYieldDay, float _totalYieldTotal, uint8_t _isprod); |
|
|
|
void lastUpdatePaged(); |
|
|
|
void offlineFooter(); |
|
|
|
void versionFooter(); |
|
|
|
|
|
|
|
uint8_t mDisplayRotation; |
|
|
|
bool _changed = false; |
|
|
|
char _fmtText[35]; |
|
|
|
const char* _settedIP; |
|
|
|
uint8_t mHeadFootPadding; |
|
|
|
GxEPD2_GFX* _display; |
|
|
|
uint32_t* mUtcTs; |
|
|
|
bool mEnPowerSafe; |
|
|
|
const char* _version; |
|
|
|
public: |
|
|
|
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 loop(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod); |
|
|
|
|
|
|
|
private: |
|
|
|
void headlineIP(); |
|
|
|
void actualPowerPaged(float _totalPower, float _totalYieldDay, float _totalYieldTotal, uint8_t _isprod); |
|
|
|
void lastUpdatePaged(); |
|
|
|
void offlineFooter(); |
|
|
|
void versionFooter(); |
|
|
|
|
|
|
|
uint8_t mDisplayRotation; |
|
|
|
bool _changed = false; |
|
|
|
char _fmtText[35]; |
|
|
|
const char* _settedIP; |
|
|
|
uint8_t mHeadFootPadding; |
|
|
|
GxEPD2_GFX* _display; |
|
|
|
uint32_t* mUtcTs; |
|
|
|
bool mEnPowerSafe; |
|
|
|
const char* _version; |
|
|
|
}; |
|
|
|
|
|
|
|
#endif // ESP32
|
|
|
|