diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-21 11:02:44 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-21 13:13:46 -0400 |
commit | b88cd0cd7e058679960adaf89818ed755f6e71a3 (patch) | |
tree | 8bf0cd0e0426cd695a0caf0ff6e288ded9b21d13 /movement/movement.h | |
parent | 38a2dff23491c4b22a8e55ffd6d096a198857c9f (diff) | |
download | Sensor-Watch-b88cd0cd7e058679960adaf89818ed755f6e71a3.tar.gz Sensor-Watch-b88cd0cd7e058679960adaf89818ed755f6e71a3.tar.bz2 Sensor-Watch-b88cd0cd7e058679960adaf89818ed755f6e71a3.zip |
movement: add thermistor readout face
Diffstat (limited to 'movement/movement.h')
-rw-r--r-- | movement/movement.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/movement/movement.h b/movement/movement.h index 41446a9b..e8bf9247 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -6,14 +6,20 @@ // TODO: none of this is implemented typedef union { struct { - uint32_t reserved : 15; - uint32_t clock_mode_24h : 1; // determines whether clock should use 12 or 24 hour mode. + uint32_t reserved : 14; uint32_t button_should_sound : 1; // if true, pressing a button emits a sound. uint32_t to_interval : 2; // an inactivity interval for asking the active face to resign. uint32_t le_interval : 3; // 0 to disable low energy mode, or an inactivity interval for going into low energy mode. uint32_t led_duration : 2; // how many seconds to shine the LED for (x2), or 0 to disable it. uint32_t led_red_color : 4; // for general purpose illumination, the red LED value (0-15) uint32_t led_green_color : 4; // for general purpose illumination, the green LED value (0-15) + + // while Movement itself doesn't implement a clock or display units, it may make sense to include some + // global settings for watch faces to check. The 12/24 hour preference could inform a clock or a + // time-oriented complication like a sunrise/sunset timer, and a simple locale preference could tell an + // altimeter to display feet or meters as easily as it tells a thermometer to display degrees in F or C. + uint32_t clock_mode_24h : 1; // indicates whether clock should use 12 or 24 hour mode. + uint32_t use_imperial_units : 1; // indicates whether to use metric units (the default) or imperial. } bit; uint32_t value; } movement_settings_t; |