“RTC DS1307 DS3231库”的版本间的差异
来自YFRobotwiki
第85行: | 第85行: | ||
::返回:RtcDateTime | ::返回:RtcDateTime | ||
− | :- | + | :-<font color="forestgreen">GetTemperature()</font> -- 获取温度 |
+ | ::参数:无 | ||
+ | ::返回:RtcTemperature | ||
− | :- | + | :-<font color="forestgreen">Enable32kHzPin()</font> -- 使能32KHZ引脚 |
+ | ::参数:bool enable | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">SetSquareWavePin()</font> -- 设置方波输出引脚 |
+ | ::参数:DS3231SquareWavePinMode pinMode | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">SetSquareWavePinClockFrequency()</font> -- 设置方波输出引脚时钟频率 |
+ | ::参数:DS3231SquareWaveClock freq | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">SetAlarmOne()</font> -- 设置闹钟1 |
+ | ::参数:const DS3231AlarmOne& alarm | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">SetAlarmTwo()</font> -- 设置闹钟2 |
+ | ::参数:const DS3231AlarmOne& alarm | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">GetAlarmOne()</font> -- 获取闹钟1 |
+ | ::参数:无 | ||
+ | ::返回:DS3231AlarmOne | ||
− | :- | + | :-<font color="forestgreen">GetAlarmTwo()</font> -- 获取闹钟2 |
+ | ::参数:无 | ||
+ | ::返回:DS3231AlarmTwo | ||
+ | |||
+ | :-<font color="forestgreen">LatchAlarmsTriggeredFlags()</font> -- 获取闹钟2 | ||
+ | ::参数:无 | ||
+ | ::返回:DS3231AlarmTwo | ||
:-[[RtcDS3231.LatchAlarmsTriggeredFlags()| LatchAlarmsTriggeredFlags()]] | :-[[RtcDS3231.LatchAlarmsTriggeredFlags()| LatchAlarmsTriggeredFlags()]] | ||
第105行: | 第125行: | ||
:-[[RtcDS3231.ForceTemperatureCompensationUpdate()| ForceTemperatureCompensationUpdate()]] | :-[[RtcDS3231.ForceTemperatureCompensationUpdate()| ForceTemperatureCompensationUpdate()]] | ||
− | |||
− | :- | + | :-<font color="forestgreen">GetAgingOffset()</font> -- 获取老化补偿 |
+ | ::参数:无 | ||
+ | ::返回:int8_t | ||
+ | |||
+ | :-<font color="forestgreen">SetAgingOffset()</font> -- 设置老化补偿 | ||
+ | ::参数:int8_t | ||
+ | ::返回:无 | ||
− | :- | + | :-<font color="forestgreen">getReg()</font> -- 获取老化补偿 |
+ | ::参数:uint8_t regAddress | ||
+ | ::返回:uint8_t | ||
− | :- | + | :-<font color="forestgreen">setReg()</font> -- 设置老化补偿 |
+ | ::参数:uint8_t regAddress, uint8_t regValue | ||
+ | ::返回:无 | ||
2016年11月17日 (四) 15:13的版本
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 DS1307 函数。
DS3231 函数
|
更多建议和问题欢迎反馈至 YFRobot论坛