Description
How can i check the Toggle State of a Button?
What MCU/Processor/Board and compiler are you using?
STM32H7 with STM32CubeIde
What LVGL version are you using?
V7.9.1
How can i check the Toggle State of a Button?
STM32H7 with STM32CubeIde
V7.9.1
lv_btn_get_state should work for this
bool checked = (lv_obj_get_state(btn, LV_BTN_PART_MAIN) & LV_STATE_CHECKED);