touch: INPUT_PULLUP, !t1Active logica (sensor actief LOW)
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
This commit is contained in:
parent
3c87990a9c
commit
3b17f1fe50
3 changed files with 8 additions and 8 deletions
12
src/main.cpp
12
src/main.cpp
|
|
@ -489,8 +489,8 @@ void setup() {
|
|||
memset(clients[i].aesKey, 0, AES_KEY_LEN);
|
||||
}
|
||||
|
||||
pinMode(TOUCH1_PIN, INPUT);
|
||||
pinMode(TOUCH2_PIN, INPUT);
|
||||
pinMode(TOUCH1_PIN, INPUT_PULLUP);
|
||||
pinMode(TOUCH2_PIN, INPUT_PULLUP);
|
||||
pinMode(BUTTON_PIN, INPUT);
|
||||
pinMode(RELAY1_PIN, OUTPUT);
|
||||
pinMode(RELAY2_PIN, OUTPUT);
|
||||
|
|
@ -753,8 +753,8 @@ void loop() {
|
|||
ESP_LOGI(TAG, "Relays: R1=%s R2=%s (t1=%s t2=%s btn=%s ble1=%s ble2=%s)",
|
||||
relay1State ? "ON" : "OFF",
|
||||
relay2State ? "ON" : "OFF",
|
||||
t1Active ? "YES" : "no",
|
||||
t2Active ? "YES" : "no",
|
||||
!t1Active ? "YES" : "no",
|
||||
!t2Active ? "YES" : "no",
|
||||
btnActive ? "YES" : "no",
|
||||
anyBle1 ? "ON" : "OFF",
|
||||
anyBle2 ? "ON" : "OFF");
|
||||
|
|
@ -769,8 +769,8 @@ void loop() {
|
|||
ESP_LOGD(TAG, "[heartbeat] R1=%s R2=%s t1=%s t2=%s btn=%s ble1=%s ble2=%s clients=%d",
|
||||
relay1State ? "ON" : "OFF",
|
||||
relay2State ? "ON" : "OFF",
|
||||
t1Active ? "YES" : "no",
|
||||
t2Active ? "YES" : "no",
|
||||
!t1Active ? "YES" : "no",
|
||||
!t2Active ? "YES" : "no",
|
||||
btnActive ? "YES" : "no",
|
||||
anyBle1 ? "ON" : "OFF",
|
||||
anyBle2 ? "ON" : "OFF",
|
||||
|
|
|
|||
Loading…
Reference in a new issue