mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
Fix for waveshare 2.13in-ttgo-b73 (#1543)
This commit is contained in:
parent
1883ce1876
commit
fa290fbce8
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue