Hello All,
I work on example emWin project for i.MXRT family (NXP provides it as an example from their SDK). Example project uses few emWin funtions like
By default, all GUI is displayed in portrait mode. Display is configured as width 720 and height 1280. I would like to switch it to horizontal view.
From emWin docs (34.7.6.2 Color depth and display orientation (page 2469.)) I found out to play with available drivers. OK, I gave it a try and seems not everything is fully functional:
Seems there is some issue with X and Y swapping. Any hints what changes are required to make it working fine? Thanks in advance!
I work on example emWin project for i.MXRT family (NXP provides it as an example from their SDK). Example project uses few emWin funtions like
By default, all GUI is displayed in portrait mode. Display is configured as width 720 and height 1280. I would like to switch it to horizontal view.
From emWin docs (34.7.6.2 Color depth and display orientation (page 2469.)) I found out to play with available drivers. OK, I gave it a try and seems not everything is fully functional:
- GUIDRV_LIN_16 (16bpp, default orientation): works fine
- GUIDRV_LIN_OX_16 (16bpp, X axis mirrored): works fine
- GUIDRV_LIN_OXY_16 (16bpp, X and Y axis mirrored): works fine
- GUIDRV_LIN_OS_16 (16bpp, X and Y swapped): does not work
- artifacts are displayed on whole screen so additional change has been made, plase see below:
- changing macro as follows makes the situation bit better (no artfacts) however half of display is simply black
- artifacts are displayed on whole screen so additional change has been made, plase see below:
- GUIDRV_LIN_OSX_16 (16bpp, X axis mirrored, X and Y swapped): does not work, half of the display is simply black
- GUIDRV_LIN_OSY_16 (16bpp, Y axis mirrored, X and Y swapped): does not work, half of the display is simply black
Seems there is some issue with X and Y swapping. Any hints what changes are required to make it working fine? Thanks in advance!