|
@@ -12,9 +12,7 @@ namespace mainunit { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void interruptIn(uint16_t seconds) { |
|
|
void interruptIn(uint16_t seconds) { |
|
|
rtc::powerOn(); |
|
|
|
|
|
rtc::setAlarm(seconds); |
|
|
rtc::setAlarm(seconds); |
|
|
rtc::powerOff(); |
|
|
|
|
|
|
|
|
|
|
|
pinMode(RTC_WAKE, INPUT); |
|
|
pinMode(RTC_WAKE, INPUT); |
|
|
attachInterrupt(digitalPinToInterrupt(RTC_WAKE), interrupt, FALLING); |
|
|
attachInterrupt(digitalPinToInterrupt(RTC_WAKE), interrupt, FALLING); |
|
|