Fix for waveshare 2.13in-ttgo-b73 (#1543)

This commit is contained in:
nikito7 2021-03-04 00:50:27 +00:00 committed by GitHub
parent 1883ce1876
commit fa290fbce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}