"Manually" trigger a button press and release rendering

Hi,

Description

Maybe a newbie question.

Is there any command for “Manually” press a button ?

I would like to simulate a button press remotely, for example without using vnc, ie: send a remote command via wifi.

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

ESP32

What do you want to achieve?

“Manually” trigger a button press and release rendering.

Thank’s.

lv_btn_toggle will take care of that for you.

Or lv_btn_set_state() but you still need to call lv_event_send(btn, LV_EVENT_CLICK/PRESS/RELEASE/..., NULL)

I assume you mean lv_btn_set_state?

Yes, updated, thank you!