I am currently programming a chip which is an audio codec, which is the slave, via thw arduino uno, using I2C. Now my question is that This audio codec chip has also several internal registers, so when I am going to program the chip, first I need to send the chip, the slave address and wait for the acknowledge. Now usually, in all the examples I have seen, after the slave's chip address, a data byte is sent.
In my case, I also need to select which internal register I am going to send data to.
How am I going to use the Wire.h function codes so that after I use the
Wire.beginTransmission(slave_address); to send the address of the slave chip, I send also the address of the register I need to send data too?
Do I need to include another,
Wire.beginTransmission(register_address);? or otherwise use,
please help me!