added timezone support
This commit is contained in:
1 parent
28bfae346e
commit
4341158fa3
8 files changed
+55
-42
No files matched your search
+2
-1
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "globals.h"
|
||||
#include <Time.h>
|
||||
#include <Timezone.h>
|
||||
#include <Wire.h> // must be included here so that Arduino library object file references work
|
||||
#include <RtcDS3231.h>
|
||||
|
||||
@@ -19,9 +20,9 @@ typedef enum {
|
||||
} clock_state_t;
|
||||
|
||||
extern RtcDS3231<TwoWire> Rtc; // make RTC instance globally available
|
||||
extern Timezone myTZ; // make Timezone myTZ globally available
|
||||
|
||||
int rtc_init(void);
|
||||
void sync_rtctime(void);
|
||||
int set_rtctime(uint32_t UTCTime);
|
||||
int set_rtctime(RtcDateTime now);
|
||||
void sync_rtctime(void);
|
||||
|
||||
Reference in new issue
Block a user