Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
date_time.h
Go to the documentation of this file.
1#ifndef _PAPERDINK_TIME_H
2#define _PAPERDINK_TIME_H
3
5
6#define NTP_SERVER "pool.ntp.org"
7#define CONFIG_TIME_RETRY_COUNT (5)
8
10{
11public:
12char wday[4];
13char month[4];
14uint8_t month_days;
15uint8_t month_num;
16uint8_t mday;
17uint8_t mil_hour;
18uint8_t hour;
19uint8_t min;
20uint8_t sec;
21uint8_t day_offset; // 1st day of the month offset, Monday = 0
22int year;
23// Offset to change start week. 0=>Sun, 1=>Sat, 2=>Fri ... 6=>Mon
25
26int8_t fetch_data(const char *time_zone, uint8_t week_start_offset = 6);
27void display_day_date_style1_center(GxEPD2_GFX& display, uint16_t x, uint16_t y, uint16_t w);
28void display_day_date_style2_center(GxEPD2_GFX& display, uint16_t x, uint16_t y, uint16_t w);
29void display_last_updated_time_style1_center(GxEPD2_GFX& display, uint16_t x, uint16_t y, uint16_t w);
30void display_calendar(GxEPD2_GFX& display, uint16_t x, uint16_t y);
31};
32
34
35#endif /* _PAPERDINK_TIME_H */
uint8_t week_start_offset
Definition date_time.h:24
void display_last_updated_time_style1_center(GxEPD2_GFX &display, uint16_t x, uint16_t y, uint16_t w)
void display_day_date_style2_center(GxEPD2_GFX &display, uint16_t x, uint16_t y, uint16_t w)
Definition date_time.cpp:81
void display_day_date_style1_center(GxEPD2_GFX &display, uint16_t x, uint16_t y, uint16_t w)
Definition date_time.cpp:58
void display_calendar(GxEPD2_GFX &display, uint16_t x, uint16_t y)
int8_t fetch_data(const char *time_zone, uint8_t week_start_offset=6)
Definition date_time.cpp:4
PaperdinkUIDateClass Paperdink_Date