Description
I’m trying to graph ADC values from my esp 32 in a scatter plot using the LVGL chart(), although it is not updating fast enough and lags the display making any user input awful.
What MCU/Processor/Board and compiler are you using? ESP32,
What LVGL version are you using? 9.2.2
What do you want to achieve? Update chart faster by only updating data points on scatter plot.
What have you tried so far? Using either chart or canvas to update singular points, but in the end they all call for an object invalidate that causes major lag for large objects.
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
void update_chart_values() {
int x_value = analogReadMilliVolts(pin_X);
int y_value = analogReadMilliVolts(pin_Y);
lv_chart_set_next_value2(chart, ser, x_value, y_value);
}