Skip to content

Releases: ShaggyDog18/OneButton

Optimized library with more aggressive timing

29 Sep 13:15
Compare
Choose a tag to compare

More aggressive timing for de-bounce (20mSec vs 50mSec), click tick (200mSec vs 400mSec) and press tick (400mSec vs 800mSec).
No other changes.

Optimized library with extended functionality

22 Jan 15:03
Compare
Choose a tag to compare

Optimized the library, synced it up with the original library, release v1.5, by adding attachPressStart() function.
Major addition: multiple, more than 2 clicks detection (see new functions below).
Extended SimpleOneButton example that uses and demonstrates all library methods including new functions.
Added new functions:

  • tripleClickFunc() for multiple 3+ clicks (for 3 clicks and more)
  • getNumberClicks() to return number of multiple clicks;
  • attachPressStart() to maintain compatibility with the new release v1.5 of the parent library: fires immediately as the button is pressed down.

Enjoy!