Datasheet

To write to one (or more) registers, issue a write command and transmit the register
address that should be written to, followed by the data byte to be written. Issuing another
write command will automatically write the value in the next register. This can go on until
all registers have been written to. After writing to the last register, additional write
commands will do nothing.
Writing register values
All registers can be read, but only registers marked
read/write can be written to.
0x05
0x05
0x06
Stop
Write
Start
0x05
Address
Data
Data
Example
Start writing at address 0x05 and write 2 values.
byte i2c_device_address=0x64;
byte starting_register=0x05
byte data=1;
Wire.beginTransmission(i2c_device_address);
Wire.write(starting_register);
Wire.write(data);
Wire.write(data);
Wire.endTransmission();
Example code
writing the number 1
in register 0x05 – 0x06
9
Copyright © Atlas Scientific LLC