-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfbclock.h
38 lines (33 loc) · 819 Bytes
/
fbclock.h
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
28
29
30
31
32
33
34
35
36
37
38
/* Seconds to sleep between updates */
#define SLEEP 2
/* Filenames of clock graphics */
char *digit_filenames[] = {
"graphics/0.png",
"graphics/1.png",
"graphics/2.png",
"graphics/3.png",
"graphics/4.png",
"graphics/5.png",
"graphics/6.png",
"graphics/7.png",
"graphics/8.png",
"graphics/9.png"
};
char *short_month_filenames[] = {
"graphics/jan.png",
"graphics/feb.png",
"graphics/mar.png",
"graphics/apr.png",
"graphics/may.png",
"graphics/jun.png",
"graphics/jul.png",
"graphics/aug.png",
"graphics/sep.png",
"graphics/oct.png",
"graphics/nov.png",
"graphics/dec.png"
};
/* Function prototypes */
void display_time(struct tm *tp, struct framebuffer *fb, int x_offset,
int y_offset);
void print_usage();