How do i configure Landscape orientation for STM32F429I-DISC1 (native portrait) ?
- June 27, 2019
- 3 replies
- 2236 views
Hello,
I tried a project created by @Mon2 in this post. I've converted the SW4STM32 project to Atollic one and build it with arm-atollic-eabi-gcc and arm-atollic-eabi-g++ (gcc -v 6.3.1). Everything worked fine so i swapped the resolution in *.touchgfx file to make it landscape, edited the screen and generated code. Then i added the line
HAL::getInstance()->setDisplayOrientation(ORIENTATION_LANDSCAPE);to main.cpp (just before start of kernel) and suitable include. Rebuild the project and uploaded it to the board. After these steps the UI components like buttons (except flex button), sliders and some others does not render correctly (pic bellow), but function normaly.
So my question is - What am i doing wrong? Or is this some bug in TouchGFX? (found similar issue here but for STemWin)
Edit:
added zip with project


