RobertoBenjami/stm32_graphics_display_drivers

LittleVGL compatibility?

Closed this issue · 2 comments

Hello, is there, or have your tried your drivers in combination with LittleVGL (lvgl.io)?
Basically, it just needs a (callback) function to fill a certain area of the screen with a buffer (of color values).
And preferable via DMA.
Thanks!

I think BSP_LCD_ReadRGB16Image() could be suitable for this. Is this a right assumption?
And if so, is there a way to have a (DMA) callback for this function when it ends? this because I need to call lv_disp_flush_ready() when the drawing is done.
Thanks!

The problem is that the drawing function in stm32_adafruit_lcd.c does not know if the lcd driver will be able to use DMA. The use of DMA depends on the type of display (e.g., if it is not capable of native 16-bit color depth, it must be converted) as well as the memory area (e.g., CCM is not DMA-capable).
But you can insert a callback function call into the DMA interrupt function if you want (e.g. in DMAX_STREAMX_IRQHANDLER).