2022-04-25 05:33 AM
Hi everyone,
is it somehow possible to "flip" the screen for a 180 degree rotation?
Either on TouchGFX, LTDC or DMA2D level?
We are using CubeMX to generate the whole project and everything works smoothly, but we need to rotate the screen.
Cheers,
Patrick
Solved! Go to Solution.
2022-04-25 07:34 AM
Unfortunately, it is not yet possible to realise this in TouchGFX. As a rule, users have so far developed the graphic interface for a static system and in such a case simply rotated the entire display by 180 degrees, i.e. mechanically. You may be able to do the rotation at driver level because some displays allow that.
However, there is a thread here in the community in which a software solution with all its disadvantages has already been discussed.
Good luck!
Regards
/Peter
2022-04-25 07:34 AM
Unfortunately, it is not yet possible to realise this in TouchGFX. As a rule, users have so far developed the graphic interface for a static system and in such a case simply rotated the entire display by 180 degrees, i.e. mechanically. You may be able to do the rotation at driver level because some displays allow that.
However, there is a thread here in the community in which a software solution with all its disadvantages has already been discussed.
Good luck!
Regards
/Peter
2022-04-25 08:34 AM
Hello Peter,
thanks for pointing me to this thread!
2023-08-29 04:38 AM
The main problem in 90 degree rotation with DMA2D is that it lacks the ability to decrement the destination address. there is an optimized way to rotate an image 90 degree with much better performance compared to software version.
for 180 degree you can use MDMA. they have an example for it.
Regards
M.Salem