Arduino library to debounce button switches, detect presses, releases, and long presses
Incorporate PR #39: Change several member functions to const & add some initial values. This avoids some warnings generated by cppcheck.
Change architectures to "*" in library.properties.
Add JC_Button to keywords file so that syntax highlighting works on #include statement.
Fixes issue with UpDown.ino example.
Added ToggleButton as a derived class. Updated documentation. Added example sketch.
Bugfix: Fix constructor initializer list order.
This is a major release that is not backwards-compatible with previous releases. However, the incompatibilities are few and fairly straightforward:
begin()
function. Therefore begin()
needs to be called for each button object in setup()
or other initialization code.Changed the name of the library and repository from Button to JC_Button.