cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin Display Orientatino

kartik
Associate II
Posted on June 18, 2014 at 19:58

I'm working with the STM32F439_Evaluation platform. I swapped the display out with an AMP 480X272 pcap display and have everything working. I used the LCD Conf file from the demo project and made some compile time based changes for XSIZE_PHYS and YSIZE_PHYS. I want to change the orientation to a portrait scheme and changing LCD_SWAP_XY doesn't seem to do it. I don't see any references to it in the supplied LCDConf.c file leading me to believe that it is not setup for protrait orientation. Any tips on the changes I need to make to get it to work ? Are any changes needed to be made in with regards to the frame buffer allocation ?

#stemwin
3 REPLIES 3
rbs3rd
Associate II
Posted on June 24, 2014 at 21:57

search our entire project for ORIENTATION_0. The define is where the orientation is set. 

Hope this helps.

rigomate2
Associate II
Posted on June 26, 2014 at 14:51

I've attached the modifiedGUIDRV_stm32f429i_discovery.c , which I made for a 640x480 display attached to the STM32F429-DISCO board with a 90degree rotated screen.

It is driven with the LTDC, just as the example display found on the discovery board.

Do a diff against the original, to see what has been modified.

________________

Attachments :

GUIDRV_stm32f429i_discovery_modified.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzTs&d=%2Fa%2F0X0000000bMT%2FEh9V5OWoHGPfXpIRIVdtZ2LwEGYLzO8Yke9mEFjNtPc&asPdf=false

GUIDRV_stm32f429i_discovery_orig.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzTo&d=%2Fa%2F0X0000000bMP%2FazVkKWtiWnp6M8PqUvnA_NV6GFFvFg0.vAByTBnC0bI&asPdf=false
Posted on November 05, 2014 at 10:44

Hi,

To change the display orientation to Portrait you have to change the display driver in LCDConf file:

#define DISPLAY_DRIVER_0   GUIDRV_LIN_OSX_32

Instead of

#define DISPLAY_DRIVER_0   GUIDRV_LIN_32

Regards,

Heisenberg.