Made debounceRead function work
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
bool debounceRead(int buttonPin, int *lastButtonState, unsigned long *lastDebounceTime, int *buttonState);
|
||||
class Reader
|
||||
{
|
||||
private:
|
||||
unsigned long lastDebounceTime = 0;
|
||||
bool lastButtonState = LOW;
|
||||
bool buttonState = HIGH;
|
||||
int lastPin;
|
||||
|
||||
public:
|
||||
bool debounceRead(int buttonPin);
|
||||
};
|
||||
Reference in New Issue
Block a user