01-17-2023, 04:43 AM
(This post was last modified: 01-17-2023, 04:49 AM by birdwilliamb.)
Apparently copying pins_arduino.h and changing SDA and SCL defines causes the compile to get screwed up. I deleted the header and recompiled with values in the pcf constructor and my program now works. On to the next thing. One question, it appears that the relay led is on when the relay pin is low. Is that what is expected? Does that mean that NO is powered when low as well? I will test that so will figure it out. The relay buttons don't seem to do anything. Do they trigger the input pins which I would read from 0x22? I will test that as well just to understand how this board works.
I2CScanner gets the expected results as well:
I2C Scanner
I2C Initialized
Scanning...
I2C device found at address 0x22 !
I2C device found at address 0x24 !
done
I2CScanner gets the expected results as well:
I2C Scanner
I2C Initialized
Scanning...
I2C device found at address 0x22 !
I2C device found at address 0x24 !
done