cancel
Showing results for 
Search instead for 
Did you mean: 

Need example to render fonts using DMA2D (using A8 coding)

JKubi
Associate

I have some fonts stored in A8 (intensity-only) format. I'd like to use the DMA2D to draw these to my RGB565 frame buffer. I'd like to specify a foreground and background color and have the DMA2D read the font intensity data, generate a color for each pixel using the specified 24-bit foreground and background colors, and write this my frame buffer. So this would be a single-byte read for each pixel and a two-byte write (since I'm in RGB565). I do NOT want to blend the pixels with existing data in the framebuffer (which would take an extra read).

Is this even possible with the DMA2D? Various ST documents imply it is possible but I can't find a good example. If someone from ST could provide a simple example using the HAL_DMA2D_ functions I think it would help out a lot of people.

0 REPLIES 0