牛卧堂MCU技术交流
标题:
How to enable multiple buffers to avoid flicker or tearing?
[打印本页]
作者:
yli
时间:
2020-4-24 09:52
标题:
How to enable multiple buffers to avoid flicker or tearing?
Platform: N9H20
Platform resource link:
https://www.nuvoton.com/hq/products/app ... _locale=en
BSP link:
https://github.com/OpenNuvoton/N9H20_emWin_NonOS
IDE: Keil professional
NOTE: Please download the latest version of N9H20 BSP from OpenNuvoton.
Follow the steps to enable emWin multiple buffers:
1. remove LCDConf.c from sample project
2. add LCDConf2.c to sample project
3. remove GUIConf2.c from sample project
4. add GUIConf2.c to sample project
5. increase main.c frame buffer size
#ifdef __ICCARM__
#pragma data_alignment = 32
UINT8 u8FrameBuf[XSIZE_PHYS*YSIZE_PHYS*2*3];
#else
UINT8 u8FrameBuf[XSIZE_PHYS*YSIZE_PHYS*2*3] __attribute__((aligned(32)));
#endif
复制代码
6. enable multiple buffers after GUI_Init():
GUI_Init();
WM_MULTIBUF_Enable(1);
GUI_MEMDEV_MULTIBUF_Enable(1);
复制代码
7. password is nuvoton
N9H20_multiple_buffers.zip
(5.2 KB, 下载次数: 1451)
2020-4-24 09:52 上传
点击文件名下载附件
作者:
匿名
时间:
2023-3-16 09:46
你好,请问解压密码是多少,谢谢
作者:
admin
时间:
2023-3-16 10:17
游客 14.222.101.x 发表于 2023-3-16 01:46
你好,请问解压密码是多少,谢谢
nuvoton
欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/)
Powered by Discuz! X3.2