Commit graph

39 commits

Author SHA1 Message Date
Joey Castillo 09f79f782f lis2dw: reasonable defaults when initializing 2022-02-19 14:05:38 -05:00
Joey Castillo 2670f611cc lis2dw: dump all fifo data in loop 2022-02-18 09:53:22 -05:00
Joey Castillo 75c98a6c97 tweaks to SPI test 2022-02-18 09:52:41 -05:00
Joey Castillo df2cc7e94f WIP accelerometer logging to flash 2022-02-18 00:05:57 -05:00
Joey Castillo 0c59c972e7 lis2dw: add FIFO support 2022-02-17 16:36:21 -05:00
Joey Castillo 0337d198ff SPI test: just read the chip ID 2022-02-17 14:28:53 -05:00
Joey Castillo 5fb8dabdd2 Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main 2022-01-27 14:28:46 -05:00
Joey Castillo 45aa04f4ac spi test: set first 4096 bytes to 0 2022-01-27 14:28:37 -05:00
Joey Castillo 3801ee6b19 you don't belong here 2022-01-27 11:24:51 -05:00
Alexsander Akers a0f8e9c8bc Implement buzzer methods with AudioContext API 2022-01-27 11:12:01 -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 a11275d84c watch library: implement SPI 2022-01-26 21:33:05 -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 c012a65ea2 accelerometer test face: hacks 2022-01-19 17:20:29 -05:00
Joey Castillo 669673fd4b accelerometer test: stream data to UART 2022-01-09 15:26:45 -05:00
Joey Castillo 496530c85c add driver, test app for LIS2DW accelerometer 2022-01-08 19:27:41 -05:00
Joey Castillo a8ab793799 add testing app 2022-01-06 14:58:50 -05:00
Willian Paixao d46cc407df
update makefile and pipeline workflow 2021-12-11 20:33:58 +01:00
Willian Paixao 095466c270
update gitgnore 2021-12-11 19:50:49 +01:00
Joey Castillo 027b2ef4a5 remove unnecessary .gitignore 2021-12-11 11:28:18 -05:00
Joey Castillo 762af872d2 fix missing prototype warnings 2021-12-10 12:00:26 -05:00
Joey Castillo 316e1f292c rename project files 2021-12-10 11:54:16 -05:00
Joey Castillo 36be251e89 lis2dh: add support for interrupt latching (stays active until cleared) 2021-12-01 09:41:48 -05:00
Joey Castillo c3095f7cfe lis2dh: accelerometer testing face 2021-11-30 20:20:21 -05:00
Joey Castillo 4ae46f907b lis2dh driver: add basic interrupt functionality 2021-11-30 19:33:49 -05:00
Joey Castillo 470544823b add LIS2DH accelerometer driver, test app 2021-11-27 13:32:33 -05:00
Joey Castillo f98bc9bb4e steps toward SPI support in watch library 2021-10-25 16:06:08 -04:00
Joey Castillo 38a2dff234 more accurate names for deep sleep and shallow sleep modes 2021-10-20 13:45:22 -04:00
Joey Castillo 4300dff616 launcher: first crack at low power 'screensaver' mode 2021-10-03 20:47:15 -04:00
Joey Castillo 15ae7ab84b add beep to starter app 2021-09-30 16:32:59 -04:00
Joey Castillo 20db34a9c0 add fractional beats to beat time app 2021-09-30 16:32:30 -04:00
Joey Castillo 1163041624 update existing apps to use new RTC API 2021-09-28 19:53:29 -04:00
Wesley Ellis b0703ec777 Beats time app + watch
Use BMP280 code as a base, but stripped down to bare bones.

Then added a new 'mode' for the current Swatch Internet Time (aka beats)
2021-09-25 17:37:46 -04:00
Joey Castillo a23901f843 final deep sleep refactor: retain RAM, call it shallow sleep mode 2021-09-23 14:57:30 -04:00
Joey Castillo 5ff4a88374 add a new deep sleep mode alongside backup mode 2021-09-18 14:50:20 -04:00
Joey Castillo ee7ae2d345 move buzzer demo to apps folder 2021-09-18 14:03:10 -04:00
Joey Castillo 07420e6ead move apps to subdirectory, add relative path support to Makefile 2021-09-16 15:40:01 -04:00