]> git.earman.xyz Git - sensor-watch.git/log
sensor-watch.git
4 years agoUpdated function brief
David Keck [Wed, 23 Feb 2022 03:37:16 +0000 (21:37 -0600)]
Updated function brief

4 years agolis2dw: add FIFO support
Joey Castillo [Thu, 17 Feb 2022 21:36:21 +0000 (16:36 -0500)]
lis2dw: add FIFO support

4 years agono need to build lis2dh driver anymore
Joey Castillo [Thu, 17 Feb 2022 19:48:40 +0000 (14:48 -0500)]
no need to build lis2dh driver anymore

4 years agomovement: move thermistor to 'sensor' watch faces
Joey Castillo [Thu, 17 Feb 2022 19:44:40 +0000 (14:44 -0500)]
movement: move thermistor to 'sensor' watch faces

4 years agoSPI test: just read the chip ID
Joey Castillo [Thu, 17 Feb 2022 19:28:25 +0000 (14:28 -0500)]
SPI test: just read the chip ID

4 years agomove pins.h include to watch.h
Joey Castillo [Thu, 17 Feb 2022 16:59:19 +0000 (11:59 -0500)]
move pins.h include to watch.h

4 years agosensor boards: add UART breakout
Joey Castillo [Thu, 17 Feb 2022 15:56:47 +0000 (10:56 -0500)]
sensor boards: add UART breakout

4 years agomovement: add moon phase complication
Joey Castillo [Mon, 14 Feb 2022 19:00:35 +0000 (14:00 -0500)]
movement: add moon phase complication

4 years agoremove obsolete low battery function from simulator
Joey Castillo [Mon, 14 Feb 2022 04:32:17 +0000 (23:32 -0500)]
remove obsolete low battery function from simulator

4 years agoon second thought: keep BOD33 disabled in sleep mode
Joey Castillo [Sun, 13 Feb 2022 21:04:21 +0000 (16:04 -0500)]
on second thought: keep BOD33 disabled in sleep mode

4 years agoenable high-efficiency low power regulator
Joey Castillo [Sun, 13 Feb 2022 19:15:00 +0000 (14:15 -0500)]
enable high-efficiency low power regulator

4 years agoremove obsolete low battery check
Joey Castillo [Sun, 13 Feb 2022 19:00:50 +0000 (14:00 -0500)]
remove obsolete low battery check

4 years agoalways turn off PA20 at boot
Joey Castillo [Sun, 13 Feb 2022 18:59:22 +0000 (13:59 -0500)]
always turn off PA20 at boot

4 years agosleep / deepsleep: update low power numbers
Joey Castillo [Sun, 13 Feb 2022 04:10:49 +0000 (23:10 -0500)]
sleep / deepsleep: update low power numbers

4 years agoworld clock: store settings in backup register if possible
Joey Castillo [Sun, 13 Feb 2022 03:52:26 +0000 (22:52 -0500)]
world clock: store settings in backup register if possible

4 years agomovement: start time zone list at UTC
Joey Castillo [Sun, 13 Feb 2022 03:34:36 +0000 (22:34 -0500)]
movement: start time zone list at UTC

4 years agomovement: add mechanism for watch faces to use backup registers
Joey Castillo [Sun, 13 Feb 2022 03:23:13 +0000 (22:23 -0500)]
movement: add mechanism for watch faces to use backup registers

4 years agomovement: prevent invalid tick frequency from breaking scheduled tasks
Joey Castillo [Sun, 13 Feb 2022 03:19:01 +0000 (22:19 -0500)]
movement: prevent invalid tick frequency from breaking scheduled tasks

4 years agoosc32kctrl: implement CONF_SLCDCTRL_SRC setting
Joey Castillo [Fri, 11 Feb 2022 17:22:11 +0000 (12:22 -0500)]
osc32kctrl: implement CONF_SLCDCTRL_SRC setting

4 years agoslcd: lower LCD refresh frequency (~57Hz -> ~34Hz)
Joey Castillo [Fri, 11 Feb 2022 17:20:50 +0000 (12:20 -0500)]
slcd: lower LCD refresh frequency (~57Hz -> ~34Hz)

