first commit

This commit is contained in:
lumijiez
2025-04-28 18:30:29 +03:00
commit a4b88564a4
45 changed files with 2188 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#ifndef BUTTON_CONTROLLER_H
#define BUTTON_CONTROLLER_H
#include <Arduino.h>
class ButtonController {
private:
const int _buttonPin;
unsigned long _lastDebounceTime;
unsigned long _debounceDelay;
bool _lastButtonState;
bool _buttonState;
public:
ButtonController(int buttonPin, unsigned long debounceDelay = 50);
bool wasOn();
void tick();
bool getState() const;
};
#endif