Will their be GitHub - lvgl/lv_drivers: TFT and touch pad drivers for LVGL embedded GUI library for Version 8.0.0
The existing drivers should remain compatible with v8.
I go these errors when I try 8.0.0
- <lvgl> 8.0.0
| |-- <lvgl> 7.11.0
|-- <lv_drivers> 7.9.1
| |-- <lvgl> 8.0.0
| | |-- <lvgl> 7.11.0
Building in release mode
Compiling .pio\build\emulator_32bits\lib2f9\lv_drivers\display\monitor.o
Compiling .pio\build\emulator_32bits\lib2f9\lv_drivers\indev\evdev.o
Compiling .pio\build\emulator_32bits\lib2f9\lv_drivers\indev\keyboard.o
Compiling .pio\build\emulator_32bits\lib2f9\lv_drivers\indev\libinput.o
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:52:21: error: 'LV_HOR_RES_MAX' undeclared here (not in a function); did you mean 'LV_HOR_RES'?
uint32_t tft_fb[LV_HOR_RES_MAX * LV_VER_RES_MAX];
^~~~~~~~~~~~~~
LV_HOR_RES
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:52:38: error: 'LV_VER_RES_MAX' undeclared here (not in a function); did you mean 'LV_VER_RES'?
uint32_t tft_fb[LV_HOR_RES_MAX * LV_VER_RES_MAX];
^~~~~~~~~~~~~~
LV_VER_RES
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:64:31: error: unknown type name 'lv_task_t'; did you mean 'lv_bar_t'?
static void sdl_event_handler(lv_task_t * t);
^~~~~~~~~
lv_bar_t
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:65:30: error: unknown type name 'lv_task_t'; did you mean 'lv_bar_t'?
static void monitor_sdl_refr(lv_task_t * t);
^~~~~~~~~
lv_bar_t
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c: In function 'monitor_init':
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:98:5: warning: implicit declaration of function 'lv_task_create'; did you mean 'lv_list_create'? [-Wimplicit-function-declaration]
lv_task_create(sdl_event_handler, 10, LV_TASK_PRIO_HIGH, NULL);
^~~~~~~~~~~~~~
lv_list_create
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:98:20: error: 'sdl_event_handler' undeclared (first use in this function); did you mean 'mousewheel_handler'?
lv_task_create(sdl_event_handler, 10, LV_TASK_PRIO_HIGH, NULL);
^~~~~~~~~~~~~~~~~
mousewheel_handler
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:98:20: note: each undeclared identifier is reported only once for each function it appears in
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:98:43: error: 'LV_TASK_PRIO_HIGH' undeclared (first use in this function); did you mean 'LV_MASK_ID_INV'?
lv_task_create(sdl_event_handler, 10, LV_TASK_PRIO_HIGH, NULL);
^~~~~~~~~~~~~~~~~
LV_MASK_ID_INV
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c: In function 'monitor_flush':
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:153:9: warning: implicit declaration of function 'monitor_sdl_refr'; did you mean 'monitor_sdl_init'? [-Wimplicit-function-declaration]
monitor_sdl_refr(NULL);
^~~~~~~~~~~~~~~~
monitor_sdl_init
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c: At top level:
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:232:31: error: unknown type name 'lv_task_t'; did you mean 'lv_bar_t'?
static void sdl_event_handler(lv_task_t * t)
^~~~~~~~~
lv_bar_t
.pio\libdeps\emulator_32bits\lv_drivers\display\monitor.c:279:30: error: unknown type name 'lv_task_t'; did you mean 'lv_bar_t'?
static void monitor_sdl_refr(lv_task_t * t)
^~~~~~~~~
lv_bar_t
*** [.pio\build\emulator_32bits\lib2f9\lv_drivers\display\monitor.o] Error 1
============================================================================================================================ [FAILED] Took 10.12 seconds ============================================================================================================================
Environment Status Duration
--------------- -------- ------------
emulator_32bits FAILED 00:00:10.115
======================================================================================================================= 1 failed, 0 succeeded in 00:00:10.115 =======================================================================================================================
The terminal process "C:\Users\ats37\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'emulator_32bits'" terminated with exit code: 1.
LVGL 8 hasn’t been released yet so there is no lv_drivers
release on PlatformIO for v8. You would have to use the master
branch.
Hi,
isn’t it released now ? Does someone have a version 8 compatible evdev-driver ready ? Asking the community. Thanks in advance.
Hi,
evdev-driver works if you change the signatures (from return bool to return void) and a few assignments (from drv->disp->driver.hor_res to drv->disp->driver->hor_res for instance). It works in my case but maybe it is buggy and there is more to it and that is why it hasn’t been merged, yet.