clickButton (community library)


Name Value
Name clickButton
Version 1.0.9
Installs 82769
License GNU General Public License v3+
Author Paul Kourany/raron,
Download .tar.gz
All Versions 1.0.9, 1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4

clickButton Library

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.


  • 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

Browse Library Files