Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.95 KB

File metadata and controls

46 lines (36 loc) · 1.95 KB

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