When LVGL is ready to flush the color
buffer, LVGL calls the flush callback method that was registered in the
configuration step. The flush callback is where the color buffer is processed and
sent to the display specific communication interface. Typical processing methods are:
- Individual Pixel Flush: Pixel data is writen to communication interface
one-by-one and sent to the display. This method is the most simple, but is
also the slowest due to the required processing time by the CPU
- Full Buffer Flush: Pixel data is transfered to the communication interface
through DMA and sent to the display. This method is more complex than the
previous method due to the DMA, however, the DMA usage allows LVGL to begin
writing the next part of the rendered image to a second color buffer, making
this method much faster.
After the color buffer has been processed, LVGL must be notified that the color
buffer can be flushed by calling lv_disp_flush_ready.