Start a new topic

Nextion for case switch

Just a quick question...I want to use the nextion button to switch between a Boolean statement, and then save it to EEPROM so the value can be pulled out latter.


Does this look right to you guys? it does not seem to be saving the value.



HMI
(3.06 MB)
ino
(947 Bytes)
1 Comment

I replaces the switch case with an else/if because it is only 2 states. I also added further into the code where depending on if its on or off it will print different values on the screen. however when I add them the button no longer works and the text wont change and the value stored in eeprom no longer changes. When that section is comented out the button works as it should. What am I doing wrong? The HMI file is the same.

ino
Login or Signup to post a comment