您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
384 B

  1. #pragma once
  2. #include "Time2.h"
  3. #include "Hardware.h"
  4. namespace rtc {
  5. inline void powerOn() {
  6. hardware::i2c::rtcPowerOn();
  7. }
  8. inline void powerOff() {
  9. hardware::i2c::rtcPowerOff();
  10. }
  11. void setup();
  12. timestamp_t getTime();
  13. void setTime(timestamp_t &time);
  14. inline void setAlarm(uint16_t seconds) {
  15. setAlarm(getTime() + seconds);
  16. }
  17. void setAlarm(timestamp_t &time);
  18. }