Skip to content
 
 

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork changes

This fork includes the Arduino Keyboard library to make it easier to create buttons that acts as a keyboard.

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.

ezKeyButton stands for Easy Keyboard Button

Features

  • UPDATED FROM ORIGINAL ezButton LIBRARY: make it easier to create buttons that acts as a keyboard. Uses the write and release functions in the Keyboard.h Arduino library.
  • 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

These examples are modified to suit this library. Only four examples are included here. For more examples see the original ezButton library.

Available Functions

  • setDebounceTime()
  • getState()
  • getStateRaw()
  • isPressed() with Keyboard.write();
  • isReleased() with Keyboard.release();
  • setCountMode()
  • getCount()
  • resetCount()
  • loop()

References

About

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. This fork includes the Keyboard Arduino library making it easy to create buttons that functions as a keyboard/sends key presses to the PC. Only works with Arduinos that support HID.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages