EasyManua.ls Logo

UUGear Witty Pi 4 - Page 47

Default Icon
53 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
43
69
PCF85063: Weekday_alarm register
0~6
0
Read & Write
70
PCF85063: Timer_value register
0~255
0
Read & Write
71
PCF85063: Timer_mode register
0~255
0
Read & Write
Below is an example to read the register with index 7, to know the current power mode (0x00 means
input 5V via the USB Type C connector):
And below is an example to write the register with index 18, to set the pulsing interval to 1 second:
Remarks: although the register with index 16 is writable, changing the I2C address is more than
writing an I
2
C register. You will need to modify the software accordingly, and reconnect the power
supply to make it work. You can find more details in the What I2C address is used by Witty Pi 4?
Can I change it?” section.
pi@raspberrypi:~ $ i2cget -y 1 0x08 7
0x00
pi@raspberrypi:~ $ i2cset -y 1 0x08 18 1

Table of Contents