# vi /boot/config dtparam=i2c_arm=on
dtparam=i2c_arm=on
# modprobe i2c-bcm2708 # echo ds3231 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device # vi /etc/rc.local echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device hwclock -s
echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device hwclock -s
沒有留言:
張貼留言