This library is designed to make it easy to use push button, momentary switches, toggle switch, magnetic contact switch (door sensor)... It is easy to use for not only beginners but also experienced users.
ezButton stands for Easy Button
- Uses the internal pull-up resistor by default to avoid the floating value
- Supports debounce to eliminate the chattering phenomenon
- Supports the pressed and released events
- Supports the counting (for FALLING, RISING and BOTH)
- Easy to use with multiple buttons
- All functions are non-blocking
- Support internal pull-up/pull-down, external pull-up/pull-down
- 01.SingleButton
- 02.SingleButtonEvents
- 03.SingleButtonDebounce
- 04.SingleButtonAll
- 05.MultipleButtonAll
- 06.ButtonCount
- 07.ButtonArray
- setDebounceTime()
- getState()
- getStateRaw()
- isPressed()
- isReleased()
- setCountMode()
- getCount()
- resetCount()
- loop()