2014-06-18 10:58 AM
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 ?
#stemwin2014-06-24 12:57 PM
search our entire project for ORIENTATION_0. The define is where the orientation is set.
Hope this helps.2014-06-26 05:51 AM
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=falseGUIDRV_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=false2014-11-05 01:44 AM
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_32Instead of#define DISPLAY_DRIVER_0 GUIDRV_LIN_32Regards,Heisenberg.