sanity check for connected peripherals
Posted: Fri Feb 08, 2019 6:41 pm
This is a code excerpt from my Arduino based project for an ESP32-WROOM-32U. I think I have address all my GPIO issues on the current revision of my board, and would like someone to verify my pinout is ok before I order new boards.
does anyone see any issues or have any questions?
Code: Untitled.cpp Select all
//pinout
#define USB_TX 1 //Programming Port Connected to FT231XS
#define USB_RX 3 //Programming Port Connected to FT231XS
#define TEMPA_BUS 4 //DS18B20 Bus
#define TEMPC_BUS 12 //DS18B20 Bus
#define ELEMENT2_SSR_RELAY 13 //Connected by wire to a 40A SSR
#define ELEMENT1_SSR_RELAY 14 //Connected by wire to a 40A SSR
#define PUMP1_RELAY 15 //Songle 5v Relay
#define DEBUG_TX 16 //Pin for connecting a USB/Serial Device for debugging
#define DEBUG_RX 17 //not really used...
#define ELEMENT1_CONTACTOR_RELAY 18 //Songle 5v Relay
#define ERROR_RELAY 19 //Songle 5v Relay
#define SDA 21 //I2C Bus
#define SCL 22 //I2C Bus
//On I2C bus, there are 2 ADS1015 ADCs and 1 BME280 with 3.3k pullup resistors in place.
#define TEMPB_BUS 23 //DS18B20 Bus
#define ELEMENT2_CONTACTOR_RELAY 25 //Songle 5v Relay
#define DISPLAY_TX 26 //Connected to Nextion Display
#define DISPLAY_RX 27 //Connected to Nextion Display
#define PUMP2_RELAY 33 //Songle 5v Relay