Problem adding more than one button on List

Description

Problem adding more than one button on List

What MCU/Processor/Board and compiler are you using?

ESP32S3 Dev Module

What LVGL version are you using?

8.3.3

What do you want to achieve?

A list with more than one button

Code to reproduce

File ui.c

/void ui_event_botonBuscarWifi3(lv_event_t * e)
{
lv_event_code_t event_code = lv_event_get_code(e);
lv_obj_t * target = lv_event_get_target(e);
if(event_code == LV_EVENT_CLICKED) {
_ui_screen_change(&ui_BusquedaWifi, LV_SCR_LOAD_ANIM_NONE, 0, 0, &ui_BusquedaWifi_screen_init);
delay(100);
funcionBuscarWifis(e);
}
}
/

File ui_event.cpp

/*#include “ui.h”
#include “WiFi.h”

void funcionBuscarWifis(lv_event_t * e)
{

WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
lv_obj_t * list1 = lv_list_create(ui_BusquedaWifi);
lv_obj_set_width(list1, 180);
lv_obj_set_height(list1, 220);
lv_obj_set_x(list1, 300);
lv_obj_set_y(list1, 150);
lv_obj_add_flag(list1, LV_OBJ_FLAG_SCROLLABLE);
lv_list_add_text(list1, “Wifis”);

lv_list_add_btn(list1, LV_SYMBOL_WIFI, “Test1”);

//When add the second button the screen is blocked, no serial info
lv_list_add_btn(list1, LV_SYMBOL_WIFI, “Test2”);
} */

I’ve tried everything and I don’t understand what could be happening. Please help me

Thanks

Daniel