ESP32-PaxCounter/include/rtctime.h
Tom 67b4492220
Update rtctime.h
As mentioned by Makuna of RTC library
2023-07-02 18:13:07 +02:00

22 lines
440 B
C

#ifndef _RTCTIME_H
#define _RTCTIME_H
#ifdef HAS_RTC
#include <Wire.h> // must be included here so that Arduino library object file references work
#include "globals.h"
#include "timekeeper.h"
extern RtcDS3231<TwoWire> Rtc; // make RTC instance globally available
uint8_t rtc_init(void);
uint8_t set_rtctime(time_t t);
void sync_rtctime(void);
time_t get_rtctime(uint16_t *msec);
float get_rtctemp(void);
#endif
#endif // _RTCTIME_H