mirror of
https://github.com/PiSugar/PiSugar.git
synced 2026-10-25 18:40:15 -04:00
Merge branch 'master' of https://github.com/JdaieLin/PiSugar
This commit is contained in:
commit
13da7c4464
3 changed files with 1 additions and 23 deletions
1
.github/ISSUE_TEMPLATE
vendored
Normal file
1
.github/ISSUE_TEMPLATE
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
**Note:** This repo is mainly about the entire PiSugar project, cases and wiki. We usually process these issues once a month. For quick response about PiSugar products, please contact pisugar.zero@gmail.com. For software issues, please submit your issuse to https://github.com/PiSugar/pisugar-power-manager-rs/issues
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# 使用说明
|
||||
该文档仅限于在板载SD3078的pisugar产品使用。
|
||||
注意,设置了系统时钟驱动以后,有可能导致其他外围设备无法使用。
|
||||
# 芯片简介
|
||||
SD3078是一个自带晶振的时钟芯片,同常见的DS1302比较,内部晶振稳定性更高,不需要外部参数调节。
|
||||
SD3078的时间寄存器同DS1307相同,树莓派自带驱动,不需要再编译驱动内核。
|
||||
|
||||
# 操作顺序
|
||||
|
||||
* ## 树莓派设置中打开I2C通讯
|
||||
* ## 系统内核添加驱动模块
|
||||
* ## 使用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
|
||||
Loading…
Add table
Add a link
Reference in a new issue