Skip to content

Arduino library for debouncing input tactile switch.

License

Notifications You must be signed in to change notification settings

murige34/ButtonLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ButtonLite Library for Arduino

Simple Arduino library for push buttons, tactile switches and other mechanical contacts that need debouncing for stable readings. It is simple to use and uses less RAM than other similar libraries.

ButtonLite stands for low RAM consumption


  • 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 timing of press (to detect long presses)
  • Easy to use with multiple buttons
  • All functions are non-blocking

Available Examples

  • 01.SingleButtonState
  • 02.SingleButtonEvents
  • 03.SingleButtonCounter
  • 04.SingleButtonAll
  • 05.SingleButtonCounterAdvanced
  • 06.MultipleButtons

Available Functions

  • begin()
  • setDebounceTime()
  • getState()
  • isPressed()
  • isReleased()
  • timePressed()
  • loop()

Wiring diagram

Arduino UNO Wiring for single button

Releases

No releases published

Packages

No packages published

Languages