2022-02-06 10:35 PM
I want to rotate 90 degree the screen. How do it?
Rotate the screen 90 degrees?
Solved! Go to Solution.
2022-02-10 02:28 AM
@MM..1
I have same situation , simply create in designer upside down...
The text does not return. Something impossible is on my side.
2022-02-10 05:27 AM
If your display have this pin maybe have next one pin for flip second axis. For good rotation you need flip both.
2022-02-10 05:38 AM
Romain ahhh you need flip feature in PC designer app and user see it normal, but adding for example texts or image user see on PC upside down then change to 180 ... No impact in performance.
Now when user have this issue place all widgets upside down
2022-02-10 06:26 AM
2022-02-10 12:28 PM
This simply change in touchdriver code.
2022-02-10 10:01 PM
2022-02-10 11:31 PM
You dont need for touch register setup (maybe controller IC have one but simpler way is)
edit in target file TouchGFX\target\STM32TouchController.cpp
bool STM32TouchController::sampleTouch(int32_t& x, int32_t& y)
{
/**
* By default sampleTouch returns false,
* return true if a touch has been detected, otherwise false.
*
* Coordinates are passed to the caller by reference by x and y.
*
* This function is called by the TouchGFX framework.
* By default sampleTouch is called every tick, this can be adjusted by HAL::setTouchSampleRate(int8_t);
*
*/
if(i2cRXbuff[0]==0) return false;
x=i2cRXbuff[2];
y=i2cRXbuff[4];
return true;
}
This is only example code and for change flip simply rewrite two lines x=XMAX-x; ...
2022-02-11 03:43 AM
@MM..1 It worked. I hope it won't cause any problems in the future.