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

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
主站蜘蛛池模板: 巴中市| 华安县| 绥芬河市| 菏泽市| 军事| 库车县| 楚雄市| 蒙山县| 龙海市| 府谷县| 荥阳市| 海林市| 鹿邑县| 和林格尔县| 陕西省| 宁津县| 广东省| 阿图什市| 视频| 抚州市| 富阳市| 资中县| 正蓝旗| 九台市| 岑溪市| 龙门县| 延庆县| 株洲县| 都安| 东山县| 合肥市| 蒙山县| 潜江市| 中牟县| 开原市| 乌兰浩特市| 木里| 日土县| 定日县| 南开区| 思南县|