Add 2.13in-ttgo-b1 waveshare epaper module. (#1326)

This commit is contained in:
matikij
2021-03-20 08:32:46 +01:00
committed by GitHub
parent 818a7f1c78
commit 91898cb814
5 changed files with 158 additions and 65 deletions
@@ -61,6 +61,7 @@ class WaveshareEPaper : public PollingComponent,
GPIOPin *reset_pin_{nullptr};
GPIOPin *dc_pin_;
GPIOPin *busy_pin_{nullptr};
virtual int idle_timeout_() { return 1000; } // NOLINT(readability-identifier-naming)
};
enum WaveshareEPaperTypeAModel {
@@ -70,6 +71,7 @@ enum WaveshareEPaperTypeAModel {
WAVESHARE_EPAPER_2_9_IN_V2,
TTGO_EPAPER_2_13_IN,
TTGO_EPAPER_2_13_IN_B73,
TTGO_EPAPER_2_13_IN_B1,
};
class WaveshareEPaperTypeA : public WaveshareEPaper {
@@ -106,6 +108,7 @@ class WaveshareEPaperTypeA : public WaveshareEPaper {
uint32_t full_update_every_{30};
uint32_t at_update_{0};
WaveshareEPaperTypeAModel model_;
int idle_timeout_() override;
};
enum WaveshareEPaperTypeBModel {