Commit graph

141 commits

Author SHA1 Message Date
Joey Castillo f5be9755b6 respect countdown length when repeating 2022-02-19 21:19:15 -05:00
Joey Castillo b06357a193 repeating mode, disable readings when full 2022-02-19 21:12:24 -05:00
Joey Castillo 4cd86bff53 working data acquisition face! 2022-02-19 20:53:41 -05:00
Joey Castillo 1ce103b6f6 connect training data face to accelerometer 2022-02-19 16:41:35 -05:00
Joey Castillo 54f1873785 documentation and such 2022-02-19 14:22:23 -05:00
Joey Castillo 09f79f782f lis2dw: reasonable defaults when initializing 2022-02-19 14:05:38 -05:00
Joey Castillo 691c068e6e stuff parameters into the bits we're not using 2022-02-19 13:28:09 -05:00
Joey Castillo efde4190f1 movement: WIP app for capturing accelerometer data 2022-02-18 16:34:52 -05:00
Joey Castillo 8cba4516bb add additional watch face types to generator 2022-02-18 10:05:46 -05:00
Joey Castillo 4f29cf24f3 movement: move thermistor to 'sensor' watch faces 2022-02-17 14:47:47 -05:00
Joey Castillo 0fcc60e388 movement: add moon phase complication 2022-02-14 14:07:52 -05:00
Joey Castillo ee95229e19 world clock: store settings in backup register if possible 2022-02-13 11:25:28 -05:00
Joey Castillo 0bb267c702 movement: start time zone list at UTC 2022-02-13 11:25:28 -05:00
Joey Castillo 96017d6ec1 movement: add mechanism for watch faces to use backup registers 2022-02-13 11:25:28 -05:00
Joey Castillo b8cb6f3bcf movement: prevent invalid tick frequency from breaking scheduled tasks 2022-02-12 22:19:01 -05:00
Joey Castillo 108b9991d2 simulator: add geolocation support 2022-02-09 13:40:29 -05:00
Joey Castillo 275960be83 movement: make stopwatch work off-screen + in low energy mode 2022-02-06 15:05:28 -05:00
Joey Castillo 18302bf9c4 movement: add low battery warning to simple clock 2022-02-05 17:42:43 -05:00
Joey Castillo 505f692037 sunrise/sunset: align date at extreme latitudes 2022-02-05 16:06:02 -05:00
Joey Castillo 74e47f9857 sunrise/sunset: update display after sunrise/sunset 2022-02-05 15:13:50 -05:00
Joey Castillo 7096435738 sunrise/sunset: improve timeout behavior 2022-02-05 14:05:33 -05:00
Joey Castillo f4bfe45b7c sunrise/sunset: remove test locations 2022-02-05 13:54:02 -05:00
David Keck e33530e1d0
Added output to watch face script
changed `--author_name` to `--author-name` to match typical style of command line arguments
changed some function names and implementations to improve readability
changed to `sys.exit` instead of exit as `sys.exit` is recommended for use in programs and `exit` is intended for use in the interactive shell (this can cause issues for some terminal emulators)
2022-02-04 21:44:45 -06:00
Joey Castillo a3085cb136 Merge branch 'main' of github.com:joeycastillo/Sensor-Watch 2022-02-01 00:24:20 -05:00
Joey Castillo 658739c880 sunrise/sunset: deal with timezones, other improvements 2022-01-31 21:22:48 -08:00
Joey Castillo 7085f89bfa sunrise/sunset: always set the sign bit 2022-01-31 17:17:34 -08:00
Alexsander Akers a4cb3c8594 Adjust function semantics by "flipping" bit order 2022-01-27 12:06:06 -05:00
Alexsander Akers a559d089f1 Add new function to disable certain RTC periodic callbacks 2022-01-27 12:06:06 -05:00
Joey Castillo 5d5e5b125a watch face script: autopopulate year 2022-01-26 20:31:04 -05:00
David Keck c130f13bb8 minor typo fix 2022-01-26 19:15:16 -05:00
David Keck cc2696c71a added missing newlines to template files 2022-01-26 19:12:12 -05:00
David Keck d58908517b
Added license info to script 2022-01-26 19:07:51 -05:00
David Keck 23610430b3 Added rough draft of watch_face script to generate custom watch faces from template. Corrected template file's missing includes and incorrect memset placeholder. 2022-01-26 18:59:48 -05:00
Joey Castillo 71ea3b9de9 movement: add documentation mentioned in #42 2022-01-25 17:36:04 -05:00
Joey Castillo 2a59ae950f movement: add blinky face 2022-01-25 17:28:22 -05:00
Joey Castillo bcca6cc596 movement: remove blinky face 2022-01-25 17:27:46 -05:00
Joey Castillo f819a18791 movement: add template for watch face generator 2022-01-25 17:12:56 -05:00
Joey Castillo 34c7ecfd96 movement: move watch face includes to a separate file 2022-01-25 17:06:04 -05:00
Joey Castillo 2e345d9f66 movement: slight reorganization 2022-01-25 17:04:07 -05:00
Joey Castillo fcfb651c11 movement: add two faces to default build 2022-01-25 15:53:18 -05:00
Joey Castillo 249bfc183c movement: move beat time to clock folder 2022-01-25 15:39:04 -05:00
Alexsander Akers b8de35658f
Sensor Watch Simulator (#35)
* 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
2022-01-25 15:03:22 -05:00
Joey Castillo 9e24f6c336 movement: add blinky face 2022-01-23 13:04:38 -05:00
Joey Castillo 6ca8c78e0d movement: didn't mean to add sunrise/sunset by default 2022-01-21 12:06:06 -05:00
Joey Castillo a21ad54aac movement: simple UI for entering wearer location 2022-01-21 11:25:43 -05:00
Joey Castillo 68f17c8970 movement: add time zone conversion in sunrise/sunset face 2022-01-21 00:11:43 -05:00
Joey Castillo 99c518e421 movement: long press on MODE always dismisses the active face 2022-01-19 14:32:33 -05:00
joeycastillo a499cebc3c
Merge pull request #38 from davidskeck/patch-2
Simple Clock: Update to signal exactly on the hour
2022-01-19 14:14:39 -05:00
David Keck caf41d28dd
Reset selection to 0 on resign from setting state
I believe this also needs to be set back to 0 so the setting screen will resume at minutes, not potentially at settings on next run.
2022-01-19 12:12:43 -06:00
David Keck 7de76465d7
Simple Clock: Update to signal exactly on the hour
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.
2022-01-19 12:06:12 -06:00