EasyButtonAtInt01

Small and easy to use Arduino library for using push buttons at INT0/pin2 and / or INT1/pin3 using interrupts.Functions for long and double press detection are included.Just connect buttons between ground and pin 2 or 3 of your Arduino - that's itNo call of begin() or polling function like update() required. No blocking debouncing delay.

Author
Armin Joachimsmeyer
Website
https://github.com/ArminJo/EasyButtonAtInt01
Category
Signal Input/Output
License
GPL 3.0
Library Type
Contributed
Architectures
avr

<br/>Define an EasyButtonIn in you main program and use <i>ButtonStateIsActive</i> or <i>ButtonToggleState</i> to determine your action.<br/>Or use a <b>callback function</b> which will be called once on every button press or release.<br/><br/>Usage:<pre>#define USE_BUTTON_0<br/>#include "EasyButtonAtInt01.cpp.h"<br/>EasyButton Button0AtPin2;<br/><br/>void setup() {}<br/>void loop() {<br/>...<br/> digitalWrite(LED_BUILTIN, Button0AtPin2.ButtonToggleState);<br/>...<br/>}</pre><br/><br/>New: 2 sets of constructors.<br/>

Downloads

Filename Release Date File Size
EasyButtonAtInt01-3.1.0.zip 2020-06-23 46.29 KiB
EasyButtonAtInt01-3.0.0.zip 2020-06-08 45.70 KiB
EasyButtonAtInt01-2.1.0.zip 2020-05-14 44.24 KiB
EasyButtonAtInt01-2.0.0.zip 2020-03-30 47.68 KiB
EasyButtonAtInt01-1.0.0.zip 2019-03-26 25.12 KiB