- updated README.md
- added
const
to getter functions
- added getter/setter functions for debounce, longclick and doubleclick timeouts
- removed debounce timeout parameter from
contructor
andbegin()
- Fixed a bug in the
loop()
function
- Added default constructor and
begin()
function - Added pull request by skelstar to add the
setLongClickDetectedHandler()
function which is triggered as soon as the longclick timeout has passed
- Updated LongpressHandler example - changed variable name to from
buttonA
tobutton
- toggled
pressed
andreleased
(as suggesed by TommyC81 in #16) - added debug function
isPressedRaw()
(as suggesed by TommyC81 in #16) - fixed bug with
click_count
(as suggesed by TommyC81 in #16) - changed return types of
getNumberOfClicks()
andgetClickType()
tobyte
- Added capacitive touch sensor capabilties (for ESP32) (as suggested by qubolino in #11)
- Removed deprecated entry in the library.properties file (as suggested by SangLe) in #15
- Added
const
modifier to functions (as suggested by Anton-V-K in #13)
- Added possibility to define your own timeouts for clicks (as suggested by cmeldas in #10)
- Removed
yield()
in mainloop()
since it caused some problems - Created and added CHANGELOG.md
- Changed the private functions to protected (as suggested by Nagymadar in #9)
- Added support for active high buttons (as suggested by Nagymadar in #8)
- Added
reset()
function to unset all functions (as suggested by Nagymadar in #7) - Added a
yield()
command to the mainloop()
- Changed the times for double and triple click
- Fixed error in
SingleButton.ino
(as suggested by alexthe-red in #3) - Added the library to the Arduino IDE
- initial release
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.