Set opacity when wifi is on

What do you want to achieve?

Hi all,
i would like set opacity of wifi logo when this is connected,

i’m a newbie, and i don’t know where and how i can change my code to active this
wifi is on my ui.ino but the event is in ui.c
thanks for your help.

What have you tried so far?

void ui_event_wifiOn(lv_event_t * e)
{
    lv_event_code_t event_code = lv_event_get_code(e);

    if(status == 3) {
        _ui_opacity_set(ui_wifiOn, 255);
    }
}

Screenshot or video

Others

  • SquareLine Studio version: 1.5
  • Operating system:Windows 10
  • Target hardware:ESP32-S3 1.28 touch

And wha is problem?

Since 1week, i didn’t know how change my code to active icon on LVGL with my librarie Wifi on ui.ino
but yesterday i have try with chatgpt and it’s ok know, i have understand how to create an external int on my ui.c and call this on my ino file,

today my icon is active when wifi is connected, and i have needle synchronize with ntp hour for my clock too.

i can share this project on an another thread in this forum.

1 Like