docs: HS-S43A actief LOW, !t1Active logica gedocumenteerd
All checks were successful
CI / build (push) Successful in 1m15s

This commit is contained in:
eddy 2026-08-04 01:21:36 +02:00
commit 18469538ae

View file

@ -6,7 +6,7 @@ M5Stack Atom S3 Lite (ESP32-S3), 2 relais, 2 touch sensors (HS-S43A), BLE, Andro
- **Board:** M5Stack Atom S3 Lite (ESP32-S3)
- **Pinnen:** G1=RELAY1, G2=RELAY2, G8=TOUCH1, G6=TOUCH2, G41=BUTTON (active low), G46=LED
- **Touch:** HS-S43A Digital Capacitive Switch Module (openelab.io), actief HIGH. Pin mode: `INPUT_PULLUP` (pullup voor veiligheid zonder sensor; sensor overrulet de pullup bij aanraking).
- **Touch:** HS-S43A Digital Capacitive Switch Module (openelab.io). **Actief LOW** — pin GND bij aanraking, HIGH bij geen aanraking. Pin mode: `INPUT_PULLUP` (zonder sensor: pin HIGH → `t1Active=true` → `!t1Active=false` → relais UIT). Logica: `relayState = !tActive || btnActive`. **NOOIT de `!` weghalen.**
- **BLE:** "SylDa_Server", service `4fafc201-1fb5-459e-8fcc-c5c9c331914b`
- **BLE cmds:** 0x00=relay1 OFF, 0x01=ON, 0x02=relay2 ON, 0x03=OFF, HMAC_PKT_SIZE=37 (1 cmd + 4 seq + 32 hmac)
- **NVS:** namespace `hmac`, key `key` — HMAC key 32 bytes, NVS op 0x9000-0xDFFF (partitie tabel)