Files
Arduino/WeatherPredictor/rtc_time.h
T
2026-07-17 19:55:47 +07:00

14 lines
239 B
C

#pragma once
#include <Arduino.h>
struct RtcTime {
uint16_t year;
uint8_t month, day, hour, minute, second;
};
bool rtcBegin();
bool rtcLostPower();
RtcTime rtcNow();
void rtcSet(const RtcTime& t);
uint32_t rtcEpoch();