feat: Add restart button functionality and motion calibration

- Implemented a restart button with debounce handling and long-press detection in App.cpp.
- Added motion calibration settings to Settings.cpp and Settings.h, allowing for roll and pitch zero offsets.
- Enhanced WebUI to include motion calibration controls and a restart option.
- Updated FaceRenderer to adjust eye and mouth positions based on screen dimensions.
- Introduced deadzone handling for motion sensor readings to improve stability.
This commit is contained in:
Joshua King
2026-02-22 13:58:59 -05:00
parent a8e8268b65
commit df9bd461d1
10 changed files with 392 additions and 84 deletions

View File

@@ -3,6 +3,7 @@
#include "../settings/Settings.h"
#include "../net/WiFiManager.h"
#include "../sensors/MoistureSensor.h"
#include "../sensors/MotionSensor.h"
#include "../ui/FaceRenderer.h"
#include "../net/WebhookService.h"
@@ -11,6 +12,7 @@ public:
void begin(Settings& settings,
WiFiManager& wifi,
MoistureSensor& moisture,
MotionSensor& motion,
FaceRenderer& face,
WebhookService& webhook,
unsigned long bootMs);
@@ -20,4 +22,4 @@ public:
private:
WebServer _server{80};
};
};