Skip to content
Discussion options

You must be logged in to vote

Expression LV_STATE.CHECKED is wrong here - it is always true, so IsTrue will always go through Yes output.

There are CHECKED and UNCHECKED events, use those:

Or you can store switch checked state in variable (altitude_visible in the attached project):

and use that variable for the altitude display widget hidden state (!altitude_visible):

Both ways are implemented in the following project:

lvgl_switch_and_hidden_flag.zip

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rghince
Comment options

Answer selected by rghince
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants