EasyButtonAtInt01

Small and easy to use Arduino library for using push buttons at INT0/pin2 and / or any PinChangeInterrupt pin.Functions for long and double press detection are included.Just connect buttons between ground and any pin 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.hpp"<br/>EasyButton Button0AtPin2;<br/><br/>void setup() {}<br/>void loop() {<br/>...<br/> digitalWrite(LED_BUILTIN, Button0AtPin2.ButtonToggleState);<br/>...<br/>}</pre><br/><br/><b>New: </b>Avoid mistakenly double press detection after boot.</b><br/>

Downloads

Filename Release Date File Size
EasyButtonAtInt01-3.3.1.zip 2022-02-18 51.23 KiB
EasyButtonAtInt01-3.3.0.zip 2021-09-15 49.57 KiB
EasyButtonAtInt01-3.2.0.zip 2021-01-04 47.31 KiB
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