SkillAgentSearch skills...

Button

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

Install / Use

/learn @ArduinoGetStarted/Button
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ezButton Library for Arduino, ESP32, ESP8266...

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 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

Available Examples

Available Functions

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

References

NOTE:

  • If you are using the button module, set the pin to input mode with external pull-down resistor using ezButton button(pin, EXTERNAL_PULLDOWN). In this configuration, the module outputs LOW when the button is not pressed and HIGH when the button is pressed.
View on GitHub
GitHub Stars135
CategoryCustomer
Updated5d ago
Forks31

Languages

C++

Security Score

80/100

Audited on Mar 26, 2026

No findings