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?
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.
This comment is often referenced as an example for rotating the display. You also need to set the rotated flag in the driver structure where it gets registered (search for lv_disp_drv_register).
Has anyone been able to get portrait mode working on the RT1060-EVK board? We have looked at the example for the stm32f746_discovery_no_os board but the code differences are making it difficult for us to implement correctly. Thanks!!