This library provides an easy way for reading and debouncing one or multiple buttons connected to a microcontroller. Apart from basic functionality, the library provides some extra functions such as reading a combination of buttons, and detecting a button long press or a double pressed button. These are especially useful in a low button count system.
Multiple buttons can also be
read by a single ADC pin.
Contents
- What is button debouncing
- Button debouncing in software
- Usage example
- API
- Millis timing library
- Setup
- Setting long press timeout
- Check reading complete
- Get pressed buttons
- Get active buttons
- Check for long pressed buttons
- Check for double pressed button
- Read a button combination
- Download