Posts: 6,311
Threads: 808
Joined: Oct 2020
Reputation:
154
KCS firmware only use for KinCony's ESP32 board, not for every other PCB.
Posts: 23
Threads: 4
Joined: Jun 2022
Reputation:
0
Yes, I am using a KC868-A16 board.
Posts: 23
Threads: 4
Joined: Jun 2022
Reputation:
0
Can try i a few days, will come back!
Posts: 23
Threads: 4
Joined: Jun 2022
Reputation:
0
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
Posts: 6,311
Threads: 808
Joined: Oct 2020
Reputation:
154
PCF8574 pcf8574_input1(0x3B,4,5); //channel 1-8 old hardware rev: 0x22 hardware rev >1.5: 0x3A
PCF8574 pcf8574_input2(0x39,4,5); //channel 9-16 old hardware rev: 0x21 hardware rev >1.5: 0x39
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
address 0x3A and 0x39 for INPUT ports can work well , right?
Posts: 6,311
Threads: 808
Joined: Oct 2020
Reputation:
154
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: