| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Restore the original simple clock face as requested.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
There is no need to set the indicator on every clock tick.
Indicate only when the battery is checked.
|
|
|
|
|
| |
The alarm state is not modified within the clock face.
Therefore, it only needs to be set when the face is activated.
|
|
|
|
| |
Simplifies the code by defining dedicated functions for this.
|
|
|
|
| |
Simplifies the code by defining dedicated functions for this.
|
|
|
|
|
| |
Check the battery after the time has been updated.
Place all the indication code next to each other.
|
|
|
|
| |
Simplifies the code by defining dedicated functions for this.
|
|
|
|
| |
Simplifies the code by defining dedicated functions for this.
|
|
|
|
| |
Simplifies the code by defining dedicated functions for this.
|
|
|
|
|
|
|
| |
Simplifies the code by defining dedicated functions
and separating the case from the main ones.
Also use the snprintf function since the buffer size is known.
|
|
|
|
|
| |
Simplifies the code by adding a dedicated function for this.
Also documents the meaning of the LAP indicator: Low Available Power.
|
|
|
|
|
| |
Move the code in question to a dedicated function. Better organized.
Add overridable preprocessor definition for the low battery threshold.
|
|
|
|
| |
Simplifies the code by adding dedicated functions for this.
|
|
|
|
| |
Simplifies the code by adding a dedicated function for this.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Simplifies the code and makes it use the correct indicator.
For some reason it had been switched with the alarm indicator.
WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
WATCH_INDICATOR_SIGNAL
The hourly signal indicator.
Also useful for indicating that sensors are on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deduplicates state in the clock state and movement settings.
Makes the code simpler.
Also makes it use the correct indicator.
For some reason it had been switched
with the hourly chime indicator.
WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
WATCH_INDICATOR_SIGNAL
The hourly signal indicator.
Also useful for indicating that sensors are on.
|
|
|
|
| |
Sets or clears the specified indicator based on some boolean value.
|
|
|
|
|
|
|
|
|
|
|
| |
Instances of the clock state structure
are only passed to the clock face itself
and only via the opaque context pointer.
No other code uses it.
Thus there is no need to expose it in a header file.
So make it an implementation detail of the watch face
by localizing it inside the translation unit.
|
|
|
|
|
| |
It's not actually so simple and will only gain features from now on.
Just "clock face" also feels more canonical.
|
|\
| |
| | |
make the zero in wyoscan a little more visually appealing
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This makes movement_play_signal synchronous when in LE mode, despite
using the underlying asynchronous API. It's a bit of a hack, but it
should work well enough for now.
This also moves the enabling/disabling of the buzzer into the
movement_play_signal function, so that watch faces no longer have to do
it.
|
| |/
| |
| |
| |
| |
| |
| | |
neutralinsomniac/fix_hourly_chime_background"
This reverts commit 5c94111ea20e50cb9dab8f416603403185e933b3, reversing
changes made to bc9b4ce700d3f12adc0daceaa880e3d638df0c2b.
|
| |
| |
| |
| |
| | |
* Move from .c to .h as needed for consistency.
* When missing from both, copy from pull request or wiki.
* When missing entirely, infer functionality from source code.
|
| | |
|
| | |
|
| |
| |
| |
| | |
This allows for use of the weekday digits for displaying the weekday.
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
this way watch faces don't have to disable/enable the buzzer themselves
before calling movement_play_signal() and movement_play_tune()
|
|
|
|
| |
foreground/background chime functions
|
|
|
|
|
|
|
|
|
|
|
| |
* Update movement_faces.h
adding decimal_time_face.h to build
* Decimal Time, a new clock face
This face presents the current time as hours and hundredths of an hour.
* add decimal time to Makefile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* initial wyoscan commit
* initial attempt at animation
* kinda working
* visually working but running out of memory
* slower
* little fixes
* add hardware watch blink function
* refine number animation
* remove movement from config for merging
* silence warnings
---------
Co-authored-by: Willy Hardy <whardy@redhat.com>
|
|
|
|
| |
binary code LED flashing.
|
|
|
|
|
|
|
|
|
|
|
| |
* Implementation of alternative world clock.
* Fixed two minor bugs
- Only start in settings mode on first activation
- Fixed typo in time zone names
---------
Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
|
|
|
|
| |
feature added : time reading via beeps
|
|
|
|
|
| |
watch faces that handle EVENT_LIGHT_BUTTON_UP but not EVENT_LIGHT_BUTTON_DOWN
probably don't want the default EVENT_LIGHT_BUTTON_DOWN LED activation behavior
|
| |
|
|\ |
|
| |
| |
| |
| | |
This reverts commit 851d047c818dacc30c86f4d87f33247dcfb0095c.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Intermediate changes
* Databank working
* Main commit for precision timing
First version where all functions are supposed to be working
* Fix math error in nanosec. File storage for location.
* Remove obsolete comments
* Missing page name on pages rotation - thanks to jeremy
* Delete file.diff
* Cleanup+tempchart
1) finetune must always reset last calibration time when doing non-0 time correction, even when you are not applying ppm correction.
2) Dithers over 31 periods not 10, more resolution with still no risk of overflow
3) Minute-boundery finetune fix. I also just got this 1-minute error after finetune...
4) Write frequency calibration value in 1 operation rather than 2. All RTC writes must be single operations to avoid partially correct data.
5) Some code cleanup
6) Tempchart face is added for temperature statistics
* Update set_time_hackwatch_face.c
* Math error in display code of finetune, allow to update correction time even without correction - by long alarm press
* Increase reliability of stopping & starting RTC timer
As it's quite dangerous operation
* hackwatch - days adjust down fix by long alarm
* unify style
* More comments & last style change
* Simulator support
RTC operations (watch_rtc_enable and watch_rtc_freqcorr_write) are in common libs.
* Unicode fix
* Crystal aging is now adjustable (AA page in nanosec - annual aging, ppm/year)
Aging is baked into fixed offset every time finetune is performed, as it relies on last adjustment time.
* Blink on non-0 page every minute in finetune to measure clock error
* Rolling back private changes
* Cleanup
* Cleanup
* Quality of life changes in nanosec
1. Does not calculate & apply ppm correction if less than 6 hours passed since previous adjustment (as it gives very high correction values which are unrealistic and unhelpful)
2. Idle timeout resets to face 0 only if no correction was made
* unify style
* Fix low-power errors in nanosec infrastructure, faster display in finetune
* Merge fix
* unify style
Co-authored-by: Jeremy O'Brien <neutral@fastmail.com>
Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
|
| |
|
| |
|
|
|
|
| |
Same as simple clock, but has iso 8601 week number instead of seconds counter
|