I've read through the various help pages but can't seem to find how to read a specific register in an I2C device.
E.G. if I want to read the hours register of a DS1307 RTC I'd do the following,
Send start,
Send device address (0xd0)
Send register address (0x02)
Send a restart with device address and read set (0xd1)
Read the hours register and any more after that.
Send stop.
How is this done with an Arduino? There doesn't seem to be anyway to send a restart.
Mike.
E.G. if I want to read the hours register of a DS1307 RTC I'd do the following,
Send start,
Send device address (0xd0)
Send register address (0x02)
Send a restart with device address and read set (0xd1)
Read the hours register and any more after that.
Send stop.
How is this done with an Arduino? There doesn't seem to be anyway to send a restart.
Mike.