diff --git a/docs/files/_bounce2_8h_source.html b/docs/files/_bounce2_8h_source.html index b897765..c1decaf 100644 --- a/docs/files/_bounce2_8h_source.html +++ b/docs/files/_bounce2_8h_source.html @@ -119,148 +119,156 @@ $(function() {
- - - + + +| ▼NBounce2 | The Debouncer:Bounce:Button class. The Button class matches an electrical state to a physical action |
| CButton | |
| CBounce | The Debouncer:Bounce class. Links the Deboucing class to a hardware pin |
| CBounce | The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code |
| CDebouncer | The Debouce class. Just the deboucing code separated from all harware |
Basic example of the Bounce class.
+Basic example of the Bounce class.
The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. +
The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code. More...
#include <Bounce2.h>
Public Member Functions inherited from DebouncerProtected Member Functions | begin () | ||
| uint8_t | pin | ||
| Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce version 1. | |||
| Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce version 1. | |||
Protected Attributes inherited from Debouncer | |||
| @@ -175,7 +178,7 @@ unsigned long | durationOfPr
| | | |
The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.
+The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code.
+
|
+ +inline | +
Return pin that this Bounce is attached to.
+
Public Member Functions inherited from Bounce
Public Member Functions inherited from DebouncerProtected Attributes | stateForPressed = | |||||
Protected Attributes inherited from Bounce | ||||||
| uint8_t | pin | |||||
| Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce version 1. | ||||||
| Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce version 1. | ||||||
Protected Attributes inherited from Debouncer | ||||||
| @@ -271,7 +274,7 @@ void | begin () | |||||
| begin() (defined in Debouncer) | Debouncer | protected |
| changed() | Debouncer | inline |
| Debouncer() | Debouncer | |
| duration() | Debouncer | |
| changed() const | Debouncer | inline |
| currentDuration() const | Debouncer | |
| Debouncer() | Debouncer | |
| durationOfPreviousState (defined in Debouncer) | Debouncer | protected |
| fell() | Debouncer | |
| fell() const | Debouncer | |
| interval(uint16_t interval_millis) | Debouncer | |
| interval_millis (defined in Debouncer) | Debouncer | protected |
| previous_millis (defined in Debouncer) | Debouncer | protected |
| previousDuration() | Debouncer | |
| read() | Debouncer | |
| previousDuration() const | Debouncer | |
| read() const | Debouncer | |
| readCurrentState()=0 (defined in Debouncer) | Debouncer | protectedpure virtual |
| rose() | Debouncer | |
| rose() const | Debouncer | |
| state (defined in Debouncer) | Debouncer | protected |
| stateChangeLastTime (defined in Debouncer) | Debouncer | protected |
| update() | Debouncer | |
| bool | update () | |
| Updates the pin's state. More... | ||
| bool | read () | |
| Returns the pin's state (HIGH or LOW). More... | ||
| -bool | fell () | |
| Returns true if pin signal transitions from high to low. | ||
| -bool | rose () | |
| Returns true if pin signal transitions from low to high. | ||
| bool | changed () | |
| Returns true if the state changed on last update. More... | ||
| unsigned long | duration () | |
| Returns the duration in milliseconds of the current state. More... | ||
| unsigned long | previousDuration () | |
| Returns the duration in milliseconds of the previous state. More... | ||
| bool | read () const | |
| Returns the pin's state (HIGH or LOW). More... | ||
| +bool | fell () const | |
| Returns true if pin signal transitions from high to low. | ||
| +bool | rose () const | |
| Returns true if pin signal transitions from low to high. | ||
| bool | changed () const | |
| Returns true if the state changed on last update. More... | ||
| unsigned long | currentDuration () const | |
| Returns the duration in milliseconds of the current state. More... | ||
| unsigned long | previousDuration () const | |
| Returns the duration in milliseconds of the previous state. More... | ||
Protected Member Functions | durationOfPr
Member Function Documentation- -◆ changed()+ +◆ changed()
@@ -181,7 +181,7 @@ unsigned long | durationOfPr | bool Debouncer::changed | ( | ) | -+ | const |
| unsigned long Debouncer::duration | +unsigned long Debouncer::currentDuration | ( | ) | -+ | const |
Returns the duration in milliseconds of the previous state.
-Takes the values of duration() once the pin changes state.
+Takes the values of duration() once the pin changes state.
Updates the pin's state.
-Because Bounce does not use interrupts, you have to "update" the object before reading its value and it has to be done as often as possible (that means to include it in your loop()). Only call update() once per loop().
+Because Bounce does not use interrupts, you have to "update" the object before reading its value and it has to be done as often as possible (that means to include it in your loop()). Only call update() once per loop().
| ▼ src | |
| Bounce2.h | |
| Bounce2NameSpace.h |
| ▼CDebouncer | The Debouce class. Just the deboucing code separated from all harware |
| ▼CBounce | The Debouncer:Bounce class. Links the Deboucing class to a hardware pin |
| ▼CBounce | The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code |
| CBounce2::Button |
See the bottom of this page for a basic usage example and the "examples" folder for more.
The library is composed of three classes:
Install through your software's Library Manager or download the latest version here and put the "Bounce2" folder in your "libraries" folder.
-Please note that the original version of this library (Bounce 1) is included in the "extras" folder of the download but not supported anymore.
+Please note that the original version of this library (Bounce 1) is included in the "extras" folder of the download but not supported anymore.
Please post your questions here.
By default, the Bounce library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.
+By default, the Bounce library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.

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.
@@ -221,16 +221,16 @@ $(function() {