Skip to content
A button library that handles multi-clicks, long clicks and click-and-hold
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


  • Jan 2016, update to Libraries 2.0

A library that decodes multiple clicks on one button. Also copes with long clicks and click-and-hold.


ClickButton buttonObject(pin [LOW/HIGH, [CLICKBTN_PULLUP]]);

where LOW/HIGH denotes active LOW or HIGH button (default is LOW) CLICKBTN_PULLUP is only possible with active low buttons.

Returned click counts:

A positive number denotes the number of (short) clicks after a released button A negative number denotes the number of "long" clicks

You can’t perform that action at this time.