NXP recently added some LittlevGL examples into their SDKs for the RT family. I’m using one example named littlevgl_terminal from the newest SDK (2.7.0). By default, the orientation of the image for this example is landscape, I want to change the orientation to portrait, however, I haven’t found a way to do it.
In the past, I have work with other Embedded GUI libraries and they normally have a macro that controls the orientation of the image, if you change this macro you can easily rotate the image. I went through all the example code and I couldn’t find anything similar, so it seems that this is not supported by LittlevGL. Does someone know how to achieve this? Probably it will be necessary to modify the littlevgl_support.c file, but it’s not clear what modifications I will need to do. Could someone point me in the right direction?
What MCU/Processor/Board and compiler are you using?
What do you want to achieve?
Change the orientation of the image
What have you tried so far?
I think that it will be necessary to modify the function DEMO_FlushDisplay inside the file littlevgl_support.c. However, I don’t know which things I should modify.
Code to reproduce
The SDK can be downloaded from the following link: mcuxpresso.nxp.com/
Any help will be appreciated!