04-17-2024, 10:33 AM
list all your correct i2c address of OUTPUT and INPUT:
PCF8574 pcf8574_input1(xxxx,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5:
PCF8574 pcf8574_input2(xxxx,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5:
PCF8574 pcf8574_output1(xxxx,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5:
PCF8574 pcf8574_output2(xxxx,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5:
PCF8574 pcf8574_input1(xxxx,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5:
PCF8574 pcf8574_input2(xxxx,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5:
PCF8574 pcf8574_output1(xxxx,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5:
PCF8574 pcf8574_output2(xxxx,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: