PinButtonEvents - Library for handling button events with various conditions and debouncing support

This library provides a versatile class for handling button events, including press, release, hold, and repeated presses, with support for debouncing and a vast number of combinations. It allows you to define multiple callbacks for different button states, hold durations, and repeated press counts, enabling the implementation of complex button-driven functionality with ease.

you should not rely on the constructor to set the pin mode. When you define a global variable, the constructor is called before main() is called and main() could reset the pin status to something else (for example it would fail on Nano ESP32 - the oneButton library has the same issue)

ideally you would add a begin() method to call from the setup() and that's where the pinMode would actually be set

1 Like

Good point, thanks I’ll make it work that way

1 Like

Added sequences in version 1.0.2, now, you can use something like Morse Code to trigger events. We can create a password mechanism with just one button!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.