std behaviour

This commit is contained in:
Florent committed 2025-04-20 17:10:57 +02:00
1 parent 4d4ab516f0
commit eda4c5d397
3 files changed
+45 -7

No files matched your search

+4 -2
View File
@@ -25,15 +25,17 @@ class GxEPDDisplay : public DisplayDriver {
GxEPD2_BW<GxEPD2_150_BN, 200> display;
bool _init = false;
bool _isOn = false;
public:
GxEPDDisplay() : DisplayDriver(200, 200), display(GxEPD2_150_BN(DISP_CS, DISP_DC, DISP_RST, DISP_BUSY)) {
// there is a margin in y...
GxEPDDisplay() : DisplayDriver(200, 200-10), display(GxEPD2_150_BN(DISP_CS, DISP_DC, DISP_RST, DISP_BUSY)) {
}
bool begin();
bool isOn() override { return true; }
bool isOn() override {return _isOn;};
void turnOn() override;
void turnOff() override;
void clear() override;