03-01-2023, 12:30 AM
this code is work fine, but you have changed, so your board not work well.
8574-DI.zip (Size: 650 bytes / Downloads: 199)
NOT use " PCF8574 pcf8574(0x22,4,5); " our code is "PCF8574 pcf8574(0x22);"
I have told you need set pin define in your arduino config file:
we use NodeMcu-32S board, so do as these photos will be work fine:
8574-DI.zip (Size: 650 bytes / Downloads: 199)
NOT use " PCF8574 pcf8574(0x22,4,5); " our code is "PCF8574 pcf8574(0x22);"
I have told you need set pin define in your arduino config file:
we use NodeMcu-32S board, so do as these photos will be work fine: