Removed reader class
All checks were successful
Generate Documentation / build (push) Successful in 15s

This commit is contained in:
2025-11-02 14:10:50 +01:00
parent 4a4a66f0d4
commit 02a9c782c2
3 changed files with 31 additions and 38 deletions

View File

@@ -1,31 +1,19 @@
#pragma once
class Reader
{
private:
unsigned long lastDebounceTime = 0;
bool lastButtonStateNO = LOW;
bool buttonStateNO = HIGH;
bool lastButtonStateNC = HIGH;
bool buttonStateNC = LOW;
int lastPin;
/**
* @brief Function used to read state of a normally open(LOW) button
*
* @param buttonPin The pin of the button
* @return true
* @return false
*/
bool debounceReadNO(int buttonPin);
public:
/**
* @brief Function used to read state of a normally open(LOW) button
*
* @param buttonPin The pin of the button
* @return true
* @return false
*/
bool debounceReadNO(int buttonPin);
/**
* @brief Function used to read state of a normally closed(HIGH) button
*
* @param buttonPin The pin of the button
* @return true
* @return false
*/
bool debounceReadNC(int buttonPin);
};
/**
* @brief Function used to read state of a normally closed(HIGH) button
*
* @param buttonPin The pin of the button
* @return true
* @return false
*/
bool debounceReadNC(int buttonPin);