Skip to content

Commit

Permalink
Merge branch 'terminal-improvements'
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Jul 25, 2020
2 parents f69a043 + eb5cf62 commit 0100f13
Show file tree
Hide file tree
Showing 38 changed files with 89,756 additions and 93,211 deletions.
3 changes: 3 additions & 0 deletions components/epd_driver/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ menu "E-Paper Driver"
config EPD_DISPLAY_TYPE_ED097TC2
bool "ED097TC2"

config EPD_DISPLAY_TYPE_ED133UT2
bool "ED133UT2"

config EPD_DISPLAY_TYPE_ED097OC4_LQ
bool "ED097OC4 Low Quality"
endchoice
Expand Down
7 changes: 6 additions & 1 deletion components/epd_driver/ed097oc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static inline void latch_row() {
}

void IRAM_ATTR epd_skip() {
#if defined(CONFIG_EPD_DISPLAY_TYPE_ED097TC2)
#if defined(CONFIG_EPD_DISPLAY_TYPE_ED097TC2) || defined(CONFIG_EPD_DISPLAY_TYPE_ED133UT2)
pulse_ckv_ticks(2, 2, false);
#else
// According to the spec, the OC4 maximum CKV frequency is 200kHz.
Expand All @@ -176,9 +176,14 @@ void IRAM_ATTR epd_output_row(uint32_t output_time_dus) {

while (i2s_is_busy() || rmt_busy()) {
};

latch_row();

#if defined(CONFIG_EPD_DISPLAY_TYPE_ED097TC2) || defined(CONFIG_EPD_DISPLAY_TYPE_ED133UT2)
pulse_ckv_ticks(output_time_dus, 1, false);
#else
pulse_ckv_ticks(output_time_dus, 50, false);
#endif

i2s_start_line_output();
i2s_switch_buffer();
Expand Down

0 comments on commit 0100f13

Please sign in to comment.