Skip to content

Commit

Permalink
Update ed047tc1.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SrLPZ authored Mar 18, 2023
1 parent a78bc02 commit 87b8ec1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/ed047tc1.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,26 @@ void epd_poweroff()
push_cfg(&config_reg);
}

void epd_scanoff()
{
config_reg.ep_scan_direction = false;
push_cfg(&config_reg);
}

void epd_scanon()
{
config_reg.ep_scan_direction = true;
push_cfg(&config_reg);
}

void epd_poweroff_all()
{
//memset(&config_reg, 0, sizeof(config_reg));
//push_cfg(&config_reg);
memset(&config_reg, 0, sizeof(config_reg));
push_cfg(&config_reg);

config_reg.ep_scan_direction = false;
// config_reg.ep_scan_direction = false;
// config_reg.pos_power_enable = false;
push_cfg(&config_reg);
// push_cfg(&config_reg);
// busy_delay(10 * 240);
// config_reg.neg_power_enable = false;
// push_cfg(&config_reg);
Expand Down

0 comments on commit 87b8ec1

Please sign in to comment.