lv_obj_clear_state() function
Remove one or more states to the object. The other state bits will remain unchanged. If specified in the styles, transition animation will be started from the previous state to the current.
Arguments
state
the states to add. E.g `LV_STATE_PRESSED | LV_STATE_FOCUSED`