- Internet of Things Programming with JavaScript
- Rubén Oliva Ramos
- 84字
- 2021-04-02 20:31:22
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:

推薦閱讀
- Python絕技:運用Python成為頂級數(shù)據(jù)工程師
- 數(shù)據(jù)之巔:數(shù)據(jù)的本質與未來
- 卷積神經網(wǎng)絡的Python實現(xiàn)
- 揭秘云計算與大數(shù)據(jù)
- 算法與數(shù)據(jù)中臺:基于Google、Facebook與微博實踐
- 數(shù)據(jù)庫原理與應用(Oracle版)
- 數(shù)據(jù)庫技術及應用教程
- 云原生數(shù)據(jù)中臺:架構、方法論與實踐
- 新手學會計(2013-2014實戰(zhàn)升級版)
- 智能與數(shù)據(jù)重構世界
- Kubernetes快速進階與實戰(zhàn)
- 數(shù)字化轉型方法論:落地路徑與數(shù)據(jù)中臺
- 大學計算機:理解和運用計算思維
- 達夢數(shù)據(jù)庫集群
- Oracle 11g數(shù)據(jù)庫系統(tǒng)設計、開發(fā)、管理與應用