Added new getTemperature method in order to read the internal temp of the DS3231 RTC chip
This commit is contained in:
parent
28103022cd
commit
34769ac251
@ -31,3 +31,7 @@ boolean RtcManager::hasLostPower() const
|
||||
return _rtcRef.lostPower();
|
||||
}
|
||||
|
||||
float RtcManager::getTemperature() const
|
||||
{
|
||||
return _rtcRef.getTemperature();
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ class RtcManager
|
||||
void setTime(const DateTime dateTime);
|
||||
void setDateTime(const DateTime dateTime);
|
||||
boolean hasLostPower() const;
|
||||
float getTemperature() const;
|
||||
protected:
|
||||
RtcManager(RTC_DS3231 &rtc);
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user