Skip to content

Trying to understand double buffer #7

Answered by LAutour
Westworld asked this question in Q&A
Discussion options

You must be logged in to vote

In the ESP32-HUB75-MatrixPanel-I2S-DMA, the same buffer is displayed in which we draw (if there are two, then we draw in one, the second is displayed.)

For panels with smart drivers (with memory) there is no way to combine the buffer for drawing and for output (16 bits for each color channel - just not enough memory). Therefore, a separate full buffer for drawing and a separate reduced dma buffer for output are used.
The flipDMABuffer() command (the name has not been changed for compatibility) starts the transfer of parts of data from the full drawing buffer to the output dma buffer (with recoding).

The double buffer duplicates the drawing buffer and allows you to draw in one while the da…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Westworld
Comment options

@LAutour
Comment options

Answer selected by Westworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants