Skip to content

An Arduino library for easy use of buttons with multiple functions (click, longclick, double click, multi click)

License

Notifications You must be signed in to change notification settings

docwilco/MFIButton

Repository files navigation

MFIButton

A MultiFunction Interrupt Button library

An Arduino library for easy multifunctional use of buttons, purely using interrupts.

This library has come into existence because I cannot find any that combine the following two features:

  • No function calls from loop(). Even libraries that support interrupts still need some sort of button.tick() or button.update() in loop() for full functionality. This does not play well with delay() calls or light sleeps.
  • Ability to register multiple event handlers on a single button, and having only one fire. Some libraries will happily fire both double click (twice) and triple click for a single triple click.

Of course, debouncing is a must for any button library.

About

An Arduino library for easy use of buttons with multiple functions (click, longclick, double click, multi click)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages