Open aviost opened 4 weeks ago
@aviost Thank you for your code. I will try it and compare it to the existing implementation. Looks good. I also have fat fingers!
nik
The logic is: Anyway - Check only if enough time has passed from the last status change Then... do the following only if the status is new (held/not held) Then... If the new status is "HELD" do your work with this touch Reset "earliest time to check" and update the current (saved) status
You can uncomment the debug line and see it at work
Hi Nick, Thank you for your excellent work. I would abandon this piece of hardware without your code. With the Ruler (and my old fat fingers), I had many "double-touch" accidents. This code works much better for me; you can consider including it. Avi Ostfeld
In the global scope, add:
Replace the loop code with: