![]() |
Lesson20- how to use PCF8574 IIC extend GPIO for ESP32 input ports - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6) +--- Thread: Lesson20- how to use PCF8574 IIC extend GPIO for ESP32 input ports (/showthread.php?tid=838) |
Lesson20- how to use PCF8574 IIC extend GPIO for ESP32 input ports - admin - 10-10-2021 Arduino IDE source code: ![]() RE: Lesson20- how to use PCF8574 IIC extend GPIO for ESP32 input ports - lonejan - 08-16-2024 Dear admin, how did u set 26 and 29 as i2c pins? I'm stuck on settings these pins as SDA & SCL((( I found in soc_caps.h this code: // 0~39 valid except 24, 28~31 #define SOC_GPIO_VALID_GPIO_MASK (0xFFFFFFFFFFULL & ~(0ULL | BIT24 | BIT28 | BIT29 | BIT30 | BIT31)) // GPIO >= 34 are input only #define SOC_GPIO_VALID_OUTPUT_GPIO_MASK (SOC_GPIO_VALID_GPIO_MASK & ~(0ULL | BIT34 | BIT35 | BIT36 | BIT37 | BIT38 | BIT39)) 29 pin is denied to use pls help) RE: Lesson20- how to use PCF8574 IIC extend GPIO for ESP32 input ports - admin - 08-17-2024 these are i2c bus pin define for KC868-A8: IIC SDA:4 IIC SCL:5 |