V8 Documentation problem

To the dear documenter :slight_smile:
It seems you have forgotten to place the static keyword before the “lv_disp_drv_t disp_drv;” in the get started section of the V8 document (Page 194). It is misleading for beginners.

Sincerely yours.

Is that in the section Get started » Quick overview » Add LVGL into your project ?

Indeed, these should be declared static in v8.x:

lv_disp_drv_t disp_drv;               /*Descriptor of a display driver*/


lv_indev_drv_t indev_drv;                  /*Descriptor of a input device driver*/

I have submitted a PR for adding the static keyword to those examples.

Thanks for reporting this issue.

This has been fixed in the docs now.

1 Like

I have been away for a moment. Yes, it was for the V8 and the previous versions didn’t need it.
Thank You.