4 years agoslcd: lower reference refresh frequency (saves energy)
Joey Castillo [Fri, 11 Feb 2022 17:17:10 +0000 (12:17 -0500)]
slcd: lower reference refresh frequency (saves energy)

4 years agortc: disable debouncing on external wake inputs
Joey Castillo [Fri, 11 Feb 2022 17:16:03 +0000 (12:16 -0500)]
rtc: disable debouncing on external wake inputs

4 years agoeic: clock from OSCULP32K for power savings
Joey Castillo [Fri, 11 Feb 2022 14:13:51 +0000 (09:13 -0500)]
eic: clock from OSCULP32K for power savings

4 years agosimulator: add geolocation support
Joey Castillo [Wed, 9 Feb 2022 18:40:29 +0000 (13:40 -0500)]
simulator: add geolocation support

4 years agoMerge pull request #53 from joeycastillo/stopwatch-improvements
joeycastillo [Mon, 7 Feb 2022 15:19:47 +0000 (10:19 -0500)]
Merge pull request #53 from joeycastillo/stopwatch-improvements

Make stopwatch work off-screen and in low energy mode

4 years agomovement: make stopwatch work off-screen + in low energy mode
Joey Castillo [Sun, 6 Feb 2022 20:05:28 +0000 (15:05 -0500)]
movement: make stopwatch work off-screen + in low energy mode

4 years agoutility: add function for formatting a duration in days + HMS
Joey Castillo [Sun, 6 Feb 2022 20:00:58 +0000 (15:00 -0500)]
utility: add function for formatting a duration in days + HMS

4 years agotest board for NFC with onboard antenna
Joey Castillo [Sun, 6 Feb 2022 17:00:58 +0000 (12:00 -0500)]
test board for NFC with onboard antenna

4 years agomovement: add low battery warning to simple clock
Joey Castillo [Sat, 5 Feb 2022 22:42:43 +0000 (17:42 -0500)]
movement: add low battery warning to simple clock

4 years agoremove debug statements
Joey Castillo [Sat, 5 Feb 2022 22:33:34 +0000 (17:33 -0500)]
remove debug statements

4 years agosunrise/sunset: align date at extreme latitudes
Joey Castillo [Sat, 5 Feb 2022 21:06:02 +0000 (16:06 -0500)]
sunrise/sunset: align date at extreme latitudes

4 years agosunrise/sunset: update display after sunrise/sunset
Joey Castillo [Sat, 5 Feb 2022 20:13:50 +0000 (15:13 -0500)]
sunrise/sunset: update display after sunrise/sunset

4 years agosunrise/sunset: improve timeout behavior
Joey Castillo [Sat, 5 Feb 2022 19:05:33 +0000 (14:05 -0500)]
sunrise/sunset: improve timeout behavior

4 years agosunrise/sunset: remove test locations
Joey Castillo [Sat, 5 Feb 2022 18:54:02 +0000 (13:54 -0500)]
sunrise/sunset: remove test locations

4 years agofix paste layer on some sensor boards
Joey Castillo [Sat, 5 Feb 2022 18:37:19 +0000 (13:37 -0500)]
fix paste layer on some sensor boards

4 years agoMerge pull request #49 from davidskeck/patch-4
joeycastillo [Sat, 5 Feb 2022 18:36:47 +0000 (13:36 -0500)]
Merge pull request #49 from davidskeck/patch-4

Added output to watch face script

4 years agoAdded output to watch face script
David Keck [Sat, 5 Feb 2022 03:44:45 +0000 (21:44 -0600)]
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)

4 years agoMerge branch 'main' of github.com:joeycastillo/Sensor-Watch
Joey Castillo [Tue, 1 Feb 2022 05:24:20 +0000 (00:24 -0500)]
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch

4 years agosunrise/sunset: deal with timezones, other improvements
Joey Castillo [Tue, 1 Feb 2022 05:22:48 +0000 (21:22 -0800)]
sunrise/sunset: deal with timezones, other improvements

