Debouncing Multiple SwitchesWritten by admin
- You are unlikely to enable the internal pull-up resistor on switch pins, therefore each switch require an external pull-up resistor
- It is not possible to detect the switch state before main loop (setup). When you press a switch during power on, you will never get the state of the switch.
Latest from admin
Thursday, 13 April 2017 19:46
posted by kinjobo
Thanks for sharing!
How can I... lets say I press button 1, then button 2, then button 3, then button 6, then button 4,.....
how can I set the button 6 can be recognized one more time?
So buttons 1,2,3,4 will not be recognized but button 6 will be one more time??
Thanks for help
Sunday, 08 May 2016 04:43
posted by hadj
Thanks for sharing this!
i've tried your function with three Catalex TTP223B capactive touch sensors, and it works great better than "justpressed[i]"
I would like to press 2 sensors at the same time and call a function than, can you please advice me? how can i adapt your function?
(i tried (thisSwitch == 0) && (thisSwitch == 1) but it doesn't work)
Thank you for you help