mirror of
https://github.com/PiSugar/PiSugar.git
synced 2026-10-26 02:48:52 -04:00
Update README.md
This commit is contained in:
parent
87e19902fa
commit
e790a6bfd2
1 changed files with 6 additions and 6 deletions
|
|
@ -6,16 +6,16 @@ SD3078的时间寄存器同DS1307相同,树莓派自带驱动,不需要再
|
|||
|
||||
# 操作顺序
|
||||
|
||||
## 树莓派设置中打开I2C通讯
|
||||
## 系统内核添加驱动模块
|
||||
## 使用I2Ctools寻找地址
|
||||
## *1 树莓派设置中打开I2C通讯
|
||||
## *2 系统内核添加驱动模块
|
||||
## *3 使用I2Ctools寻找地址
|
||||
SD3078固定地址0X32
|
||||
## 打开写保护
|
||||
## *4 打开写保护
|
||||
sudo i2cset -y 1 0x32 0x10 0xff
|
||||
sudo i2cset -y 1 0x32 0x0f 0x85
|
||||
|
||||
## 向系统添加新设备
|
||||
## *5 向系统添加新设备
|
||||
echo ds1307 0x32 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
|
||||
|
||||
## 写入时钟数据
|
||||
## *6 写入时钟数据
|
||||
sudo hwclock -w
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue