cancel
Showing results for 
Search instead for 
Did you mean: 

GPU2D and RGB565: Can the GPU2D use dithering in gradients?

Jack3
Senior III

Hello, I'm using an STM32U5G7VJTx MCU with a 480x320 display, connected to the FMC in 16-bit mode, and everything works fine using the GPU2D. I'm not using an existing GUI framework.

The pixel format used by the display is RGB565 (16bpp), so for gradients, I want to use dithering to soften the banding. I found this definition in the 'nema_graphics.h' file:

#define NEMA_DITHER     0x80U  /**< Nema Dithering */

However, it seems undocumented. How do I make use of it?

Kind regerds, Jack.

10 REPLIES 10
JBJOE.1
ST Employee

Hi @Jack3 

You are right, the TouchGFX team has a lot of knowledge on the GPU2D. I will most likely see all posts on related to NeoChorm, especially if they are posted in "STM32 MCUs TouchGFX and GUI". 
So, keep the Topics flowing, I will try to help as best as I can. 

Regards,

Jakob BJOERN
Senior Software Engineer | STM32 Graphics