4 years agoadd function for converting to 12 hour time
Joey Castillo [Tue, 1 Feb 2022 05:17:10 +0000 (21:17 -0800)]
add function for converting to 12 hour time

4 years agosunrise/sunset: always set the sign bit
Joey Castillo [Tue, 1 Feb 2022 01:17:34 +0000 (17:17 -0800)]
sunrise/sunset: always set the sign bit

4 years agoMerge pull request #43 from a2/rtc-disable-matching-mask
joeycastillo [Thu, 27 Jan 2022 19:33:45 +0000 (14:33 -0500)]
Merge pull request #43 from a2/rtc-disable-matching-mask

Add new function to disable certain RTC periodic callbacks

4 years agoMerge branch 'main' of github.com:joeycastillo/Sensor-Watch into main
Joey Castillo [Thu, 27 Jan 2022 19:28:46 +0000 (14:28 -0500)]
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main

4 years agospi test: set first 4096 bytes to 0
Joey Castillo [Thu, 27 Jan 2022 19:28:37 +0000 (14:28 -0500)]
spi test: set first 4096 bytes to 0

4 years agoAdjust function semantics by "flipping" bit order
Alexsander Akers [Thu, 27 Jan 2022 16:23:27 +0000 (11:23 -0500)]
Adjust function semantics by "flipping" bit order

4 years agoAdd new function to disable certain RTC periodic callbacks
Alexsander Akers [Thu, 27 Jan 2022 16:23:14 +0000 (11:23 -0500)]
Add new function to disable certain RTC periodic callbacks

4 years agoMerge pull request #45 from a2/simulator-buzzer
joeycastillo [Thu, 27 Jan 2022 17:02:51 +0000 (12:02 -0500)]
Merge pull request #45 from a2/simulator-buzzer

Implement buzzer methods with AudioContext API

4 years agoyou don't belong here
Joey Castillo [Thu, 27 Jan 2022 16:24:25 +0000 (11:24 -0500)]
you don't belong here

4 years agoUpdate main loop to fix reentrancy runtime errors
Alexsander Akers [Thu, 27 Jan 2022 01:24:15 +0000 (20:24 -0500)]
Update main loop to fix reentrancy runtime errors

4 years agoImplement buzzer methods with AudioContext API
Alexsander Akers [Thu, 27 Jan 2022 16:12:01 +0000 (11:12 -0500)]
Implement buzzer methods with AudioContext API

4 years agoadd SPI to the index
Joey Castillo [Thu, 27 Jan 2022 15:51:15 +0000 (10:51 -0500)]
add SPI to the index

4 years agofix doxygen generation
Joey Castillo [Thu, 27 Jan 2022 15:46:53 +0000 (10:46 -0500)]
fix doxygen generation

4 years agofix spi test (again)
Joey Castillo [Thu, 27 Jan 2022 15:45:01 +0000 (10:45 -0500)]
fix spi test (again)

4 years agofix spi test
Joey Castillo [Thu, 27 Jan 2022 14:17:58 +0000 (09:17 -0500)]
fix spi test

4 years agoimplement SPI flash chip
Joey Castillo [Thu, 27 Jan 2022 03:39:09 +0000 (22:39 -0500)]
implement SPI flash chip

4 years agosilence compiler warning
Joey Castillo [Thu, 27 Jan 2022 03:15:53 +0000 (22:15 -0500)]
silence compiler warning

4 years agowatch library: implement SPI
Joey Castillo [Thu, 27 Jan 2022 02:32:55 +0000 (21:32 -0500)]
watch library: implement SPI

4 years agosilence compiler warning
Joey Castillo [Thu, 27 Jan 2022 02:04:56 +0000 (21:04 -0500)]
silence compiler warning

4 years agoMerge branch 'main' of github.com:joeycastillo/Sensor-Watch into main
Joey Castillo [Thu, 27 Jan 2022 01:36:49 +0000 (20:36 -0500)]
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main

4 years agoPCB: add final temperature sensor board
Joey Castillo [Thu, 27 Jan 2022 01:36:40 +0000 (20:36 -0500)]
PCB: add final temperature sensor board

