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.25k stars 178 forks source link

Align dma buffers #248

Closed mickeprag closed 1 year ago

mickeprag commented 1 year ago

The size of the buffers used by DMA must be word aligned. If the width of the display is not aligned we increase the buffer slightly.

For instance the display ED060KC1 has a width of 1448 pixels. The DMA buffer would be 362 bytes (1448/4) and this will not work with the ESP32 DMA driver. Instead the buffer will be increased to 364 bytes.

Also a small fix for faulty boards which made the power on code loop forever.

vroland commented 1 year ago

Looks good to me, thank you!