Quote:
Originally Posted by virtuald
Right, I knew that part. But it seems to me that the Write() function is referring to a different address.
|
I2C devices have a bus address -- the address to which the device itself responds for reads or writes.
Internally, they may (and usually do) have multiple registers.
These registers are numerically indexed -- 0, 1, ... N.
If the I2c device you want to access only has 1 user accessible register, then use register address (register number) 0.
Additionally, for I2C devices that do have multiple internal registers, you can read or write multiple consecutive registers by specifying the first register number and supplying multiple bytes of data.