Skip to content

Releases: LennartHennigs/Button2

2.3.3

30 May 12:37
Compare
Choose a tag to compare
  • fixed bug that first long press was not properly detected; see issue #72
  • added byte resetClickCount() function
  • click count is no longer resetted in resetPressedState()
  • updated examples

2.3.2

19 Feb 07:45
Compare
Choose a tag to compare
  • expanded conditions to check for API version 2.0 (for UNO R4, RP2040, ...) in Hardware.h

2.3.1

02 Jan 20:43
Compare
Choose a tag to compare
  • bugfix for RP2040, as pointed out by kilrah in issue #60

2.3.0

02 Jan 16:07
Compare
Choose a tag to compare
  • 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

21 Jun 22:08
Compare
Choose a tag to compare
  • getNumberOfClicks() now works inside a callback and after the wait()statement(s).
  • Refactored code in Button2.cpp

2.2.3

21 Jun 18:54
Compare
Choose a tag to compare
  • Included PR for issue #54

2.2.2

16 Dec 22:55
Compare
Choose a tag to compare
  • another attempt top fix bug #46

2.2.1

16 Dec 07:31
Compare
Choose a tag to compare
  • Fixed bug #46 that in some instances long clicks are wrongly triggered

2.2.0

13 Dec 19:37
Compare
Choose a tag to compare
  • 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

03 Nov 17:25
Compare
Choose a tag to compare
  • 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 the setLongClickDetectedHandler as mentioned in [#41]
  • Made byte _getState() into a const function.