From: Wesley Aptekar-Cassels Date: Tue, 28 Nov 2023 04:08:28 +0000 (-0500) Subject: Merge branch 'main' into day_one_face X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=a2f1ba91719717d4553e81128f892fb50ed1dd5a;p=sensor-watch.git Merge branch 'main' into day_one_face --- a2f1ba91719717d4553e81128f892fb50ed1dd5a diff --cc movement/watch_faces/complication/day_one_face.h index db1d05e,0beebd4..9a59e3b --- a/movement/watch_faces/complication/day_one_face.h +++ b/movement/watch_faces/complication/day_one_face.h @@@ -25,21 -25,33 +25,40 @@@ #ifndef DAY_ONE_FACE_H_ #define DAY_ONE_FACE_H_ - #include "movement.h" + /* + * DAY ONE face + * - * This watch face displays the number of days since a given date. ++ * This watch face displays the number of days since or until a given date. + * It was originally designed to display the number of days you’ve been alive, + * but technically it can count up from any date in the 20th century or the + * 21st century, so far. + * + * Long press on the Alarm button to enter customization mode. The text “YR” + * will appear, and will allow you to set the year starting from 1959. Press + * Alarm repeatedly to advance the year. If your birthday is before 1959, + * advance beyond the current year and it will wrap around to 1900. + * + * Once you have set the year, press Light to set the month (“MO”) and + * day (“DA”), advancing the value by pressing Alarm repeatedly. + * + * Note that at this time, the Day One face does not display the sleep + * indicator in sleep mode, which may make the watch appear to be + * unresponsive in sleep mode. You can still press the Alarm button to + * wake the watch. This UI quirk will be addressed in a future update. + */ - // 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. + #include "movement.h" +typedef enum { + PAGE_DISPLAY, + PAGE_YEAR, + PAGE_MONTH, + PAGE_DAY, + PAGE_DATE +} day_one_page_t; + typedef struct { - uint8_t current_page; - uint16_t current_year; + day_one_page_t current_page; uint16_t birth_year; uint8_t birth_month; uint8_t birth_day;