#include <RTClib.h>
#define USE_RTC 1
#if USE_RTC
RTC_DS1307 _rtc;
#else /* USE_RTC */
RTC_Millis _rtc;
#endif /* USE_RTC */
void setup() {
// put your setup code here, to run once:
# if USE_RTC
if (!_rtc.begin()) {
Serial.println("Couldn't find RTC");
abort();
}
// _alarm_state = _rtc.readnvram(NVRAM_ADDR_ALARM_ENABLED) ? ALARM_OFF : ALARM_DISABLED;
// _alarm_hour = _rtc.readnvram(NVRAM_ADDR_ALARM_HOUR) % 24;
// _alarm_minute = _rtc.readnvram(NVRAM_ADDR_ALARM_MINUTE) % 60;
# else /* USE_RTC */
DateTime zeroTime;
_rtc.begin(zeroTime);
# endif
}
void loop() {
// put your main code here, to run repeatedly:
// digitalWrite(pinOut, LOW);
// digitalWrite(pinOut, HIGH);
Serial.println("print");
}
void turnLightBulb() {
}