Płyta KC868-A8 na pokładzie ESP32 + 2 x PCF8574 jeden dla przekaźników drugi dla wejść
Soft GG z roletami, przekaźniki, krańcówki , przyciski
Konfiguracja IC2
IIC SDA:4
IIC SCL:5
Po ustawieniu i restarcie wykrywa PCFy
Code: Select all
LAST STATE ADDED: Registered and ready
Current status: [17] Registered and ready
Changing activity timeout to 30
Send: [53 55 50 4C 41 14 02 00 00 00 D2 00 00 00 01 00 00 00 1E ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 02 00 00 00 DC 00 00 00 03 00 00 00 1E 0A F0 53 55 50 4C 41 ]
Activity timeout set to 30 s
Wrote 7 bytes to storage at 0
Commit
Scanning...
I2C device found at address 0x22I2C device found at address 0x24done[/quote]
Ustawiam 0x22 jako przyciski , dodaję przyciski i po restarcie wisi
[quote]Send: [53 55 50 4C 41 14 03 00 00 00 28 00 00 00 10 00 00 00 52 00 00 00 00 00 00 00 DE 13 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 03 00 00 00 32 00 00 00 10 00 00 00 CC 2A 77 65 00 00 00 00 37 55 08 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 14 04 00 00 00 28 00 00 00 10 00 00 00 6B 00 00 00 00 00 00 00 80 42 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 04 00 00 00 32 00 00 00 10 00 00 00 E5 2A 77 65 00 00 00 00 B9 CD 07 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 14 05 00 00 00 28 00 00 00 10 00 00 00 84 00 00 00 00 00 00 00 60 71 0C 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 14 05 00 00 00 32 00 00 00 10 00 00 00 FE 2A 77 65 00 00 00 00 5C 94 07 00 00 00 00 00 53 55 50 4C 41 ]
Key: 118 Value:
Button[0]::setMulticlickTime: 450
[ 406][E][Wire.cpp:83] initPins(): no Default SDA Pin for Second Peripheral
[ 406][E][Wire.cpp:448] endTransmission(): NULL TX buffer pointer
