Commit graph

453 commits

Author SHA1 Message Date
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 3efdcd78a1 fix out of bounds access when position != 0 2022-01-19 17:22:31 -05:00
Joey Castillo c012a65ea2 accelerometer test face: hacks 2022-01-19 17:20:29 -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
joeycastillo e0168c6de2
Merge pull request #39 from davidskeck/patch-3
Reset selection to 0 on resign from setting state
2022-01-19 13:24:58 -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
Joey Castillo 138b3d0c5e movement: reset tick to 1 Hz between watch faces (fixes #36) 2022-01-19 11:16:10 -05:00
joeycastillo fb71be55ee
add movement to the workflow 2022-01-19 09:23:21 -05:00
joeycastillo 1ae83e8fd4
Merge pull request #37 from davidskeck/patch-2
Countdown: Added ability to reset to default timer value
2022-01-19 09:15:47 -05:00
David Keck 01df0ea231
Changed reset mode to setting instead of waiting
After thinking about this, I think it is more intuitive that this would only apply when in setting mode.
2022-01-18 22:53:25 -05:00
David Keck 3d5ec1adda
Added ability to reset to default timer value
Added option to reset to the default timer value when in waiting mode and on long press of alarm. This was useful to me as I sometimes accidentally increase the timer value and then would need to loop around to get back to the default value.
2022-01-18 22:29:04 -05:00
Joey Castillo 903ae6eff8 movement: sunrise/sunset face documentation 2022-01-16 09:39:18 -05:00
Joey Castillo 010bb3be95 sunrise/sunset face: no need to update this every second 2022-01-15 19:35:47 -05:00
Joey Castillo 5fccc24c98 Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2022-01-15 19:27:24 -05:00
Joey Castillo baf25aaa7a movement: add sunrise/sunset face 2022-01-15 19:23:49 -05:00
joeycastillo 3be8b03c4f
Merge pull request #29 from tahnok/countdown
Countdown
2022-01-15 19:01:06 -05:00
Wesley Ellis 02c84dfd97 Add Countdown Face
A simple countdown face using movement_schedule_background_task
so that it rings, even if the another face is active

Limited to 99 minutes and 59 seconds so that the watch isn't staying
out of deep sleep for too long
2022-01-15 17:49:00 -05:00
Joey Castillo 41eaa9c1c0 add MIT license text to movement files 2022-01-15 14:53:56 -05:00
Joey Castillo 19fd519209 add gettimeofday function 2022-01-15 12:26:17 -05:00
Joey Castillo 0c68b9fba5 motion board express 2022-01-10 19:12:13 -05:00
Joey Castillo c356a81bbd Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2022-01-09 15:26:58 -05:00
Joey Castillo 669673fd4b accelerometer test: stream data to UART 2022-01-09 15:26:45 -05:00
Joey Castillo 68e792f9b7 lis2dw: add low power / low noise mode 2022-01-09 12:25:56 -05:00
Joey Castillo a102675522 set correct registers for range and rate 2022-01-09 12:12:41 -05:00
Joey Castillo 54762248a3 use lowest power LP mode 2022-01-09 12:06:44 -05:00
Joey Castillo 71c2eaa3f9 shuffle uart pins for new accelerometer board 2022-01-09 12:05:21 -05:00
Joey Castillo 5ceec26d5a start in low power mode 2022-01-09 12:02:58 -05:00
Joey Castillo 1ea476ca24 remove unused enums 2022-01-09 12:02:26 -05:00
joeycastillo d566a68da5
fix filename capitalization 2022-01-08 20:30:02 -05:00
Joey Castillo 496530c85c add driver, test app for LIS2DW accelerometer 2022-01-08 19:27:41 -05:00
Joey Castillo 6be308f88d Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2022-01-06 18:19:41 -05:00
Joey Castillo 1d5d2db823 new simulated screens 2022-01-06 18:19:29 -05:00
Joey Castillo a8ab793799 add testing app 2022-01-06 14:58:50 -05:00
Joey Castillo c5ecf1dabd Merge branch 'main' of https://github.com/joeycastillo/Sensor-Watch into main 2022-01-04 15:38:42 -05:00
Joey Castillo 16ac7534c4 new temperature board rev (+20 mils to flex connector) 2022-01-04 15:38:35 -05:00
Wesley Ellis 37ff7b9c26 Add movement_cancel_background_task
Provide a way for a scheduled background task to be cancelled
2022-01-01 14:13:04 -05:00
Joey Castillo 311cfdb5f4 rearrange hello face, documentation reasons 2021-12-22 10:02:48 -06:00
Joey Castillo 9628379382 add comments to 'hello there' face 2021-12-21 12:58:05 -06:00
Joey Castillo 221e41f58c add 'hello there' face, demo for documentation 2021-12-21 12:30:20 -06:00
Joey Castillo 4862472d1d Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2021-12-21 10:05:40 -06:00
Joey Castillo 6256e709bf movement: add hourly signal to simple clock face 2021-12-21 10:05:06 -06:00
Joey Castillo b341227797 add utility function to check if TCC is enabled 2021-12-21 10:01:33 -06:00
Joey Castillo 1a4612f259 add documentation for watch face index 2021-12-21 08:20:08 -06:00
Joey Castillo 60fe969191 Movement: give watch faces their index at setup time 2021-12-20 17:02:17 -06:00