WatchyBattery.h using RTC to determine ADC PIN.

This commit is contained in:
GuruSR 2021-11-29 15:00:52 -05:00 committed by GitHub
parent 78f00651c0
commit 40eeab37b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Battery/WatchyBattery.h Normal file
View File

@ -0,0 +1,15 @@
#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