JC_Button Library 2.0.0
Overview
This is a major release that is not backwards-compatible with previous releases. However, the incompatibilities are few and fairly straightforward:
- The order of the parameters for the constructor has changed. Default values are now supplied for three of the four parameters. This simplifies coding for the most common use case, i.e. a button wired from a GPIO pin to ground and the internal AVR pullup resistor enabled. For this case, only the pin number needs to be passed to the constructor.
- Hardware initialization (i.e. pin configuration) was moved from the constructor to a new
begin()
function. Thereforebegin()
needs to be called for each button object insetup()
or other initialization code.
Other changes in this release
- Library code and example sketches were updated for clarity, coding style and documentation.
- Changed license to GNU GPL 3.0.