diff --git a/Bounce/Bounce.cpp b/Bounce/Bounce.cpp index 2d86647..d5b21dc 100644 --- a/Bounce/Bounce.cpp +++ b/Bounce/Bounce.cpp @@ -18,7 +18,7 @@ Bounce::Bounce() { void Bounce::attach(int pin) { this->pin = pin; debouncedState = unstableState = digitalRead(pin); - #ifdef BOUNCE_RAPID_FIRE + #ifdef BOUNCE_LOCK-OUT previous_millis = 0; #else previous_millis = millis(); @@ -37,7 +37,7 @@ void Bounce::interval(unsigned long interval_millis) bool Bounce::update() { -#ifdef BOUNCE_RAPID_FIRE +#ifdef BOUNCE_LOCK-OUT // Ignore everything if we are locked out if (millis() - previous_millis >= interval_millis) { diff --git a/Bounce/Bounce.h b/Bounce/Bounce.h index b53c8da..5052fdb 100644 --- a/Bounce/Bounce.h +++ b/Bounce/Bounce.h @@ -24,7 +24,7 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // Uncomment the following line for "rapid fire" mode -//#define BOUNCE_RAPID_FIRE +//#define BOUNCE_LOCK-OUT #ifndef Bounce_h diff --git a/BouncySwitch_lockout.png b/BouncySwitch_lockout.png new file mode 100644 index 0000000..3dfca0e Binary files /dev/null and b/BouncySwitch_lockout.png differ diff --git a/BouncySwitch_stable.png b/BouncySwitch_stable.png new file mode 100644 index 0000000..e35f8e9 Binary files /dev/null and b/BouncySwitch_stable.png differ