cancel
Showing results for 
Search instead for 
Did you mean: 

Changing screen orientation with STM32L4R9-Disco STemWin Hello world example

STrop
Associate II

Hello,

I would like to reverse the screen orientation on the Hello World example for STemWin provided in STM32Cube_FW_L4_V1.14.0

I have understand that the simplest way to do that is by selecting the LCD driver following the desired screen orientation as describe in section 33.5 Display orientation of STemWin user guide.

The only modification made in the example project is adding the folowing after GUI_DispStringHCenterAt :

 GUI_DrawRect(10,10,100,100);

Here is the result with the configuration :

#define ORIENTATION_0 ROTATION_0

0690X00000BusTSQAZ.jpg

#define ORIENTATION_0 ROTATION_CW

0690X00000BusVEQAZ.jpg

#define ORIENTATION_0 ROTATION_180

0690X00000BusVOQAZ.jpg

#define ORIENTATION_0 ROTATION_CCW

0690X00000BusVTQAZ.jpg

Did I miss another configuration in LCDConf.c ?

Thanks

0 REPLIES 0