Releases: LennartHennigs/Button2
Releases · LennartHennigs/Button2
2.3.3
2.3.2
- expanded conditions to check for API version 2.0 (for UNO R4, RP2040, ...) in
Hardware.h
2.3.1
2.3.0
- renamed Button2 constants, they now start with
BTN_
(BREAKING CHANGE) - added
Hardware.h
– it implements hardware pin abstraction. Needed for unit testing - added Unit Tests
- added
resetPressedState()
function - added
ESP32S2S3CapacitiveTouch.ino
suggested by ryancasler in PR #57
2.2.4
getNumberOfClicks()
now works inside a callback and after thewait()
statement(s).- Refactored code in
Button2.cpp
2.2.3
2.2.2
2.2.1
2.2.0
- Refactored the main
loop()
- Rewrote click detection
- Cleaned up the long press handling
- Removed compiler switches – they made the code unreadable and they only saved a few bytes
- Added
byte getLongClickCount()
function - Updated the LongpressHandler example
- Defaults (x>3)-clicks to triple
- Fixed bug with button ID
To see the latest changes to the library please take a look at the Changelog.
2.1.0
- Removed the capacitive touch functionality out of main library. (BREAKING CHANGE).
- Added an ESP32 timer interrupt example.
- Added compiler switches in
Button.h
to remove click detection code, as mentioned in [#44] - Clarified the difference between the
setLongClickHandler
and thesetLongClickDetectedHandler
as mentioned in [#41] - Made
byte _getState()
into aconst
function.