-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWatchFace.h
More file actions
27 lines (21 loc) · 995 Bytes
/
WatchFace.h
File metadata and controls
27 lines (21 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef WATCHFACE_H
#define WATCHFACE_H
struct WatchFace {
const unsigned char* bitmap;
int bitmap_x_start = 0;
int bitmap_y_start = 0;
int bitmap_x_end = 200;
int bitmap_y_end = 200;
uint16_t bitmap_color = GxEPD_BLACK;
int layout = 0; // 0 - text1 and text 2 are in single line ; 1 - text1 and text 2 are in multiple lines
bool noAMPM = false;
int text1x = -1; // -1 to center text 1 along x axis; else start text at a percentage of total x axis screen length
int text1y = -1; // -1 to center text 1 along y axis; else start text at a percentage of total y axis screen length
uint16_t text1color = GxEPD_BLACK;
const GFXfont* text1font;
int text2x = -1; // -1 to center text 2 along x axis; else start text at a percentage of total x axis screen length
int text2y = -1; // -1 to center text 2 along y axis; else start text at a percentage of total y axis screen length
uint16_t text2color = GxEPD_BLACK;
const GFXfont* text2font;
};
#endif // WATCHFACE_H