Files
TEF6686_ESP32/include/rtc.hpp

15 lines
249 B
C++

#pragma once
#include <ctime>
#include "constants.h"
#include <ESP32Time.h>
#include <Wire.h>
extern bool rtcset;
extern bool NTPupdated;
extern ESP32Time rtc;
extern bool rx_rtc_avail;
bool init_rtc();
void set_time(time_t time, int8_t offset);