書名: 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數據分析入門:從數據獲取到可視化
- 劍破冰山:Oracle開發藝術
- 揭秘云計算與大數據
- 數據驅動設計:A/B測試提升用戶體驗
- Oracle 12c云數據庫備份與恢復技術
- 數據庫原理與應用
- Spark分布式處理實戰
- Mastering ROS for Robotics Programming(Second Edition)
- Scratch 2.0 Game Development HOTSHOT
- 智能與數據重構世界
- Swift Functional Programming(Second Edition)
- Delphi High Performance
- Machine Learning for Mobile
- ORACLE 11g權威指南