使用正点原子潘多拉开发板,rtthread studio,LittleVGL2RTT软件包,对接了LCD框架,可以显示界面
遇到的问题是屏幕分辨率240x240, 16位颜色,如果用帧缓冲需要115200字节的ram,潘多拉的(96+32)k字节不够用,用160x160正常使用
不用帧缓冲方式需要实现两个函数,实现之后不能正常显示
LVGL支持三种缓存的配置:
/* LVGL requires a buffer where it draws the objects. The buffer's has to be greater than 1 display row
*
* There are three buffering configurations:
* 1. Create ONE buffer with some rows:
* LVGL will draw the display's content here and writes it to your display
*
* 2. Create TWO buffer with some rows:
* LVGL will draw the display's content to a buffer and writes it your display.
* You should use DMA to write the buffer's content to the display.
* It will enable LVGL to draw the next part of the screen to the other buffer while
* the data is being sent form the first buffer. It makes rendering and flushing parallel.
*
* 3. Create TWO screen-sized buffer:
* Similar to 2) but the buffer have to be screen sized. When LVGL is ready it will give the
* whole frame to display. This way you only need to change the frame buffer's address instead of
* copying the pixels.
* */
参见lv_port_disp_template.c中75行后面的示例代码,你可以选用第二种方法,其可以降低对于内存的消耗。
感谢提醒,默认的帧缓冲方式应该是方式3,

其实他这个库是支持方式1的,不设置framebuffer即可,需要实现两个函数
之前是实现方式不对,已经搞定了,感谢
楼主,您好,我想请教您一下,如何实现littleVGL移植到RT的?能分享一下经验吗?
@ZBXY_7941 您好,我也想请教您一下,如何实现的littleVGL移植到RTT的啊?