From 071fbc780c4febda8e13cf2a780c6d8457758b7e Mon Sep 17 00:00:00 2001 From: David Forrest Date: Mon, 28 Mar 2022 17:14:24 -0400 Subject: [PATCH] Edit #define BOUNCE_LOCK_OUT advice in index.html Remove "(or in your code before including "Bounce.h") " per https://github.com/thomasfredericks/Bounce2/issues/85#issuecomment-1081131688 -- it only seems to work if defined in the Bounce2.h file. Perhaps it is related to https://forum.arduino.cc/t/order-of-include-files/36881/4 and https://arduino.github.io/arduino-cli/dev/sketch-build-process/ I would suppose that the "#define BOUNCE_WITH_PROMPT_DETECTION" would also only work in the .h file. --- docs/files/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/files/index.html b/docs/files/index.html index be50e7a..bddab88 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -209,7 +209,7 @@ $(function() {

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.

+

By defining "#define BOUNCE_LOCK_OUT" in "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

-- 2.54.0