I don’t believe it’s possible to interrupt a loop with a touch event. I ‘want’ to be able to touch a ‘STOP’ button on the HMI to stop the countdown timer which is displaying on screen.
In your WHILE/FOR loop, check the tch0 and tch1 values. These indicate the current touch positions (x,y coords). If they indicate a valid touch location then “STOP”
Didn’t know about those, I’ll check it out. Thanks!!
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).