WREN ESP12S SDK – GPIO Matrix
The WREN SDK uses both ESP-12S GPIO and I2C GPIO Expander (MCP23017). to control and monitor the board functionality.
For this reason, it is important to ensure your development supports the I2C Expander MCP23017. An example from Tasmota is MCP23017 GPIO Expander
I/O | Function | ESP12S GPIO | MCP I/O 0x20 | Description |
---|---|---|---|---|
Analogue Input | ADC | A0 | DC Voltage Monitor (12-40V) | |
I2C | SCL | GPIO5 | ||
I2C | SDA | GPIO4 | ||
Input | GPIOB5 | GPB5/D13 | User Configuration Link (Enable PU) | |
Input | IN_1A | GPB0/D8 | Detect Isolated Input | |
Input | IN_1B | GPB1/D9 | Detect Isolated Input | |
Input | IN_2A | GPB2/D10 | Detect Isolated Input | |
Input | IN_2B | GPB3/D11 | Detect Isolated Input | |
Input | SFLAG | GPIO16 | Safety Flag Logic (Ideally Interrupt) | |
Input | TALM | GPB4/D12 | Temperature Alarm (Active Low) | |
Output | EN_1 | GPA0/D0 | Motor Driver 1 Enable | |
Output | EN_2 | GPA3/D3 | Motor Driver 2 Enable | |
Output | LED Blue | GPIO2 | RGB LED (Active Low) | |
Output | LED Green | GPA6/D6 | RGB LED (Active Low) | |
Output | LED Red | GPA7/D7 | RGB LED (Active Low) | |
Output | OUT_1A | GPA1/D1 | Enable Isolated Output | |
Output | OUT_1B | GPA2/D2 | Enable Isolated Output | |
Output | OUT_2A | GPA4/D4 | Enable Isolated Output | |
Output | OUT_2B | GPA5/D5 | Enable Isolated Output | |
SPI | MISO | GPIO12 | ||
SPI | MOSI | GPIO13 | ||
SPI | SCK | GPIO14 | ||
SPI | SS | GPIO15 |