官术网_书友最值得收藏!

I2C device setup

The next step is to check whether the time clock is synchronized with RTC time. Here we define the RTC local:

sudo nano /etc/rc.local

Add the following lines to the file as we declare the new device and the path we configure:

echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device 

The following command will start up the RTC:

hwclock -s

After this command, reboot the Pi. You will see the following screen, which means that the RTC is configured and ready to work: 

I2C device setup
主站蜘蛛池模板: 营山县| 轮台县| 祁连县| 华蓥市| 吴川市| 常州市| 蓝山县| 安国市| 定西市| 文登市| 靖西县| 疏勒县| 长寿区| 九龙城区| 达拉特旗| 边坝县| 甘孜| 四平市| 宜黄县| 区。| 华阴市| 通州市| 大埔县| 松桃| 高邮市| 西乌| 扶绥县| 安泽县| 灌云县| 壤塘县| 军事| 佛山市| 襄城县| 古蔺县| 辽宁省| 武宣县| 南平市| 黄梅县| 怀来县| 岳池县| 花垣县|