Yes it does. I had to increase the switch debounce time (“buttonInterval”, was 100 now 400) to prevent double hits when the button was pressed. Measuring with my oscilloscope I observed the little through-hole buttons on the boards don’t contact bounce at all. However the microswitch under the big button on my table has a debounce time of about 3ms. No trouble with ringing or noise even though all the switches are wired in parallel.
Thanks for the quick reply Windell. Unfortunately external lighting is not possible in this case.
Adjusting the cutoffs down [40, 35, 30, 25] has given me a useful sensitivity range for all 4 levels however there is still quite a bit of false triggering. Is there an easy way to increase the filtering by adjusting the existing code?