4 years agowatch face script: autopopulate year
Joey Castillo [Thu, 27 Jan 2022 01:31:04 +0000 (20:31 -0500)]
watch face script: autopopulate year

4 years agoMerge pull request #47 from davidskeck/main
joeycastillo [Thu, 27 Jan 2022 01:29:27 +0000 (20:29 -0500)]
Merge pull request #47 from davidskeck/main

Added rough draft of watch_face script

4 years agosilence compiler warnings
Joey Castillo [Thu, 27 Jan 2022 01:16:52 +0000 (20:16 -0500)]
silence compiler warnings

4 years agowatch library: implement UART
Joey Castillo [Thu, 27 Jan 2022 00:31:49 +0000 (19:31 -0500)]
watch library: implement UART

4 years agominor typo fix
David Keck [Thu, 27 Jan 2022 00:15:16 +0000 (19:15 -0500)]
minor typo fix

4 years agoadded missing newlines to template files
David Keck [Thu, 27 Jan 2022 00:12:12 +0000 (19:12 -0500)]
added missing newlines to template files

4 years agoAdded license info to script
David Keck [Thu, 27 Jan 2022 00:07:51 +0000 (19:07 -0500)]
Added license info to script

4 years agoAdded rough draft of watch_face script to generate custom watch faces from template...
David Keck [Wed, 26 Jan 2022 23:59:48 +0000 (18:59 -0500)]
Added rough draft of watch_face script to generate custom watch faces from template. Corrected template file's missing includes and incorrect memset placeholder.

4 years agoMerge pull request #46 from a2/simulator-workflow
joeycastillo [Tue, 25 Jan 2022 23:59:40 +0000 (18:59 -0500)]
Merge pull request #46 from a2/simulator-workflow

Add GitHub Workflow job to build and archive simulator

4 years agoRemove dangling `if` condition
Alexsander Akers [Tue, 25 Jan 2022 23:17:51 +0000 (18:17 -0500)]
Remove dangling `if` condition

4 years agoDon't compile starter-project or accelerometer-test
Alexsander Akers [Tue, 25 Jan 2022 23:16:31 +0000 (18:16 -0500)]
Don't compile starter-project or accelerometer-test

These apps have not been tested in the simulator runtime yet.

4 years agoAdd GitHub Workflow job to build and archive simulator
Alexsander Akers [Tue, 25 Jan 2022 23:09:56 +0000 (18:09 -0500)]
Add GitHub Workflow job to build and archive simulator

4 years agoMerge pull request #44 from a2/voltage-reference
joeycastillo [Tue, 25 Jan 2022 22:57:25 +0000 (17:57 -0500)]
Merge pull request #44 from a2/voltage-reference

Remove ADC_* defines in favor of hardware-specific mapping

4 years agomovement: add documentation mentioned in #42
Joey Castillo [Tue, 25 Jan 2022 22:36:04 +0000 (17:36 -0500)]
movement: add documentation mentioned in #42

4 years agomovement: add blinky face
Joey Castillo [Tue, 25 Jan 2022 22:28:22 +0000 (17:28 -0500)]
movement: add blinky face

4 years agoRemove ADC_* defines in favor of hardware-specific mapping
Alexsander Akers [Tue, 25 Jan 2022 00:06:54 +0000 (19:06 -0500)]
Remove ADC_* defines in favor of hardware-specific mapping

4 years agomovement: remove blinky face
Joey Castillo [Tue, 25 Jan 2022 22:27:40 +0000 (17:27 -0500)]
movement: remove blinky face

4 years agomovement: add template for watch face generator
Joey Castillo [Tue, 25 Jan 2022 22:12:56 +0000 (17:12 -0500)]
movement: add template for watch face generator

4 years agomovement: move watch face includes to a separate file
Joey Castillo [Tue, 25 Jan 2022 22:06:04 +0000 (17:06 -0500)]
movement: move watch face includes to a separate file

4 years agomovement: slight reorganization
Joey Castillo [Tue, 25 Jan 2022 22:04:07 +0000 (17:04 -0500)]
movement: slight reorganization

