Watchy 1.2.9 is up!

This commit is contained in:
GuruSR 2021-11-29 19:57:09 -05:00 committed by GitHub
parent ebe19d58fd
commit 2e192d0a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 18 deletions

View File

@ -1,3 +0,0 @@
Float A;
WatchyBatt Batt;
A = Batt.Read(RTC); // RTC is needed.

View File

@ -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