Changed documention on where to put defines
This commit is contained in:
@@ -185,7 +185,7 @@ By default, the Bounce library uses a stable interval to process the debouncing.
|
||||
|
||||
## 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
|
||||
@@ -195,7 +195,7 @@ By defining "#define BOUNCE_LOCK_OUT" in "Bounce.h" (or in your code before incl
|
||||
|
||||
## 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.
|
||||
By defining "#define BOUNCE_WITH_PROMPT_DETECTION" in "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.
|
||||
|
||||
@@ -209,11 +209,11 @@ $(function() {
|
||||
<p>By default, the <a class="el" href="class_bounce.html" title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.</p>
|
||||
<p><img src="https://raw.github.com/thomasfredericks/Bounce-Arduino-Wiring/master/extras/BouncySwitch_stable.png" alt="" class="inline"/></p>
|
||||
<h2>LOCK-OUT INTERVAL</h2>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
<div class="fragment"><div class="line">#define BOUNCE_LOCK_OUT</div>
|
||||
</div><!-- fragment --><p><img src="https://raw.github.com/thomasfredericks/Bounce-Arduino-Wiring/master/extras/BouncySwitch_lockout.png" alt="" class="inline"/></p>
|
||||
<h2>WITH PROMPT DETECTION</h2>
|
||||
<p>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.</p>
|
||||
<p>By defining "#define BOUNCE_WITH_PROMPT_DETECTION" in "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.</p>
|
||||
<ul>
|
||||
<li>Able to report acurate switch time normally with no delay.</li>
|
||||
<li>Use when accurate switch transition timing is important.</li>
|
||||
|
||||
Reference in New Issue
Block a user