Unofficial Nextion/TJC User Forum

Nextion WHILE problem

I am showing data from a load cell on the display, I use a WHILE to get the data constantly, the problem is that when the WHILE is running the other buttons on the display do not work.

How can I close WHILE?

Use an if instead of a while. While is blocking, the only thing that can get you out of it is changing the value of, in your case, “o”.

You could also add this to your while loop.

This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).