joeycastillo
0a9d71e2d4
use consistent naming style for typedefs
2024-10-05 10:36:58 -04:00
joeycastillo
cfd04be4fb
refactor watch faces to use new advisory API
2024-09-29 22:14:55 -04:00
joeycastillo
4b8b092594
tick_animation is now sleep_animation (which just displays an indicator on new LCD)
2024-09-29 15:24:43 -04:00
joeycastillo
e88359d1d5
refactor: watch faces no longer need a pointer to settings!
2024-09-29 10:18:11 -04:00
joeycastillo
b3ed4df0a1
bring in clock face, add 024h mode, refactor out last raw access of settings->bit
2024-09-29 10:18:11 -04:00
joeycastillo
f315744cc3
refactor remaining uses of movement_timezone_offsets to movement_get_current_timezone_offset
2024-09-29 10:18:11 -04:00
joeycastillo
677872434d
bring in beats face using new time zone function
2024-09-29 10:18:11 -04:00
joeycastillo
71922f8e51
refactor movement's alarm_enabled bit to a function call
2024-09-29 08:16:53 -04:00
joeycastillo
c5e5bc1200
refactor movement's 24h mode to a function call
2024-09-29 08:02:20 -04:00
joeycastillo
9bedee8e54
consistently use _t convention
2024-09-29 07:45:24 -04:00
joeycastillo
01f1008e16
refactor movement's button preference into a function call
2024-09-28 21:57:21 -04:00
joeycastillo
0a6ef3d82a
24H only is handled by disabling changing the setting
2024-09-23 08:53:57 -04:00
joeycastillo
41ea9e8fc5
Revert "Support leading zero representation for 24h clock"
...
This reverts commit f633b7634b .
2024-09-18 23:34:02 -04:00
joeycastillo
dccad01e8f
first build of Second Movement with two watch faces
2024-09-18 18:22:33 -04:00
Matheus Afonso Martins Moreira
30267dfc0c
Revert PR #470 - fixes world_clock2 face
...
The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.
This reverts commit 3c86a42aa8 , reversing
changes made to be969c4deb .
2024-09-17 17:28:41 -03:00
Matheus Afonso Martins Moreira
a9d503b807
Revert PR #470 - implement automatic DST toggling
...
The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.
This reverts commit ac5bf8cfce , reversing
changes made to 5a8a49a8c7 .
2024-09-17 17:28:32 -03:00
Matheus Afonso Martins Moreira
ea5efb4d82
faces/clock: clear segments if not in 024h mode
...
There was an issue where the clock's display would remain in 024h mode
even after switching back to 12h/24h mode because it only took into
account the leading zero bit, whose value is meaningless unless the
24h mode bit is also set.
The issue is fixed by taking both bits into account.
Closes #476 .
Reported-by: CarpeNoctem <cryptomax@pm.me >
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476
2024-09-16 15:54:09 -03:00
Matheus Afonso Martins Moreira
f2479bee4f
faces/simple_clock: clear segments if not in 024h
...
There was an issue where the simple clock's display would remain in
024h mode even after switching back to 12h/24h mode because it only
took into account the leading zero bit, whose value is meaningless
unless the 24h mode bit is also set.
The issue is fixed by taking both bits into account.
Closes #476 .
Reported-by: CarpeNoctem <cryptomax@pm.me >
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476
2024-09-16 15:53:48 -03:00
Matheus Afonso Martins Moreira
3c86a42aa8
Merge PR #470 - fixes world_clock2 face
...
The new DST changes caused problems in one specific face - world_clock2.
An incorrect variable was used due to a confusing name.
It has been revised to fix the problems that were caused.
Closes #475 .
Reported-by: CarpeNoctem <cryptomax@pm.me >
Fixed-by: David Volovskiy <devolov@gmail.com >
Tested-by: CarpeNoctem <cryptomax@pm.me >
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/475
2024-09-15 20:45:33 -03:00
David Volovskiy
1462d18376
Fixed the tz that the world clock references
2024-09-15 19:13:38 -04:00
Matheus Afonso Martins Moreira
ac5bf8cfce
Merge PR #470 - implement automatic DST toggling
...
Implements logic to automatically offset daylight saving time settings
when calculating timezone offsets. This should make the DST functions
work automatically with no need for user input in most cases.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470
2024-09-08 13:41:52 -03:00
Matheus Afonso Martins Moreira
bfadb81e82
Merge PR #401 - add fuzzy time watch face
...
Displays the time in a "close enough" manner:
periods of five minutes, relative to the nearest hour.
For example:
- 3:24 -> 25 past 3
- 3:50 -> 10 to 4
- 3:59 -> 4 o'clock
- 1:35 -> 35 past 1
- 1:50 -> 10 to 2
- 2:00 -> 2 o'clock
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
Tested-on-hardware-by: Ruben Nic <RubenSandwich@users.noreply.github.com >
Tested-on-hardware-by: KlingonJane <148595159+KlingonJane@users.noreply.github.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/401
2024-09-07 20:57:24 -03:00
Matheus Afonso Martins Moreira
543788b622
Merge PR #287 - add minimal clock face
...
Add a minimalist clock face that shows only hours and minutes.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/287
2024-09-07 20:14:26 -03:00
Matheus Afonso Martins Moreira
7de53f9fa0
Merge PR #269 - add french revolutionary time face
...
Adds a french revolutionary time watch face which displays the time
divided into ten hours of one hundred minutes each which are in turn
divided into one hundred seconds each.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
Reviewed-by: Wesley Aptekar-Cassels <me@wesleyac.com >
Reviewed-by: Alex Maestas <git@se30.xyz >
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/269
2024-09-07 20:00:16 -03:00
CarpeNoctem
07a2a49e72
french_revolutionary face: fix compiler warning and uninitialized date_time variable
2024-09-07 19:47:17 -03:00
Matheus Afonso Martins Moreira
4d6a9345f2
Merge PR #299 - leading zero representation
...
Adds a movement-wide leading zero 024h representation mode
that's toggleable in the preferences watch face.
Also adds support for the new display mode to existing faces.
I modified the logic a bit to ensure the 24h indicator remains lit
in the simple clock face even when in 024h mode. I also added support
to the more advanced clock face. In the future I will add a compile time
toggle to it as well.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/299
2024-09-03 18:49:13 -03:00
Matheus Afonso Martins Moreira
879c48ce4d
Merge PR #417 - improve 24h only mode
...
Enhances 24 hour only mode by setting defaults properly
and skipping past the 12/24 hour settings page in the
preferences watch face.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/417
2024-08-30 16:47:47 -03:00
David Volovskiy
f85a7f2c78
Swapped the bell and alarm icon on the clock face to match Casio's doc
2024-08-10 06:38:46 -04:00
David Volovskiy
598e876186
check_and_act_on_daylight_savings now only occurs in one spot
2024-08-04 10:11:33 -04:00
David Volovskiy
2824a62908
Bugfix on not registering the top of an hour
2024-08-04 09:53:04 -04:00
David Volovskiy
aebea960c0
Cleanup to the default branch
2024-08-03 10:08:24 -04:00
David Volovskiy
e50390b673
DST roll is now a global variable in watch_rtc
2024-08-03 10:07:57 -04:00
David Volovskiy
74421c7e65
Day roll back repeat fix
2024-08-03 09:39:02 -04:00
David Volovskiy
bae8c65825
Made the faces I care about not need to continuously re-find the timezone
2024-08-02 07:37:30 -04:00
David Volovskiy
4c546b14dc
The timezone now auto-corrects with DST (but still displays the same offset in the settings screen to the user)
2024-08-02 01:25:01 -04:00
David Volovskiy
149911e4ad
Time now auto-updates with DST
2024-08-02 01:23:21 -04:00
David Volovskiy
2afc2c6721
isolating this bit of complexity in movement function; Add ifdefs in clock faces for DCE
2024-07-10 07:22:55 -04:00
David Volovskiy
b923d50652
CLOCK_FACE_24H_ONLY hides the preference to change the setting and defaults the mode to 24Hr mode
2024-07-08 18:32:41 -04:00
Ruben Nic
7a2ecad334
Custom setting of switch from past to to index
2024-05-25 18:16:50 -04:00
Ruben Nic
af0f8d2732
If the alarm is enabled show bell not signal
2024-05-18 10:44:43 -04:00
Ruben Nic
53f11cbd1e
have close enough to update less and clean up code
2024-05-15 12:30:00 -04:00
Ruben Nic
fa35b8bb77
Add close enough clock face
2024-05-06 20:32:59 -04:00
Matheus Afonso Martins Moreira
955ac94de3
faces: restore simple_clock_face
...
Restore the original simple clock face as requested.
2024-03-16 20:04:08 -03:00
Matheus Afonso Martins Moreira
4a66035f77
faces/clock: add 24h only feature
...
The clock watch face can now be configured at build time
to only display the time in 24h mode. Also enabled in forced 24h mode.
This should result in smaller code size due to dead code elimination.
2024-03-05 00:46:27 -03:00
Matheus Afonso Martins Moreira
4cca3a0fac
faces/clock: update copyrights and credits
...
Update the copyrights to include full name attribution to all
who contributed to the clock watch face, including myself.
Also add an SPDX license identifier header comment to the files.
2024-03-05 00:46:27 -03:00
Matheus Afonso Martins Moreira
69639a5736
faces/clock: indicate low power only when needed
...
There is no need to set the indicator on every clock tick.
Indicate only when the battery is checked.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
5c376d9b9a
faces/clock: indicate alarm only when necessary
...
The alarm state is not modified within the clock face.
Therefore, it only needs to be set when the face is activated.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
2df6b2879a
faces/clock: refactor time signal toggling code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
1e2c23cf13
faces/clock: refactor clock display code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
830200f9c3
faces/clock: reorder periodic battery check
...
Check the battery after the time has been updated.
Place all the indication code next to each other.
2024-02-25 15:24:14 -03:00