ESP32 2.4" HMI TFT
I have the ESP32 5 inch display compiling and loading the factory program
I have purchased the 2.4 inch but the example:
LVGL_Arduino2.4RTP-CeShi-Hor.ino
and I am getting the errors :
C:\Users\mark\OneDrive\Desktop\LVGL_Arduino2.4RTP-CeShi-Hor\LVGL_Arduino2.4RTP-CeShi-Hor.ino: In function 'void lv_example_bar()':
C:\Users\mark\OneDrive\Desktop\LVGL_Arduino2.4RTP-CeShi-Hor\LVGL_Arduino2.4RTP-CeShi-Hor.ino:426:37: error: 'ui_img_bar_320_01_png' was not declared in this scope
lv_obj_set_style_bg_img_src(bar, &ui_img_bar_320_01_png, LV_PART_MAIN | LV_STATE_DEFAULT);
^~~~~
C:\Users\mark\OneDrive\Desktop\LVGL_Arduino2.4RTP-CeShi-Hor\LVGL_Arduino2.4RTP-CeShi-Hor.ino:426:37: note: suggested alternative: 'ui_img_bar_800_01_png'
lv_obj_set_style_bg_img_src(bar, &ui_img_bar_320_01_png, LV_PART_MAIN | LV_STATE_DEFAULT);
^~~~~
ui_img_bar_800_01_png
C:\Users\mark\OneDrive\Desktop\LVGL_Arduino2.4RTP-CeShi-Hor\LVGL_Arduino2.4RTP-CeShi-Hor.ino:428:37: error: 'ui_img_bar_320_02_png' was not declared in this scope
lv_obj_set_style_bg_img_src(bar, &ui_img_bar_320_02_png, LV_PART_INDICATOR | LV_STATE_DEFAULT);
^~~~~
C:\Users\mark\OneDrive\Desktop\LVGL_Arduino2.4RTP-CeShi-Hor\LVGL_Arduino2.4RTP-CeShi-Hor.ino:428:37: note: suggested alternative: 'ui_img_bar_800_02_png'
lv_obj_set_style_bg_img_src(bar, &ui_img_bar_320_02_png, LV_PART_INDICATOR | LV_STATE_DEFAULT);
^~~~~
ui_img_bar_800_02_png
Comments
Hello @Marktecwiz
Thank you for your information.
Please refer to this tutorial page and try uploading the demo code: https://www.elecrow.com/wiki/2.4-inch-esp32-dispaly-arduino-tutorial.html