* improved Prometheus Endpoint PR #958
* fix turn off ePaper only if setting was set #956
This commit is contained in:
lumapu 2023-05-25 21:41:56 +02:00
parent c57cc735e4
commit 5b82d1aa8b
5 changed files with 20 additions and 14 deletions

View file

@ -31,7 +31,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);
void config(uint8_t rotation, bool enPowerSafe);
void loop(float totalPower, float totalYieldDay, float totalYieldTotal, uint8_t isprod);
@ -48,6 +48,7 @@ class DisplayEPaper {
uint8_t mHeadFootPadding;
GxEPD2_GFX* _display;
uint32_t *mUtcTs;
bool mEnPowerSafe;
};
#endif // ESP32