Skip to content

markusianito/Beverly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beverly

Button Events for AVR Easily.

Beverly is a lightweight Arduino library for handling push buttons with debounce, long press detection and clean state transitions.

It is designed primarily for AVR microcontrollers, but works on any Arduino-compatible architecture that provides pinMode(), digitalRead() and millis().

Features

  • Software debounce
  • Press and release detection
  • Long press detection (BAction::Held)
  • Simple state-based API
  • Minimal memory footprint
  • Uses bitmask-based internal state (via Facebits)

Dependencies

Installation

Arduino IDE

  • Download the library as a ZIP
  • Open Arduino IDE
  • Sketch → Include Library → Add .ZIP Library

Arduino Library Manager

Search for Beverly and install it directly.

Basic Usage

See examples/button.ino

Notes

start() must be called in setup before using watch()

BAction::Held is reported continuously while the button remains pressed

Timing is handled using millis() with 16-bit overflow-safe logic

Licensed under MIT License.

About

Button Events for AVR Easily

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages