You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
-
- #include "Time2.h"
- #include "Hardware.h"
-
- namespace rtc {
- inline void powerOn() {
- hardware::i2c::rtcPowerOn();
- }
-
- inline void powerOff() {
- hardware::i2c::rtcPowerOff();
- }
-
- void setup();
-
- void getTime(tmElements_t &time);
- void setTime(tmElements_t &time);
-
- inline void setAlarm(uint16_t seconds) {
- tmElements_t time;
- getTime(time);
- setAlarm(makeTime(time) + seconds); //TODO : use operator
- }
-
- void setAlarm(tmElements_t &time);
- }
|