From 5ff169d8c27534d3bf1b7f53feb3fa7e9e2f9589 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 24 Dec 2024 17:22:37 +0100 Subject: [PATCH] Add a PIN to the card --- esp32_device/README.md | 5 +++++ esp32_device/main/relays.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/esp32_device/README.md b/esp32_device/README.md index 65e460c..3607c0b 100755 --- a/esp32_device/README.md +++ b/esp32_device/README.md @@ -2,6 +2,11 @@ ESP32 client device, using `W32-ETH01` device +## Pins for relays +The pins are the following (in the order of definition): 4, 14, 15, 2 + +**WARNING!** The Pin 2 MUST be disconnect to reflash the card! + ## Some commands Create a new firmware build: diff --git a/esp32_device/main/relays.c b/esp32_device/main/relays.c index 52d8855..1cc93fb 100644 --- a/esp32_device/main/relays.c +++ b/esp32_device/main/relays.c @@ -9,7 +9,7 @@ static const char *TAG = "relays"; /** * Device relays GPIO ids */ -static int DEVICE_GPIO_IDS[3] = {4, 14, 15}; +static int DEVICE_GPIO_IDS[4] = {4, 14, 15, 2}; int relays_count() {