blob: 1c4525a4acc8bed31c667f93fc7aceba5bbf78bd (
plain)
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
|
#ifndef WORLD_CLOCK_FACE_H_
#define WORLD_CLOCK_FACE_H_
#include "movement.h"
typedef struct {
uint8_t char_0;
uint8_t char_1;
uint8_t timezone_index;
} world_clock_settings_t;
typedef struct {
world_clock_settings_t settings;
uint8_t current_screen;
uint32_t previous_date_time;
} world_clock_state_t;
void world_clock_face_setup(movement_settings_t *settings, void ** context_ptr);
void world_clock_face_activate(movement_settings_t *settings, void *context);
bool world_clock_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
void world_clock_face_resign(movement_settings_t *settings, void *context);
uint8_t world_clock_face_get_weekday(uint16_t day, uint16_t month, uint16_t year);
static const watch_face_t world_clock_face = {
world_clock_face_setup,
world_clock_face_activate,
world_clock_face_loop,
world_clock_face_resign,
NULL
};
#endif // WORLD_CLOCK_FACE_H_
|