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() {