Skip to content

Commit

Permalink
Merge pull request #173 from Yardie-/remove_poweroff_all
Browse files Browse the repository at this point in the history
Remove poweroff_all for V2
  • Loading branch information
martinberlin committed May 5, 2022
2 parents ef18857 + 510b58f commit 92bc2d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
25 changes: 0 additions & 25 deletions src/epd_driver/config_reg_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,31 +67,6 @@ static void cfg_poweron(epd_config_register_t *cfg) {
}

static void cfg_poweroff(epd_config_register_t *cfg) {
#if defined(CONFIG_EPD_BOARD_REVISION_LILYGO_T5_47)
// This was re-purposed as power enable.
cfg->ep_scan_direction = true;
// POWEROFF
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
}

static void cfg_poweroff_all(epd_config_register_t *cfg) {
// This was re-purposed as power enable.
cfg->ep_scan_direction = false;
#endif
// POWEROFF
cfg->pos_power_enable = false;
push_cfg(cfg);
Expand Down
7 changes: 0 additions & 7 deletions src/epd_driver/display_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ void epd_poweroff() {
i2s_gpio_detach();
}

#if defined(CONFIG_EPD_BOARD_REVISION_LILYGO_T5_47)
void epd_poweroff_all() {
cfg_poweroff_all(&config_reg);
i2s_gpio_detach();
}
#endif

void epd_base_deinit(){
epd_poweroff();
i2s_deinit();
Expand Down
5 changes: 0 additions & 5 deletions src/epd_driver/include/epd_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ void epd_poweron();
/** Disable display power supply. */
void epd_poweroff();

#if defined(CONFIG_EPD_BOARD_REVISION_LILYGO_T5_47)
/** Disable display power supply completely touch as well */
void epd_poweroff_all();
#endif

/** Clear the whole screen by flashing it. */
void epd_clear();

Expand Down

0 comments on commit 92bc2d0

Please sign in to comment.