From fa290fbce83009c0c5313b00fed7ad783fa98cf7 Mon Sep 17 00:00:00 2001 From: nikito7 <45373783+nikito7@users.noreply.github.com> Date: Thu, 4 Mar 2021 00:50:27 +0000 Subject: [PATCH] Fix for waveshare 2.13in-ttgo-b73 (#1543) --- esphome/components/waveshare_epaper/waveshare_epaper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.cpp b/esphome/components/waveshare_epaper/waveshare_epaper.cpp index fa0cf6aa4f..adb748d308 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.cpp +++ b/esphome/components/waveshare_epaper/waveshare_epaper.cpp @@ -223,7 +223,7 @@ void HOT WaveshareEPaperTypeA::display() { return; } - if (this->full_update_every_ >= 2) { + if (this->full_update_every_ >= 1) { if (full_update != prev_full_update) { if (this->model_ == TTGO_EPAPER_2_13_IN) { this->write_lut_(full_update ? FULL_UPDATE_LUT_TTGO : PARTIAL_UPDATE_LUT_TTGO, LUT_SIZE_TTGO); @@ -271,6 +271,8 @@ void HOT WaveshareEPaperTypeA::display() { this->command(0x22); if (this->model_ == WAVESHARE_EPAPER_2_9_IN_V2) { this->data(full_update ? 0xF7 : 0xFF); + } else if (this->model_ == TTGO_EPAPER_2_13_IN_B73) { + this->data(0xC7); } else { this->data(0xC4); }