ESP32-PaxCounter/include/rtctime.h

17 lines
427 B
C
Raw Normal View History

2019-01-20 22:38:53 +01:00
#ifndef _RTCTIME_H
#define _RTCTIME_H
#include "globals.h"
2019-02-24 01:44:55 +01:00
#include "timekeeper.h"
#include <Wire.h> // must be included here so that Arduino library object file references work
#include <RtcDS3231.h>
extern RtcDS3231<TwoWire> Rtc; // make RTC instance globally available
2019-02-24 13:47:18 +01:00
uint8_t rtc_init(void);
uint8_t set_rtctime(time_t t);
2019-01-20 22:38:53 +01:00
void sync_rtctime(void);
time_t get_rtctime(void);
float get_rtctemp(void);
2019-01-20 22:38:53 +01:00
#endif // _RTCTIME_H