cancel
Showing results for 
Search instead for 
Did you mean: 

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

Junde
Senior II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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.

View solution in original post

2 REPLIES 2
SofLit
ST Employee

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
Senior II

Thanks for your help @SofLit 

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