30
Below is an example to read the register at address 7, to know the current power mode (0x00 means
input 5V via the micro USB connector):
And below is an example to write the register at address 11, to set the pulsing interval to 1 second
(using value 6):
Remarks: although the register at address 9 is writable, changing the I2C slave address is more
than writing an I
2
C register. You will need to modify the software accordingly (change the
I2C_MC_ADDRESS value in utilities.sh file), and reconnect the power supply to make it work.
pi@raspberrypi ~ $ i2cget -y 1 0x69 7
0x00
pi@raspberrypi ~ $
pi@raspberrypi ~ $ i2cset -y 1 0x69 11 6
pi@raspberrypi ~ $