Skip to content

Commit

Permalink
Add support for Waveshare 7.3" ACeP 7-Color display (esphome#6380)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilSCGH authored Feb 11, 2025
1 parent 88cfdc3 commit 7bb2c3c
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 9 deletions.
5 changes: 5 additions & 0 deletions esphome/components/waveshare_epaper/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
WaveshareEPaperBWR = waveshare_epaper_ns.class_(
"WaveshareEPaperBWR", WaveshareEPaperBase
)
WaveshareEPaper7C = waveshare_epaper_ns.class_("WaveshareEPaper7C", WaveshareEPaperBase)
WaveshareEPaperTypeA = waveshare_epaper_ns.class_(
"WaveshareEPaperTypeA", WaveshareEPaper
)
Expand Down Expand Up @@ -75,6 +76,9 @@
WaveshareEPaper5P8InV2 = waveshare_epaper_ns.class_(
"WaveshareEPaper5P8InV2", WaveshareEPaper
)
WaveshareEPaper7P3InF = waveshare_epaper_ns.class_(
"WaveshareEPaper7P3InF", WaveshareEPaper7C
)
WaveshareEPaper7P5In = waveshare_epaper_ns.class_(
"WaveshareEPaper7P5In", WaveshareEPaper
)
Expand Down Expand Up @@ -148,6 +152,7 @@
"4.20in-bv2-bwr": ("b", WaveshareEPaper4P2InBV2BWR),
"5.83in": ("b", WaveshareEPaper5P8In),
"5.83inv2": ("b", WaveshareEPaper5P8InV2),
"7.30in-f": ("b", WaveshareEPaper7P3InF),
"7.50in": ("b", WaveshareEPaper7P5In),
"7.50in-bv2": ("b", WaveshareEPaper7P5InBV2),
"7.50in-bv3": ("b", WaveshareEPaper7P5InBV3),
Expand Down
6 changes: 5 additions & 1 deletion esphome/components/waveshare_epaper/waveshare_213v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ void WaveshareEPaper2P13InV3::send_reset_() {
}

void WaveshareEPaper2P13InV3::setup() {
setup_pins_();
this->init_internal_(this->get_buffer_length_());
this->setup_pins_();
this->spi_setup();
this->reset_();

delay(20);
this->send_reset_();
// as a one-off delay this is not worth working around.
Expand Down
Loading

0 comments on commit 7bb2c3c

Please sign in to comment.