RTC DS1307 DS3231庫

從 YFRobotwiki
在2016年11月17日 (四) 14:55由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

DS1307 函數。

- Begin
初始化
參數
local_ip Static ip configuration
gateway Static gateway configuration
subnet Static Subnet mask
dns1 Static DNS server 1
dns2 Static DNS server 2
返回:bool
- GetIsRunning()
- SetIsRunning()
- SetDateTime()
- GetDateTime()
- SetMemory()
- GetMemory()
- SetSquareWavePin()



DS3231

DS3231 函數

- Begin
初始化
- IsDateTimeValid()
- GetIsRunning()
- SetIsRunning()
- SetDateTime()
- GetDateTime()
- GetTemperature
- Enable32kHzPin()
- SetSquareWavePin()
- SetSquareWavePinClockFrequency()
- SetAlarmOne()
- SetAlarmTwo()
- GetAlarmOne()
- GetAlarmTwo()
- LatchAlarmsTriggeredFlags()
- ForceTemperatureCompensationUpdate()
- GetAgingOffset()
- SetAgingOffset()
- getReg()
- setReg()





返回Arduino庫菜單

返回首頁

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