RTC DS1307 DS3231庫

從 YFRobotwiki
在2016年11月17日 (四) 14:25由Allblue對話 | 貢獻所做的修訂版本

(差異) ←上個修訂 | 最新修訂 (差異) | 下一修訂→ (差異)
跳到: 導覽搜尋


RTC_DS1307_DS3231庫 -- arduino實時時鐘庫(已支持ESP8266) GITHUB 工程地址:RTC by Makuna

支持設備

DS1307

Full support including squarewave output pin and memory access -- 全部功能支持,包括方波輸出和內存訪問

DS3231

Full support including squarewave output pin and alarms. -- 全部功能支持,包括方波輸出和鬧鐘


示例


- DS1307_Memory: This demonstrates how to write and read data from the extended memory of the device. This memory is retained even after the device has lost power./演示如何讀寫數據從設備的擴展內存。即使設備掉電內存依然保存
- DS1307_Simple: This demonstrates how to set and get the date and time from the device./演示了如何在設備上設置和獲取日期和時間
- DS3231_Alarms: This demonstrates how to set the alarms and check when the alarms are triggered. This includes using the squarewave output to trigger an interrupt./演示如何設置鬧鐘和檢查何時觸發鬧鐘。這包含使用方波輸出觸發一個中斷
- DS3231_Simple: This demonstrates how to set and get the date and time from the device./演示如何在設備上設置和獲取日期和時間。
- DS3231_StoreIt: This demonstrates how to turn off the Rtc clock so that the onboard battery will last longer./演示如何關閉RTC時鐘以保證板載電池能持續更長時間




DS1307

SD類提供了訪問SD卡和操作卡中文件和目錄的函數。

- begin()
- exists()
- mkdir()
- open()
- remove()
- rmdir()



DS3231

File類允許讀取或寫入SD卡上單個文件

- available()
- close()
- flush()
- peek()
- position()
- print
- println()
- seek()
- size()
- read()
- write()
- isDirectory()
- openNextFile()
- rewindDirectory()




返回Arduino庫菜單

返回首頁

更多建議和問題歡迎反饋至 YFRobot論壇