feat: add factory reset on holding BOOT button

This commit is contained in:
2026-05-15 16:34:57 +02:00
parent 541d1be6ac
commit dd61c782cb
3 changed files with 58 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
menu "Sensor Configuration"
config SENSOR_RESET_GPIO
int "Factory reset button GPIO number"
default 0
help
GPIO connected to the factory reset button. The pin is configured
with the internal pull-up enabled; connect the button between this
pin and GND (active-low). GPIO 0 is the BOOT button on standard
ESP32 DevKit boards and requires no extra hardware.
config SENSOR_RESET_HOLD_MS
int "Factory reset hold duration (ms)"
default 5000
range 1000 30000
help
How long the factory reset button must be held continuously before
a factory reset is triggered. Shorter presses are ignored.
endmenu