KC868-A32 ESP32 I/O pin define - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A32/A32 Pro (https://www.kincony.com/forum/forumdisplay.php?fid=27) +--- Thread: KC868-A32 ESP32 I/O pin define (/showthread.php?tid=1771) |
KC868-A32 ESP32 I/O pin define - admin - 03-23-2022 #define ANALOG_A1 GPIO39 #define ANALOG_A2 GPIO34 #define ANALOG_A3 GPIO36 #define ANALOG_A4 GPIO35 IIC Bus:A SDA-A:GPIO15 SCL-A:GPIO13 PCF8574:U16 (relay1-8): 100 100 = 0x24 PCF8574:U32 (relay9-16): 100 101 = 0x25 PCF8574:U58 (relay17-24): 100 001 = 0x21 PCF8574:U59 (relay25-32): 100 010 = 0x22 IIC Bus:B SDA-B:GPIO4 SCL-B:GPIO5 PCF8574:U14 (DI1-8): 100 100 = 0x24 PCF8574:U31 (DI9-16): 100 101 = 0x25 PCF8574:U56 (DI17-24): 100 001 = 0x21 PCF8574:U57 (DI25-32): 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:GPIO16 TXD:GPIO14 Extend serial port (3.3v TTL level): RXD:GPIO33 TXD:GPIO32 |