Skip to content

Commit

Permalink
Fix Waveshare 7.50in-bV3 epaper screens are always powered on
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixswiss authored Dec 25, 2023
1 parent 6c86d00 commit 1da964f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions esphome/components/waveshare_epaper/waveshare_epaper.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,19 +470,23 @@ class WaveshareEPaper7P5InBV3 : public WaveshareEPaper {
void dump_config() override;

void deep_sleep() override {
this->command(0x02); // Power off
// COMMAND POWER OFF
this->command(0x02);
this->wait_until_idle_();
this->command(0x07); // Deep sleep
this->data(0xA5);
// COMMAND DEEP SLEEP
this->command(0x07);
this->data(0xA5); // check byte
}

void clear_screen();

protected:
int get_width_internal() override;

int get_height_internal() override;

uint32_t idle_timeout_() override;

void reset_() {
if (this->reset_pin_ != nullptr) {
this->reset_pin_->digital_write(true);
Expand All @@ -494,7 +498,7 @@ class WaveshareEPaper7P5InBV3 : public WaveshareEPaper {
}
};

void init_display_();
};

class WaveshareEPaper7P5InBC : public WaveshareEPaper {
Expand Down

0 comments on commit 1da964f

Please sign in to comment.