Skip to content

Commit

Permalink
Revert "disable gate output when skipping rows"
Browse files Browse the repository at this point in the history
This reverts commit 6b4d0ef.
  • Loading branch information
vroland committed May 3, 2020
1 parent 16725dc commit b1df166
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
12 changes: 0 additions & 12 deletions components/epd_driver/ed097oc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,6 @@ void epd_end_frame() {
pulse_ckv_us(1, 1, true);
}

void disable_gate_output() {
config_reg.ep_mode = false;
config_reg.ep_output_enable = false;
push_cfg(&config_reg);
}

void enable_gate_output() {
config_reg.ep_mode = true;
config_reg.ep_output_enable = true;
push_cfg(&config_reg);
}

void IRAM_ATTR epd_switch_buffer() { i2s_switch_buffer(); }
uint8_t IRAM_ATTR *epd_get_current_buffer() {
return (uint8_t *)i2s_get_current_buffer();
Expand Down
10 changes: 0 additions & 10 deletions components/epd_driver/ed097oc4.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,3 @@ uint8_t IRAM_ATTR *epd_get_current_buffer();
* this function blocks until transmission is done.
*/
void IRAM_ATTR epd_switch_buffer();

/**
* Enable the gate driver output.
*/
void enable_gate_output();

/**
* Disable the gate driver output.
*/
void disable_gate_output();
4 changes: 0 additions & 4 deletions components/epd_driver/epd_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ static uint8_t *conversion_lut;

// output a row to the display.
static void write_row(uint32_t output_time_us) {
if (skipping) {
enable_gate_output();
}
skipping = 0;
epd_output_row(output_time_us);
}
Expand All @@ -61,7 +58,6 @@ void skip_row(uint8_t pipeline_finish_time) {
epd_switch_buffer();
memset(epd_get_current_buffer(), 255, EPD_LINE_BYTES);
epd_output_row(pipeline_finish_time);
disable_gate_output();
// avoid tainting of following rows by
// allowing residual charge to dissipate
unsigned counts = XTHAL_GET_CCOUNT() + 50 * 240;
Expand Down

0 comments on commit b1df166

Please sign in to comment.