牛卧堂MCU技术交流

标题: [N9Hxx Non-OS] How to preset LCD orientation? [打印本页]

作者: yli    时间: 2020-4-24 09:53
标题: [N9Hxx Non-OS] How to preset LCD orientation?
Note: preset LCD orientation may decrease performance!

Find LCDConf.c and add GUI_SetOrientation with user defined DISPLAY_ORIENTATION:
  1. //
  2. // Orientation
  3. //
  4. //#define DISPLAY_ORIENTATION (0)
  5. //#define DISPLAY_ORIENTATION (GUI_MIRROR_X)
  6. //#define DISPLAY_ORIENTATION (GUI_MIRROR_Y)
  7. //#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_MIRROR_Y)
  8. //#define DISPLAY_ORIENTATION (GUI_SWAP_XY)
  9. //#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_SWAP_XY)
  10. //#define DISPLAY_ORIENTATION (GUI_MIRROR_Y | GUI_SWAP_XY)
  11. //#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_MIRROR_Y | GUI_SWAP_XY)
  12. .
  13. .
  14. .
  15. LCD_SetVRAMAddrEx(0, (void *)u8FrameBufPtr);
  16. GUI_SetOrientation(DISPLAY_ORIENTATION);
复制代码







欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/) Powered by Discuz! X3.2