Am new to LVGL, am using RT1050 board, am trying to display camera image of RT1050 in LVGL , board camera has image format of RGB565, Please help me in displaying camera image in LVGL.
Thank you,
Vandana.
Am new to LVGL, am using RT1050 board, am trying to display camera image of RT1050 in LVGL , board camera has image format of RGB565, Please help me in displaying camera image in LVGL.
Thank you,
Vandana.
I believe it should be possible to do this using a canvas.
You would want to use an LV_COLOR_DEPTH
of 16. Then, configure the canvas using lv_canvas_set_buffer(canvas, camera_buffer, camera_width, camera_height, LV_IMG_CF_TRUE_COLOR)
.
When you need the camera image to refresh, call lv_obj_invalidate
on the canvas.