Commit graph

439 commits

Author SHA1 Message Date
joeycastillo d3e484dc98
Merge pull request #45 from a2/simulator-buzzer
Implement buzzer methods with AudioContext API
2022-01-27 12:02:51 -05:00
Joey Castillo 3801ee6b19 you don't belong here 2022-01-27 11:24:51 -05:00
Alexsander Akers cb8223217b Update main loop to fix reentrancy runtime errors 2022-01-27 11:12:01 -05:00
Alexsander Akers a0f8e9c8bc Implement buzzer methods with AudioContext API 2022-01-27 11:12:01 -05:00
Joey Castillo 14e4562b7a add SPI to the index 2022-01-27 10:51:15 -05:00
Joey Castillo 29fa605283 fix doxygen generation 2022-01-27 10:46:53 -05:00
Joey Castillo a26e6786ee fix spi test (again) 2022-01-27 10:45:01 -05:00
Joey Castillo 5e4dc9ae51 fix spi test 2022-01-27 09:17:58 -05:00
Joey Castillo 523a5d2f0b implement SPI flash chip 2022-01-26 22:40:49 -05:00
Joey Castillo b2dbc4feeb silence compiler warning 2022-01-26 22:15:53 -05:00
Joey Castillo a11275d84c watch library: implement SPI 2022-01-26 21:33:05 -05:00
Joey Castillo 1b1bba2de0 silence compiler warning 2022-01-26 21:04:56 -05:00
Joey Castillo fe5a3eecff Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2022-01-26 20:36:49 -05:00
Joey Castillo f036d6a515 PCB: add final temperature sensor board 2022-01-26 20:36:40 -05:00
Joey Castillo 5d5e5b125a watch face script: autopopulate year 2022-01-26 20:31:04 -05:00
joeycastillo 97da35da26
Merge pull request #47 from davidskeck/main
Added rough draft of watch_face script
2022-01-26 20:29:27 -05:00
Joey Castillo d65103b03b silence compiler warnings 2022-01-26 20:16:52 -05:00
Joey Castillo 0c78fdf535 watch library: implement UART 2022-01-26 19:31:49 -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
joeycastillo 725f17bfb6
Merge pull request #46 from a2/simulator-workflow
Add GitHub Workflow job to build and archive simulator
2022-01-25 18:59:40 -05:00
Alexsander Akers 2f1458bd46 Remove dangling if condition 2022-01-25 18:17:51 -05:00
Alexsander Akers b57c579c69 Don't compile starter-project or accelerometer-test
These apps have not been tested in the simulator runtime yet.
2022-01-25 18:16:31 -05:00
Alexsander Akers c313ea5911 Add GitHub Workflow job to build and archive simulator 2022-01-25 18:13:51 -05:00
joeycastillo bbda09e23f
Merge pull request #44 from a2/voltage-reference
Remove ADC_* defines in favor of hardware-specific mapping
2022-01-25 17:57:25 -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
Alexsander Akers 84b65cb699 Remove ADC_* defines in favor of hardware-specific mapping 2022-01-25 17:28:15 -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 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