Watchy 1.2.9 is up!
This commit is contained in:
parent
ebe19d58fd
commit
2e192d0a60
@ -1,3 +0,0 @@
|
|||||||
Float A;
|
|
||||||
WatchyBatt Batt;
|
|
||||||
A = Batt.Read(RTC); // RTC is needed.
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
#include <WatchyRTC.h>
|
|
||||||
#ifndef WatchyBattery_H
|
|
||||||
#define WatchyBattery_H
|
|
||||||
|
|
||||||
class WatchyBatt {
|
|
||||||
public:
|
|
||||||
float Read(WatchyRTC RTC){
|
|
||||||
if (RTC.rtcType == DS3231)
|
|
||||||
return analogRead(33);
|
|
||||||
else if (RTC.rtcType == PCF8563)
|
|
||||||
return analogRead(35);
|
|
||||||
return 0.0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
Loading…
x
Reference in New Issue
Block a user