Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@JMax45 JMax45 released this 15 Oct 10:03
· 2 commits to main since this release

ArduinoButton v1.0.0

What's New in v1.0.0

1. Event Handling

The library supports three essential button events:

  • onKeyUp: Triggered when the button is released.
  • onKeyDown: Triggered when the button is pressed.
  • onDoubleClick: Triggered when the button is double-clicked. Custom delay between clicks is supported.

2. Active-Low and Active-High Support

Different projects may require different button configurations. This release adds support for both active-low and active-high buttons. You can now choose the button configuration that best suits your project's needs.

  • Active-Low: The button is considered "pressed" when its input is pulled low, typically to ground (GND). This is the default configuration.
  • Active-High: The button is considered "pressed" when its input is connected to the power supply voltage (VCC).

3. Debouncing

Debouncing is an essential feature to prevent button signal noise and ensure accurate button press detection. The library includes built-in debouncing, making your button interactions more reliable and stable. Custom debouncing delay is supported via ArduinoButton.setDebounceDelay(int delay).

Installing

To start using ArduinoButton v1.0.0, download the zip file and install it via Sketch -> #include -> Add library from .ZIP file.

For an interactive experience and to see the library in action, you can try out our Tinkercad simulation here.

For more detailed information on how to use the library and examples of its capabilities, check out the updated README in the repository.