25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
346 B

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