牛卧堂MCU技术交流

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

作者: yli    时间: 2020-4-23 10:04
标题: [N9Hxx Non-OS] How to preset LCD orientation?
本帖最后由 yli 于 2020-4-23 15:31 编辑

Note: preset LCD orientation may decrease performance!

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


//
// 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);






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