From 7bb5dfab4ef22f3f68a9ba9ed946cf3180867f71 Mon Sep 17 00:00:00 2001 From: Lennart Hennigs Date: Thu, 3 Nov 2022 18:23:15 +0100 Subject: [PATCH] ready for 2.1.0 --- CHANGELOG.md | 6 ++++-- library.json | 2 +- library.properties | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9129036..bc0336c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,14 +2,16 @@ ## Unreleased +**Note:** Unreleased changes are checked in but not part of an official release (available through the Arduino IDE or PlatfomIO) yet. This allows you to test WiP features and give feedback to them. + +## [2.1.0] - 2022-11-03 + - Removed the capacitive touch functionality out of main library. (BREAKING CHANGE). The constructor and `begin()` lost a parameter. Instead I provide a custom handler example for cap. touch [ESP32CapacitiveTouch.ino](https://github.com/LennartHennigs/Button2/blob/master/examples/ESP32CapacitiveTouch/ESP32CapacitiveTouch.ino). For reasons, see [#45](https://github.com/LennartHennigs/Button2/issues/45). - Added an ESP32 timer interrupt example [ESP32TimerInterrupt.ino](https://github.com/LennartHennigs/Button2/blob/master/examples/ESP32TimerInterrupt/ESP32TimerInterrupt.ino) based on [#43](https://github.com/LennartHennigs/Button2/issues/43). - Added compiler switches in `Button.h` to remove click detection code, as mentioned in [#44](https://github.com/LennartHennigs/Button2/issues/44). - Clarified the difference between the `setLongClickHandler` and the `setLongClickDetectedHandler` in the README and the [MultiHandler](https://github.com/LennartHennigs/Button2/blob/master/examples/MultiHandler/MultiHandler.ino) example as mentioned in [#41](https://github.com/LennartHennigs/Button2/issues/41). (The handler set via `setLongClickHandler` waits until you release the button, the second one is called as soon as the defined long-click time has passed.) - Made `byte _getState()` into a `const` function. -**Note:** Unreleased changes are checked in but not part of an official release (available through the Arduino IDE or PlatfomIO) yet. This allows you to test WiP features and give feedback to them. - ## [2.0.3] - 2022-05-26 - Fixed bug with the button ID as pointed out by [Jon](https://github.com/mscreations) in [#39](https://github.com/LennartHennigs/Button2/pull/39). diff --git a/library.json b/library.json index ff53dc2..08c72de 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Button2", - "version": "2.0.3", + "version": "2.1.0", "keywords": "button", "description": "Arduino/ESP Library to simplify working with buttons. It allows you to use callback functions to track single, double, triple and long clicks. Alternatively, it provides function to use in your main loop(). The library also takes care of debouncing. Using this lib will reduce and simplify your source code significantly.", "homepage": "https://github.com/LennartHennigs/Button2", diff --git a/library.properties b/library.properties index 18d8db0..bc1a470 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Button2 -version=2.0.3 +version=2.1.0 author=Lennart Hennigs maintainer=Lennart Hennigs sentence=Arduino/ESP library to simplify working with buttons.