cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with STM32F469 LCD and BSP_LCD_SetLayerWindow

Jerry Hancock
Associate II
Posted on December 08, 2016 at 20:01

After getting addresses correct in the dual layers, I am having a problem with windowing using 

BSP_LCD_SetLayerWindow.  I get the correct sized window but if I draw a circle in it, it appears three times, stretched.  Text is all distorted.  

What is the proper sequence to set a window?  I am using the following:

BSP_LCD_SelectLayer( LTDC_ACTIVE_LAYER_FOREGROUND );

BSP_LCD_SetTransparency( LTDC_ACTIVE_LAYER_FOREGROUND , (

uint8_t

) 0xFF);

BSP_LCD_SetLayerWindow( LTDC_ACTIVE_LAYER_FOREGROUND ,50,50,300,300);

BSP_LCD_Clear(LCD_COLOR_WHITE);

BSP_LCD_SetTextColor(LCD_COLOR_BLACK);

BSP_LCD_SetLayerVisible( LTDC_ACTIVE_LAYER_FOREGROUND,

ENABLE

);

BSP_LCD_DisplayStringAt(50,10,

 

(

uint8_t

*)

'foreground window'

,

LEFT_MODE

);

BSP_LCD_DrawCircle(50, 50, 30);

I've tried several sequences with the same results.

Thanks, it's taken a while to get this far...

Jerry

0 REPLIES 0