资 源 简 介
ClickButton
A simple one-button Arduino library to get short and long clicks, multiple clicks (double click, triple click etc.). Click-and-hold is also possible.
Features: Button clicks, basically :)
Buttons (Or rather the input signal)
Debounced (Default: 20 ms debounce timer)
Current state
Active low (can use the internal pullup-resistor)
Active high
Clicks (IE signal timings)
Short click(s) (Default: Click count within 250 ms)
Long click(s) (Default: Last click is held down for at least 1 second)
Dynamic settings for short/long clicks and debounce timers.
Details (some of them anyway) <