day_one_face: cleanup

This commit is contained in:
Christian Buschau
2023-09-19 15:21:00 +02:00
parent bc9b4ce700
commit 8c7e9fa558
2 changed files with 33 additions and 23 deletions

View File

@@ -27,11 +27,18 @@
#include "movement.h"
// The Day One face is designed to count upwards from the wearer's date of birth. It also functions as an
// The Day One face is designed to count the days since or until a given date. It also functions as an
// interface for setting the birth date register, which other watch faces can use for various purposes.
typedef enum {
PAGE_DISPLAY,
PAGE_YEAR,
PAGE_MONTH,
PAGE_DAY
} day_one_page_t;
typedef struct {
uint8_t current_page;
day_one_page_t current_page;
uint16_t current_year;
uint16_t birth_year;
uint8_t birth_month;