Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

27 řádky
440 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. void getTime(tmElements_t &time);
  13. void setTime(tmElements_t &time);
  14. inline void setAlarm(uint16_t seconds) {
  15. tmElements_t time;
  16. getTime(time);
  17. setAlarm(makeTime(time) + seconds);
  18. }
  19. void setAlarm(tmElements_t &time);
  20. }