Re:Act on Press
by hi-v-rocknroll on Thursday May 23, 2024 @08:10PM
(#40461456)
It was probably positive edge-level triggered (and debounced) without considering the second release event. It's a common failure of digital interfacing state machine design.
[ Parent
| on HN ]
> To this day believe that the beep always came before the second click. I tried to trick it by clicking it once and only thinking about the second click — and the beep never came.
Does your explanation account for this behaviour?
Re:Act on Press
by hi-v-rocknroll on Monday May 27, 2024 @12:37AM
(#40487591)
Yep. The shortcut is either to look for down-down or down-release-down, rather than down-release-down-release, but then the UX becomes inconsistent.
Debouncing refers to removing the dozens/hundreds of random momentary conduction events a real physical switch makes just prior to making contact on a human time-scale that are readily visible on an oscilloscope. Without debouncing, momentary switches would be unusable.