KC868-A128 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-A128 (https://www.kincony.com/forum/forumdisplay.php?fid=34) +--- Thread: KC868-A128 ESP32 I/O pin define (/showthread.php?tid=2113) |
KC868-A128 ESP32 I/O pin define - admin - 08-04-2022 #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:U144 (relay1-16): 100 100 = 0x24 PCF8575:U146 (relay17-32): 100 101 = 0x25 PCF8575:U148 (relay33-48): 100 001 = 0x21 PCF8575:U150 (relay49-64): 100 010 = 0x22 PCF8575:U280 (relay65-80): 100 110 = 0x26 PCF8575:U282 (relay81-96): 100 111 = 0x27 PCF8575:U284 (relay97-112): 100 000 = 0x20 PCF8575:U286 (relay113-128): 100 011 = 0x23 IIC Bus-2:B SDA-B:GPIO15 SCL-B:GPIO4 PCF8575:U143 (DI1-16): 100 100 = 0x24 PCF8575:U145 (DI17-32): 100 101 = 0x25 PCF8575:U147 (DI33-48): 100 001 = 0x21 PCF8575:U149 (DI49-64): 100 010 = 0x22 PCF8575:U279 (DI65-80): 100 110 = 0x26 PCF8575:U281 (DI81-96): 100 111 = 0x27 PCF8575:U283 (DI97-112): 100 000 = 0x20 PCF8575:U285 (DI113-128): 100 011 = 0x23 ----------------- 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 |