mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
std behaviour
This commit is contained in:
parent
052ca9f12f
commit
2d6c834887
3 changed files with 45 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue