Skip to content

Commit

Permalink
power consumption (related to #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Thiriot committed May 24, 2018
1 parent 8fe4ed0 commit ed20582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arduino/src/chimuino/chime_clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ void ChimeClock::setup() {
}

// disable interrupts
// TODO maybe to reactivate to space arduino consumption
RTC.alarmInterrupt(ALARM_1, false);
RTC.alarmInterrupt(ALARM_2, false);

// save power by disabling the square wave
RTC.squareWave(SQWAVE_NONE);

DEBUG_PRINTLN(F("init: RTC ok"));

}
Expand Down

0 comments on commit ed20582

Please sign in to comment.