JayAuckland
New Member
Using this code: hi2csetup i2cmaster, 64, i2cfast, i2cbyte I can set up and communicate with a MCP23016 I/O expander at address 01000000 and do anything I want with it.
Substituting 0x40 for the 64 works just as well. I'm working on the implication that decimal 64 and hex 0x40 both equal binary 01000000, and the experience that either seem to work just fine.
However, when I connect a second MCP23016, setting its address pins so its address is 01000010, I can find no way to successfully communicate with it when substituting the 64 with either 66 (decimal equivalent of 01000010) or 0x42.
I've poked around the Forum and several semi-helpful web sites and postings and still can't quite get my head around how to do this properly, or what the principle behind it is? Can someone help me before my brain turns to mush?
Substituting 0x40 for the 64 works just as well. I'm working on the implication that decimal 64 and hex 0x40 both equal binary 01000000, and the experience that either seem to work just fine.
However, when I connect a second MCP23016, setting its address pins so its address is 01000010, I can find no way to successfully communicate with it when substituting the 64 with either 66 (decimal equivalent of 01000010) or 0x42.
I've poked around the Forum and several semi-helpful web sites and postings and still can't quite get my head around how to do this properly, or what the principle behind it is? Can someone help me before my brain turns to mush?