Skip to content

JC_Button Library 2.0.0

Compare
Choose a tag to compare
@JChristensen JChristensen released this 11 May 16:49
· 8 commits to master since this release

Overview

This is a major release that is not backwards-compatible with previous releases. However, the incompatibilities are few and fairly straightforward:

  1. 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.
  2. Hardware initialization (i.e. pin configuration) was moved from the constructor to a new begin() function. Therefore begin() needs to be called for each button object in setup() or other initialization code.

Other changes in this release

  1. Library code and example sketches were updated for clarity, coding style and documentation.
  2. Changed license to GNU GPL 3.0.