도전2022

STemWin stm32F429 Discovry Lcd rotation by 90 degrees 본문

작업/Work2015

STemWin stm32F429 Discovry Lcd rotation by 90 degrees

hotdigi 2015. 6. 19. 21:38

http://forum.segger.com/index.php?page=Thread&threadID=1672#stm32f429iDiscovery#emWin#STemWin




I've tested STemWin Examples [1] on STM32F429 Discovery with GCC Compiler (EmBlocks 2.30 [2]).

Original configuration is as follow
#define XSIZE_PHYS 240
#define YSIZE_PHYS 320
#if (COLOR_MODE_0 == _CM_ARGB8888)
#define COLOR_CONVERSION_0 GUICC_M8888I
#define DISPLAY_DRIVER_0 GUIDRV_LIN_32
  • Without any modification I get the following result
  • With GUIDRV_LIN_OSY_32 I get the following result
  • With #define YSIZE_PHYS 240 I get the following result
When I set a screen size less than 240px, screen was displayed as expected, but for size is greater than 240px, screen was corrupted as shown in above image. In my case, It seems that STemWin doesn't support the rotation the size greater than 240px.

How to rotate screen for its size greater than 240px. Thanks in advance.

Regards,
Ibrahim

[1] http://www.emblocks.org/web/downloads-ma…tm32f429i-disco
[2] http://www.emblocks.org/web/
ierturk has attached the following images:
  • 2014-10-30 11.37.19.jpg
  • 2014-10-30 11.38.36.jpg
  • 2014-10-30 11.39.44.jpg