Re: Capacitive touch - trapping a long press?
You might be able to use some code for a long press in a regular pushbutton and convert it to what you need. You just need to have a variable Last_High_Reading in order to compare the current readings to that last high reading. If the variable Current_Reading is not below 80% of Last_High_Reading then the sensor was released. I have written some code for a long press in a regular pushbutton but not for a Capacitive Touch Sensor.
http://www.picbasic.co.uk/forum/show...ght=long+press
http://www.picbasic.co.uk/forum/show...ght=long+press
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks