Skip to content

Commit

Permalink
Update waveshare_epaper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixswiss authored Mar 16, 2024
1 parent 2d9640a commit aa93599
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions esphome/components/waveshare_epaper/waveshare_epaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2104,12 +2104,8 @@ void WaveshareEPaper7P5InBV3::init_display_() {
// COMMAND TCON SETTING
this->command(0x60);
this->data(0x22);
// Resolution setting
this->command(0x65);
this->data(0x00);
this->data(0x00); // 800*480
this->data(0x00);
this->data(0x00);
delay(100); // NOLINT
this->wait_until_idle_();

uint8_t lut_vcom_7_i_n5_v2[] = {
0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0xF, 0x1, 0xF, 0x1, 0x2, 0x0, 0xF, 0xF, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
Expand Down Expand Up @@ -2182,16 +2178,21 @@ void HOT WaveshareEPaper7P5InBV3::display() {
this->data(0xFF);
}

this->command(0x13); // Start Transmission
// this->command(0x13); // Start Transmission
delay(2);
for (uint32_t i = 0; i < buf_len; i++) {
this->data(~this->buffer_[i]);
}
// COMMAND DISPLAY REFRESH
this->command(0x12);
delay(100); // NOLINT
this->wait_until_idle_();

this->command(0x12); // Display Refresh
delay(100); // NOLINT
ESP_LOGV(TAG, "Before command(0x02) (>> power off)");
this->command(0x02);
this->wait_until_idle_();
this->deep_sleep();
ESP_LOGV(TAG, "After command(0x02) (>> power off)");

Check failure on line 2195 in esphome/components/waveshare_epaper/waveshare_epaper.cpp

View workflow job for this annotation

GitHub Actions / Run script/ci-custom

Trailing whitespace detected
}
int WaveshareEPaper7P5InBV3::get_width_internal() { return 800; }
int WaveshareEPaper7P5InBV3::get_height_internal() { return 480; }
Expand Down

0 comments on commit aa93599

Please sign in to comment.