2018-07-18 12:09:10 -04:00
2018-07-16 18:25:04 -04:00
2018-07-18 12:09:10 -04:00
2018-07-16 19:08:38 -04:00
2018-07-18 12:09:10 -04:00
2018-05-22 10:34:19 -04:00
2013-12-21 10:23:22 -08:00
2018-07-18 12:24:20 -04:00

BOUNCE 2

Debouncing library for Arduino and Wiring by Thomas Ouellet Fredericks with contributions from: Eric Lowry, Jim Schimpf, Tom Harkaway, Joachim Krüger and MrGradgrind.

More about debouncing: http://en.wikipedia.org/wiki/Debounce#Contact_bounce

GITHUB PAGE

https://github.com/thomasfredericks/Bounce2

DOCUMENTATION

The complete class documentation can be found in the "docs" folder or online here.

HAVE A QUESTION?

Please post your questions here.

INSTALLATION & DOWNLOAD

Install through your software's Library Manager or download the latest version here and put the "Bounce2" folder in your "libraries" folder.

The original version of Bounce (Bounce 1) is included in the download but not supported anymore.

DEBOUNCE ALGORITHMS

STABLE INTERVAL

By default, the Bounce library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.

LOCK-OUT INTERVAL

By defining "#define BOUNCE_LOCK_OUT" in "Bounce.h" (or in your code before including "Bounce.h") you can activate an alternative debouncing method. This method is a lot more responsive, but does not cancel noise.

#define BOUNCE_LOCK_OUT

WITH PROMPT DETECTION

By defining "#define BOUNCE_WITH_PROMPT_DETECTION" in "Bounce.h" (or in your code before including "Bounce.h") you can activate an alternative debouncing method. Button state changes are available immediately so long as the previous state has been stable for the timeout period. Otherwise the state will be updated as soon as the timeout period allows.

  • Able to report acurate switch time normally with no delay.
  • Use when accurate switch transition timing is important.
#define BOUNCE_WITH_PROMPT_DETECTION
S
Description
Debouncing library for Arduino and Wiring
Readme MIT
2.7 MiB
Bounce V2.71
Latest
2022-03-21 17:04:38 +03:00
Languages
C++ 100%