Add a PIN to the card

This commit is contained in:
Pierre HUBERT 2024-12-24 17:22:37 +01:00
parent 315e11a2bb
commit 5ff169d8c2
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

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