From b04cdda4ce78c58a802e191236bdb2b8ffee00da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=B2=E5=B1=8E=E5=B0=86=E5=86=9B?= <37292630+wlmh110@users.noreply.github.com> Date: Sat, 2 Jun 2018 11:07:12 +0800 Subject: [PATCH] Update README.md --- TimerSD3078/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TimerSD3078/README.md b/TimerSD3078/README.md index 71ec718..66f1f22 100644 --- a/TimerSD3078/README.md +++ b/TimerSD3078/README.md @@ -9,13 +9,13 @@ SD3078的时间寄存器同DS1307相同,树莓派自带驱动,不需要再 ## * 树莓派设置中打开I2C通讯 ## * 系统内核添加驱动模块 ## * 使用I2Ctools寻找地址 -SD3078固定地址0X32 +> SD3078固定地址0X32 ## * 打开写保护 -sudo i2cset -y 1 0x32 0x10 0xff -sudo i2cset -y 1 0x32 0x0f 0x85 +> 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 +> echo ds1307 0x32 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device ## * 写入时钟数据 -sudo hwclock -w +> sudo hwclock -w