watchy/Battery/WatchyBattery.h
2021-11-29 15:05:24 -05:00

16 lines
361 B
C++

#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