4 years agomovement: add two faces to default build
Joey Castillo [Tue, 25 Jan 2022 20:53:18 +0000 (15:53 -0500)]
movement: add two faces to default build

4 years agomovement: move beat time to clock folder
Joey Castillo [Tue, 25 Jan 2022 20:39:04 +0000 (15:39 -0500)]
movement: move beat time to clock folder

4 years agoSensor Watch Simulator (#35)
Alexsander Akers [Tue, 25 Jan 2022 20:03:22 +0000 (15:03 -0500)]
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

4 years agomovement: add blinky face
Joey Castillo [Sun, 23 Jan 2022 18:02:18 +0000 (13:02 -0500)]
movement: add blinky face

4 years agomovement: didn't mean to add sunrise/sunset by default
Joey Castillo [Fri, 21 Jan 2022 17:06:06 +0000 (12:06 -0500)]
movement: didn't mean to add sunrise/sunset by default

4 years agomovement: simple UI for entering wearer location
Joey Castillo [Fri, 21 Jan 2022 16:25:43 +0000 (11:25 -0500)]
movement: simple UI for entering wearer location

4 years agomovement: add time zone conversion in sunrise/sunset face
Joey Castillo [Fri, 21 Jan 2022 05:11:28 +0000 (00:11 -0500)]
movement: add time zone conversion in sunrise/sunset face

4 years agofix out of bounds access when position != 0
Joey Castillo [Wed, 19 Jan 2022 22:22:31 +0000 (17:22 -0500)]
fix out of bounds access when position != 0

4 years agoaccelerometer test face: hacks
Joey Castillo [Wed, 19 Jan 2022 22:20:17 +0000 (17:20 -0500)]
accelerometer test face: hacks

4 years agomovement: long press on MODE always dismisses the active face
Joey Castillo [Wed, 19 Jan 2022 19:32:33 +0000 (14:32 -0500)]
movement: long press on MODE always dismisses the active face

4 years agoMerge pull request #38 from davidskeck/patch-2
joeycastillo [Wed, 19 Jan 2022 19:14:39 +0000 (14:14 -0500)]
Merge pull request #38 from davidskeck/patch-2

Simple Clock: Update to signal exactly on the hour

4 years agoMerge pull request #39 from davidskeck/patch-3
joeycastillo [Wed, 19 Jan 2022 18:24:58 +0000 (13:24 -0500)]
Merge pull request #39 from davidskeck/patch-3

Reset selection to 0 on resign from setting state

4 years agoReset selection to 0 on resign from setting state
David Keck [Wed, 19 Jan 2022 18:12:43 +0000 (12:12 -0600)]
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.

4 years agoSimple Clock: Update to signal exactly on the hour
David Keck [Wed, 19 Jan 2022 18:06:12 +0000 (12:06 -0600)]
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.

4 years agomovement: reset tick to 1 Hz between watch faces (fixes #36)
Joey Castillo [Wed, 19 Jan 2022 16:16:10 +0000 (11:16 -0500)]
movement: reset tick to 1 Hz between watch faces (fixes #36)

4 years agoadd movement to the workflow
joeycastillo [Wed, 19 Jan 2022 14:23:21 +0000 (09:23 -0500)]
add movement to the workflow

4 years agoMerge pull request #37 from davidskeck/patch-2
joeycastillo [Wed, 19 Jan 2022 14:15:47 +0000 (09:15 -0500)]
Merge pull request #37 from davidskeck/patch-2

Countdown: Added ability to reset to default timer value

4 years agoChanged reset mode to setting instead of waiting
David Keck [Wed, 19 Jan 2022 03:53:25 +0000 (22:53 -0500)]
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.

4 years agoAdded ability to reset to default timer value
David Keck [Wed, 19 Jan 2022 03:29:04 +0000 (22:29 -0500)]
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.

4 years agomovement: sunrise/sunset face documentation
Joey Castillo [Sun, 16 Jan 2022 14:39:18 +0000 (09:39 -0500)]
movement: sunrise/sunset face documentation