Moved literals to header as suggested by MartinNel
This commit is contained in:
+1
-3
@@ -3,9 +3,7 @@
|
||||
|
||||
#include "Bounce2.h"
|
||||
|
||||
static const uint8_t DEBOUNCED_STATE = 0b00000001;
|
||||
static const uint8_t UNSTABLE_STATE = 0b00000010;
|
||||
static const uint8_t CHANGED_STATE = 0b00000100;
|
||||
|
||||
|
||||
|
||||
Bounce::Bounce()
|
||||
|
||||
@@ -69,6 +69,10 @@
|
||||
Example of two instances of the Bounce class that switches the debug LED when either one of the two buttons is pressed.
|
||||
*/
|
||||
|
||||
static const uint8_t DEBOUNCED_STATE = 0b00000001;
|
||||
static const uint8_t UNSTABLE_STATE = 0b00000010;
|
||||
static const uint8_t CHANGED_STATE = 0b00000100;
|
||||
|
||||
/**
|
||||
The Bounce class.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user