Nextion problem on dual state buttons

Hello community ,

I use a nextion screen with esp 32,
I display some dual state buttons on the main page,

When I press these buttons, the buttons change shape (colored as the picture number 1 shows).

Then when I change the page(picture number 3) and come back to the main page, the buttons come back to the initial state (not colored as picture number 2 shows) even if the button commands are running.

How can I keep them in their states when I change and come back to the main page again?

Thanks



I just solved the problem by changing the local scop variable to global,

Thanks

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.