vroland / epdiy

EPDiy is a driver board for affordable e-Paper (or E-ink) displays.
https://vroland.github.io/epdiy-hardware/
GNU Lesser General Public License v3.0
1.32k stars 184 forks source link

Feat: Add `epd_hl_update_area_directly` for faster repaint #217

Closed lanistor closed 1 year ago

lanistor commented 1 year ago

This can greatly reduce the time for repainting, nearly 850ms for 6 inches screen. Without this, you need to do like https://github.com/vroland/epdiy/issues/206, this will cost nearly 1900ms(with 1 cycle repaint).

Repaint usage:

  epd_clear_area_cycles(epd_full_screen(), 1, _clear_cycle_time);
  epd_hl_update_area_directly(&hl, updateMode, temperature, epd_full_screen());