OK, you're right. I think I'm very close.
I was expecting code similar to the GPIO code (set pin#x to high), but this is more like: write to device, register on device, message to all pins on the register?
So:
bus.write_byte_data(DEVICE, OLATA, MyData)
Writes to DEVICE: in my case this would be 0x27 [and this will change when I add more expanders]
OLATA: 0x14 - I'm fuzzy on this one. This is the output register? Possibly the GPA pins?
MyData: This is the phrase that sets pins high/low.
Maybe you can teach an old dog new tricks?
Thanks for all the support!!
I was expecting code similar to the GPIO code (set pin#x to high), but this is more like: write to device, register on device, message to all pins on the register?
So:
bus.write_byte_data(DEVICE, OLATA, MyData)
Writes to DEVICE: in my case this would be 0x27 [and this will change when I add more expanders]
OLATA: 0x14 - I'm fuzzy on this one. This is the output register? Possibly the GPA pins?
MyData: This is the phrase that sets pins high/low.
Maybe you can teach an old dog new tricks?
Thanks for all the support!!
Statistics: Posted by BeagleFaceHenry — Sat Nov 02, 2024 10:55 pm