Smart Home Automation Forum

Full Version: KC868-A64 ESP32 I/O pin define
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
#define ANALOG_A1  GPIO39
#define ANALOG_A2  GPIO34
#define ANALOG_A3  GPIO36
#define ANALOG_A4  GPIO35

IIC Bus-1:A

SDA-A:GPIO5
SCL-A:GPIO16

PCF8575:U143 (relay1-16): 100 100 = 0x24
PCF8575:U145 (relay17-32): 100 101 = 0x25
PCF8575:U147 (relay33-48): 100 001 = 0x21
PCF8575:U149 (relay49-64): 100 010 = 0x22

IIC Bus-2:B
SDA-B:GPIO15
SCL-B:GPIO4

PCF8575:U14 (DI1-16): 100 100 = 0x24
PCF8575:U31 (DI17-32): 100 101 = 0x25
PCF8575:U56 (DI33-48): 100 001 = 0x21
PCF8575:U57 (DI49-64): 100 010 = 0x22


-----------------

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

--------------------

RS485:
RXD:GPIO13
TXD:GPIO14

Extend serial port (3.3v TTL level):
RXD:GPIO32
TXD:GPIO33