Skip to content

Commit

Permalink
Merge pull request #158 from martinberlin/vroland-master
Browse files Browse the repository at this point in the history
Lilygo config register should be set to low on poweroff()
  • Loading branch information
vroland committed Feb 18, 2022
2 parents 67829fc + 156d602 commit 4ca0a2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/epd_driver/config_reg_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ static void cfg_poweroff(epd_config_register_t *cfg) {
cfg->pos_power_enable = false;
push_cfg(cfg);
busy_delay(10 * 240);

cfg->neg_power_enable = false;
cfg->pos_power_enable = false;
push_cfg(cfg);
busy_delay(100 * 240);

cfg->ep_stv = false;
cfg->ep_output_enable = false;
cfg->ep_mode = false;
cfg->power_disable = true;
push_cfg(cfg);
// END POWEROFF
Expand Down

0 comments on commit 4ca0a2b

Please sign in to comment.