Added Waveshare 2.90inch V2 e-ink display (#1538)

This commit is contained in:
Kris
2021-02-17 19:12:02 +01:00
committed by GitHub
parent 410fad3b41
commit c92c439d17
4 changed files with 43 additions and 6 deletions
@@ -67,6 +67,7 @@ enum WaveshareEPaperTypeAModel {
WAVESHARE_EPAPER_1_54_IN = 0,
WAVESHARE_EPAPER_2_13_IN,
WAVESHARE_EPAPER_2_9_IN,
WAVESHARE_EPAPER_2_9_IN_V2,
TTGO_EPAPER_2_13_IN,
TTGO_EPAPER_2_13_IN_B73,
};
@@ -82,8 +83,14 @@ class WaveshareEPaperTypeA : public WaveshareEPaper {
void display() override;
void deep_sleep() override {
// COMMAND DEEP SLEEP MODE
this->command(0x10);
if (this->model_ == WAVESHARE_EPAPER_2_9_IN_V2) {
// COMMAND DEEP SLEEP MODE
this->command(0x10);
this->data(0x01);
} else {
// COMMAND DEEP SLEEP MODE
this->command(0x10);
}
this->wait_until_idle_();
}