[N9Hxx Non-OS] How to preset LCD orientation?

Post Reply
9chuckyoung
Posts: 88
Joined: 28 Jan 2019, 13:49

21 Apr 2020, 15:20

Note: preset LCD orientation may decrease performance!
Note: need to increase emWin memory pool in GUIConf.c, e. g., 1-MByte is a good start.
Note: emWin didn't support dynamic orientation!
Note: need to proceed touch calibration again, emWin didn't support touch orientation https://forum.segger.com/index.php/Thre ... RotateHQT/

Find LCDConf.c and add GUI_SetOrientation with user defined DISPLAY_ORIENTATION:

Code: Select all

//
// Orientation
//
//#define DISPLAY_ORIENTATION (0)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_X)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_Y)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_MIRROR_Y)
//#define DISPLAY_ORIENTATION (GUI_SWAP_XY)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_SWAP_XY)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_Y | GUI_SWAP_XY)
//#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_MIRROR_Y | GUI_SWAP_XY)
.
.
.
LCD_SetVRAMAddrEx(0, (void *)u8FrameBufPtr);
GUI_SetOrientation(DISPLAY_ORIENTATION);

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest