Hello, I trying to send values from the temperature sensor to the display. BME280 sensor is reading values correctly what you can see on the Serial Monitor, but in display they don’t change, here is a problem. What i can do or change to fix that. Maybe different library?
Are you providing the tick to LVGL? Without that, the screen will not be updated by lv_task_handler() calls. I don’t see your lv_conf.h, but in case you haven’t set it up, here’s some information.
If on Arduino, you don’t need to create an interrupt/event to call lv_tick_inc, you can edit this section of lv_conf.h like this:
#define LV_TICK_CUSTOM 1
#if LV_TICK_CUSTOM
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
/*If using lvgl as ESP32 component*/
// #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h"
// #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL))
#endif /*LV_TICK_CUSTOM*/
Which LVGL version are you using? At the top of your post, you state 8.3.11, so I posted a potential solution for LVGL 8.x.x. But looking at the attached lv_conf.h, that looks like the LVGL 9.x.x config…
If you’re using LVGL 9.x.x, that solution above won’t work. Look here for LVGL 9.x.x:
I’m using 8.3.11 because i want use SquareLine to designe interface, but I would like to use 9.2 version. Have you any programs to create interface?
Now example program don’t work, i mixed up everything…
The lv_conf.h files are not interchangable between 8.x.x and 9.x.x, there are a lot of differences between both the configs and the library code.
I’d recommend starting with a clean install of LVGL 8.3.11, a clean lv_conf.h file from lv_conf_template.h, make the changes proposed above and any changes you need, and go from there. It’s hard to remote diagnose if you are trying to mix and match!