03-29-2024, 12:27 PM
The outputs are working now with the modified version, but the inputs (all shown OFF) are not recognized.
With my code in contrast everything works (but I want to use KCS!):
//Set i2c INPUT address
PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3A <---- IS DIFFERENT!!!
PCF8574 pcf8574_input2(0x39,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: 0x39
//Set i2c OUTPUT address
PCF8574 pcf8574_output1(0x3C,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5: 0x3C
PCF8574 pcf8574_output2(0x3D,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: 0x3D
With my code in contrast everything works (but I want to use KCS!):
//Set i2c INPUT address
PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3A <---- IS DIFFERENT!!!
PCF8574 pcf8574_input2(0x39,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: 0x39
//Set i2c OUTPUT address
PCF8574 pcf8574_output1(0x3C,4,5); //channel 1-8 old hardware rev: 0x24 hardware rev >1.5: 0x3C
PCF8574 pcf8574_output2(0x3D,4,5); //channel 9-16 old hardware rev: 0x25 hardware rev >1.5: 0x3D