Update README.md

This commit is contained in:
铲屎将军 2018-06-02 11:08:06 +08:00 • committed by GitHub
parent 61cd407871
commit 09c29a0921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,12 +10,12 @@ SD3078的时间寄存器同DS1307相同,树莓派自带驱动,不需要再
* ## 系统内核添加驱动模块
* ## 使用I2Ctools寻找地址
> SD3078固定地址0X32
## * 打开写保护
* ## 打开写保护
> sudo i2cset -y 1 0x32 0x10 0xff
> sudo i2cset -y 1 0x32 0x0f 0x85
## * 向系统添加新设备
* ## 向系统添加新设备
> echo ds1307 0x32 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device
## * 写入时钟数据
* ## 写入时钟数据
> sudo hwclock -w