Page 1 of 1

rgb_panel 示例中 运行组件里的lvgl的demos

Posted: Sun Oct 01, 2023 12:48 pm
by yueyueyue
我的板子是esp32s3r8n16,lcd是7寸800*480的,参照:https://github.com/espressif/esp-dev-ki ... mos,例程,只运行 idf.py -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.psram_octal_120m" reconfigure ,,,编译成功,烧入板上后,无限重启,报E
(717) lcd_panel.rgb: esp_lcd_new_rgb_panel(250): fb size must be even multiple of bounce buffer size,错误
Snipaste_2023-10-01_20-33-51.png
Snipaste_2023-10-01_20-33-51.png (54.98 KiB) Viewed 3162 times
.bounce_buffer_size_px =100*BSP_LCD_H_RES,反射的缓存高度设置100,
Snipaste_2023-10-01_20-41-18.png
Snipaste_2023-10-01_20-41-18.png (30.66 KiB) Viewed 3162 times
void *buf1 = NULL;
void *buf2 = NULL;
int buffer_size;
buffer_size = BSP_LCD_H_RES * LVGL_BUFFER_HEIGHT;//也是100*宽
buf1 = heap_caps_malloc(buffer_size * sizeof(lv_color_t), LVGL_BUFFER_MALLOC);
Snipaste_2023-10-01_20-48-15.png
Snipaste_2023-10-01_20-48-15.png (43.22 KiB) Viewed 3162 times