Fix two examples in the docs with new v8 api (#2486)
* docs(overview) fix draw_buf fieldname Change display driver buffer field to the new v8 field name: draw_buf. * docs(overview) fix lv_img_create parameters lv_img_create only has 1 parameter in v8. * docs(get-started) fix draw_buf fieldname Display driver `buffer` field changed to the new v8 field name: `draw_buf`.
This commit is contained in:
@@ -38,7 +38,7 @@ lv_disp_draw_buf_init(&draw_buf, buf1, NULL, MY_DISP_HOR_RES * MY_DISP_VER_SER /
|
||||
static lv_disp_drv_t disp_drv; /*Descriptor of a display driver*/
|
||||
lv_disp_drv_init(&disp_drv); /*Basic initialization*/
|
||||
disp_drv.flush_cb = my_disp_flush; /*Set your driver function*/
|
||||
disp_drv.buffer = &draw_buf; /*Assign the buffer to the display*/
|
||||
disp_drv.draw_buf = &draw_buf; /*Assign the buffer to the display*/
|
||||
disp_drv.hor_res = MY_DISP_HOR_RES; /*Set the horizontal resolution of the display*/
|
||||
disp_drv.ver_res = MY_DISP_VER_RES; /*Set the vertical resolution of the display*/
|
||||
lv_disp_drv_register(&disp_drv); /*Finally register the driver*/
|
||||
|
||||
Reference in New Issue
Block a user