commit 262a0783a7a0c4c32bdee96ad93040b3853c2ad0
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-10-13T10:03:20Z |
| subject | default presence to GPIO1 instead |
commit 262a0783a7a0c4c32bdee96ad93040b3853c2ad0
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-10-13T10:03:20Z
default presence to GPIO1 instead
---
README.md | 4 ++--
esp32/main/Kconfig.projbuild | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index a145861..08ad9e2 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ RF off + PowerDown -> stop BLE -> ESP32-C3 deep sleep until OT2 HIGH.
| --- | --- |
| LD2410S 3V3 | Always-on regulated 3.3 V |
| LD2410S GND | Common GND |
-| LD2410S OT2 | **GPIO5** (HIGH = present) |
+| LD2410S OT2 | **GPIO1** (HIGH = present) |
| LD2410S OT1/TX and RX | Disconnected in relay firmware |
| PN532 RX | **GPIO3** |
| PN532 TX | **GPIO4** |
@@ -48,7 +48,7 @@ wakes. Never connect battery voltage directly to 3.3 V power or GPIO pins.
- Presence sleep is enabled by default on ESP32-C3. Disable it for bench
operation without LD2410S; otherwise an unconnected input reads absent.
-- OT2 defaults to GPIO5. Only GPIO0-5 support this C3 deep-sleep wake path;
+- OT2 defaults to GPIO1. Only GPIO0-5 support this C3 deep-sleep wake path;
GPIO3/4 conflict with PN532 and are rejected at compile time. Avoid GPIO2
because it is a boot strapping pin.
- Default additional absence confirmation: **1 second** after observing LOW.
diff --git a/esp32/main/Kconfig.projbuild b/esp32/main/Kconfig.projbuild
index e9465be..20d9b72 100644
--- a/esp32/main/Kconfig.projbuild
+++ b/esp32/main/Kconfig.projbuild
@@ -12,7 +12,7 @@ menu "Home Key presence / sleep"
int "LD2410S OT2 GPIO"
depends on HOMEKEY_PRESENCE_ENABLED
range 0 5
- default 5
+ default 1
help
C3 deep-sleep wake requires GPIO0-5. GPIO3/4 are reserved for
PN532 UART and rejected at compile time. Avoid strapping GPIO2.