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:
@@ -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};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user