Skip to main content
Junde
Senior III
March 21, 2024
Solved

what's the meaning of the LTDC config item, like Alpha, Alpha0?

  • March 21, 2024
  • 2 replies
  • 1144 views

Hi all,

I am trying to config the LTDC, after config and generating the code by cubeMx, I see some config like the below:

 

 

 pLayerCfg.Alpha = 0;
 pLayerCfg.Alpha0 = 0;
 pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_CA;
 pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_CA;

 

 

My config is the same as below:

Junde_0-1711006751755.png

And I have tried to change some items for exploring as below:

Junde_2-1711006947916.png

I can easily understand that L1_Alpha controls the transparency of Layer1, but others seems not clear.

I am confused about what these items mean. Can some document introduce me to how to calculate the RGB result?

Thanks a lot.

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

You can refer to this AN4861 "Introduction to LCD-TFT display controller (LTDC) on STM32 MCUs"

2 replies

mƎALLEm
mƎALLEmBest answer
Technical Moderator
March 21, 2024

Hello,

You can refer to this AN4861 "Introduction to LCD-TFT display controller (LTDC) on STM32 MCUs"

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Junde
JundeAuthor
Senior III
March 29, 2024

Thanks for your help @mƎALLEm 

Now I got that the 'Alpha0' is a parameter for the background color, it means the 'A' of 'ARGB'.