In my project i receive data via nimble and showing data on LCD by using LVGl . My data reception rate is 40 millisecond . My problem is when the chart start to update the value the screen moves up and down like the screen is not stable , LCD doesn't crash or tear just screen moves up and down. i provide the gift of my problem .
this is the part of my code that i sort the data for showing on LCD (
static void process_received_data(uint8_t *data , uint16_t length)
{
switch (data[0])
{
case 0x5A:
if (length >= 11) {
ESP_LOGI(TAG, "ECG Data Packet");
gui_chart_update_t *gui_chart_data = malloc(sizeof(gui_chart_update_t));
if (gui_chart_data == NULL) {
ESP_LOGE(TAG , "Failed to allocated GUI chart data");
return;
}
memcpy(gui_chart_data->Ecg , data , Ecg_size);
gui_chart_data -> Ecg_len = Ecg_size;
gui_chart_data -> update_ecg = true;
lv_async_call(update_chart_gui , gui_chart_data);
}
break;
)
/**********************************************************************************************/
this is my code for updating the chart (
static void update_chart_gui(void *arg)
{
gui_chart_update_t *chart_data = (gui_chart_update_t *)arg;
if (chart_data->update_ecg) {
for(size_t i =0; i < chart_data->Ecg_len ; i++) {
//Update Chart graph
lv_chart_set_next_value(ui_Ecg_Waveform , ui_Ecg_Waveform_series_1 , chart_data->Ecg);
}
}
free(chart_data);
}
).
even i use array and "lv_chart_set_ext_y_array" function but still doesn't work . My board is Waveshare ESP32S3 7-inch LCD 800 * 480.
I don't how i must config and set the lvgl to have high refresh rate without get crashing . i would be grateful if you could help me solve this problem .
Lvgl chart bug
-
RezaMoradi
- Posts: 1
- Joined: Fri May 30, 2025 8:05 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 3 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!