Skip to content
Button library supports debounce, pressed/released events. It is easy to use with multiple buttons. It is designed for not only beginners but also experienced users
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
README.md
keywords.txt
library.properties

README.md

ezButton Library for Arduino

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

Features

  • Uses the internal pull-up resistor 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

Available Examples

  • 01.SingleButton
  • 02.SingleButtonDebounce
  • 03.SingleButtonEvents
  • 04.SingleButtonAll
  • 05.MultipleButtonAll
  • 06.ButtonCount

Available Functions

  • setDebounceTime()
  • getState()
  • getStateRaw()
  • isPressed()
  • isReleased()
  • setCountMode()
  • getCount()
  • resetCount()
  • loop()

References

You can’t perform that action at this time.