summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/clock
Commit message (Collapse)AuthorAgeFilesLines
* Precision watch update (#152)Mikhail Svarichevsky2023-01-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* remove unnecessary conditional in simple clock faceJeremy O'Brien2023-01-051-7/+1
|
* never disable buzzer outputjoeycastillo2023-01-032-8/+0
|
* Weeknumber watch faceSlim2022-12-022-0/+224
| | | | Same as simple clock, but has iso 8601 week number instead of seconds counter
* Add an Alarm face to movement (#96)TheOnePerson2022-10-252-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add movement_play_alarm_beeps() to movement.c and make alarm sounds customizable. Add alarm indicator to simple watch face. * Add alarm face * alarm_face: fix problem with disabling alarms for 00:00. * Fix typos in comments and get rid of of unused variable warning * remove unnecessary constant * simple_clock_face: fix disappearing chime indicator after face switch, enable alarm indicator updates in app loop (for one-time alarms). movement: handle situations where watch is in sleep mode and chimes fire off at the same time as alarms properly. * alarm_face: tweak process of displaying things on the lcd. Add extra long and extra short alarms. Increase number of alarm slots to 16. * alarm face: fix alarms playing one beeping round more than set. * alarm face: add proper quick cycling of hour and minute setting * alarm-face: correct am/pm indication and some minor tweaks. Reset movement_config.h to current main branch. simple-watch-face: Remove unnecessary check and swap indicators (alarm / hourly chime) * alarm-face: reverse commit parts from another branch (accidentially commited logic depending on movement firmware auto firing the long press event) Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
* Merge branch 'mars-clock'Joey Castillo2022-04-202-0/+223
|\
| * mars clock: formattingJoey Castillo2022-04-061-2/+2
| |
| * mars clock: use S without cross-stroke for clarityJoey Castillo2022-04-061-1/+1
| |
| * Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into mars-clockJoey Castillo2022-04-061-0/+1
| |\
| * | mars clock: add support for solsJoey Castillo2022-03-052-14/+39
| | |
| * | mars clock: adding additional sitesJoey Castillo2022-03-042-6/+43
| | |
| * | movement: first pass at mars clockJoey Castillo2022-03-042-0/+160
| |/
* | world clock: fix glitch when exiting settings modeJoey Castillo2022-04-101-6/+7
| |
* | static analysis: use parentheses around binary operatorsJoey Castillo2022-04-102-4/+4
|/
* world clock: store settings in backup register if possibleJoey Castillo2022-02-132-26/+34
|
* movement: start time zone list at UTCJoey Castillo2022-02-131-1/+1
|
* movement: add low battery warning to simple clockJoey Castillo2022-02-052-0/+16
|
* movement: move beat time to clock folderJoey Castillo2022-01-252-0/+116
|
* Sensor Watch Simulator (#35)Alexsander Akers2022-01-252-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Put something on screen * Use the 32bit watch_date_time repr to pass from JS * Implement periodic callbacks * Clear display on enabling * Hook up watch_set_led_color() to SVG (green-only) * Make debug output full-width * Remove default Emscripten canvas * Implement sleep and button clicks * Fix time zone conversion bug in beats-time app * Clean up warnings * Fix pin levels * Set time zone to browser value (if available) * Add basic backup data saving * Silence format specifier warnings in both targets * Remove unnecessary, copied files * Use RTC pointer to clear callbacks (if available) * Use preprocessor define to avoid hardcoding MOVEMENT_NUM_FACES * Change each face to const preprocessor definition * Remove Intl.DateTimeFormat usage * Update shell.html title, header * Add touch start/end event handlers on SVG buttons * Update shell.html * Update folder structure (shared, simulator, hardware under watch-library) * Tease out shared components from watch_slcd * Clean up simulator watch_slcd.c inline JS calls * Fix missing newlines at end of file * Add simulator warnings (except format, unused-paremter) * Implement remaining watch_rtc functions * Fix button bug on mouse down then drag out * Implement remaining watch_slcd functions * Link keyboard events to buttons (for keys A, L, M) * Rewrite event handling (mouse, touch, keyboard) in C * Set explicit text UTF-8 charset in shell.html * Address PR comments * Remove unused directories from include paths
* Simple Clock: Update to signal exactly on the hourDavid Keck2022-01-191-1/+1
| | | I was getting the buzzer at 59 minutes past the hour, not exactly on the hour. This changes to buzzing at exactly HOUR:00:00. Tested this locally.
* movement: reset tick to 1 Hz between watch faces (fixes #36)Joey Castillo2022-01-191-1/+0
|
* add MIT license text to movement filesJoey Castillo2022-01-154-0/+96
|
* movement: add hourly signal to simple clock faceJoey Castillo2021-12-212-10/+53
|
* Movement: give watch faces their index at setup timeJoey Castillo2021-12-204-4/+6
|
* fix missing prototype warningsJoey Castillo2021-12-101-3/+3
|
* movement: remove TODO item (we profiled it, it's fine)Joey Castillo2021-12-011-1/+0
|
* movement: add world clock faceJoey Castillo2021-11-262-0/+221
|
* movement: refactor timeout to tick first, then notifyJoey Castillo2021-11-071-1/+0
|
* move weekday lookup to new utilities fileJoey Castillo2021-10-231-12/+3
|
* movement: add tick animation in sleep modeJoey Castillo2021-10-191-3/+5
|
* movement settings: add timeout and LED durationJoey Castillo2021-10-191-1/+1
|
* add timeout event to give faces a chance to resignJoey Castillo2021-10-181-1/+1
|
* automatically determine number of watch facesJoey Castillo2021-10-161-8/+8
|
* early work on background tasks, documentationJoey Castillo2021-10-162-4/+5
|
* screensaver mode is now low energy modeJoey Castillo2021-10-161-4/+4
|
* rename types to be more c-likeJoey Castillo2021-10-162-8/+8
|
* widgets are now watch facesJoey Castillo2021-10-162-0/+112