]> git.earman.xyz Git - sensor-watch.git/log
sensor-watch.git
22 months agonew name for irq handlers
joeycastillo [Thu, 19 Sep 2024 01:28:55 +0000 (21:28 -0400)]
new name for irq handlers

22 months agofirst build of Second Movement with two watch faces
joeycastillo [Wed, 18 Sep 2024 22:22:33 +0000 (18:22 -0400)]
first build of Second Movement with two watch faces

22 months agorestore buzzer sequence functionality
joeycastillo [Wed, 18 Sep 2024 22:21:35 +0000 (18:21 -0400)]
restore buzzer sequence functionality

22 months agoremove dependency on Atmel HRI in storage module
joeycastillo [Wed, 18 Sep 2024 21:44:14 +0000 (17:44 -0400)]
remove dependency on Atmel HRI in storage module

22 months agobring in deep sleep / external wake functions
joeycastillo [Wed, 18 Sep 2024 21:37:20 +0000 (17:37 -0400)]
bring in deep sleep / external wake functions

22 months agoclean up location of buzzer functions, notes
joeycastillo [Wed, 18 Sep 2024 21:25:41 +0000 (17:25 -0400)]
clean up location of buzzer functions, notes

22 months agosimpler USB CDC with gossamer / yield (no need for TC0/TC1)
joeycastillo [Wed, 18 Sep 2024 21:14:06 +0000 (17:14 -0400)]
simpler USB CDC with gossamer / yield (no need for TC0/TC1)

22 months agouse gossamer GPIO calls here
joeycastillo [Wed, 18 Sep 2024 21:13:11 +0000 (17:13 -0400)]
use gossamer GPIO calls here

22 months agoremove ASF calls for TRNG
joeycastillo [Wed, 18 Sep 2024 21:09:20 +0000 (17:09 -0400)]
remove ASF calls for TRNG

22 months agoclean up location of some private functions
joeycastillo [Wed, 18 Sep 2024 21:05:10 +0000 (17:05 -0400)]
clean up location of some private functions

22 months agobump gossamer commit
joeycastillo [Wed, 18 Sep 2024 20:53:27 +0000 (16:53 -0400)]
bump gossamer commit

22 months agoport ADC functions to gossamer
joeycastillo [Wed, 18 Sep 2024 20:10:12 +0000 (16:10 -0400)]
port ADC functions to gossamer

22 months agoport SLCD to gossamer, add new string display options
joeycastillo [Wed, 18 Sep 2024 20:04:55 +0000 (16:04 -0400)]
port SLCD to gossamer, add new string display options

22 months agoport external interrupts to gossamer framework
joeycastillo [Wed, 18 Sep 2024 19:29:31 +0000 (15:29 -0400)]
port external interrupts to gossamer framework

22 months agouse #pragma once
joeycastillo [Wed, 18 Sep 2024 19:12:58 +0000 (15:12 -0400)]
use #pragma once

22 months agobring in RTC functionality
joeycastillo [Wed, 18 Sep 2024 19:06:38 +0000 (15:06 -0400)]
bring in RTC functionality

22 months agoconsolidate buzzer and LED into TCC file
joeycastillo [Wed, 18 Sep 2024 18:53:46 +0000 (14:53 -0400)]
consolidate buzzer and LED into TCC file

22 months agoport buzzer and LED functions to gossamer framework
joeycastillo [Wed, 18 Sep 2024 18:47:53 +0000 (14:47 -0400)]
port buzzer and LED functions to gossamer framework

22 months agoport GPIO functions to new framework
joeycastillo [Wed, 18 Sep 2024 18:33:07 +0000 (14:33 -0400)]
port GPIO functions to new framework

22 months agobump submodules
joeycastillo [Wed, 18 Sep 2024 18:22:16 +0000 (14:22 -0400)]
bump submodules

22 months agoremove ASF code, config
joeycastillo [Wed, 18 Sep 2024 17:56:49 +0000 (13:56 -0400)]
remove ASF code, config

22 months agolet's begin
joeycastillo [Wed, 18 Sep 2024 17:47:35 +0000 (13:47 -0400)]
let's begin

22 months agoremove watch_app
joeycastillo [Wed, 18 Sep 2024 17:19:52 +0000 (13:19 -0400)]
remove watch_app

22 months agoremove old rules, build rules
joeycastillo [Wed, 18 Sep 2024 17:14:00 +0000 (13:14 -0400)]
remove old rules, build rules

22 months agoupdate Doxygen for Second Movement
joeycastillo [Wed, 18 Sep 2024 17:04:43 +0000 (13:04 -0400)]
update Doxygen for Second Movement

22 months agorename test app to app.c for clarity
joeycastillo [Wed, 18 Sep 2024 16:52:30 +0000 (12:52 -0400)]
rename test app to app.c for clarity

22 months agodisable simulator build
joeycastillo [Wed, 18 Sep 2024 13:50:00 +0000 (09:50 -0400)]
disable simulator build

22 months agopoint build action to new target
joeycastillo [Wed, 18 Sep 2024 13:40:18 +0000 (09:40 -0400)]
point build action to new target

22 months agominimal blinky sketch
joeycastillo [Wed, 18 Sep 2024 12:56:47 +0000 (08:56 -0400)]
minimal blinky sketch

22 months agoadd gossamer submodule
joeycastillo [Wed, 18 Sep 2024 12:08:45 +0000 (08:08 -0400)]
add gossamer submodule

22 months agofork Sensor-Watch to second-movement; remove non-Movement related files
joeycastillo [Wed, 18 Sep 2024 12:07:06 +0000 (08:07 -0400)]
fork Sensor-Watch to second-movement; remove non-Movement related files

22 months agoSmallchess face (#272)
Jeremy O'Brien [Wed, 18 Sep 2024 02:36:34 +0000 (22:36 -0400)]
Smallchess face (#272)

* smallchess face

* use correct game-state modifying board move function

* make show last work after undo

* use SCL_Game->ply instead of board[ply_byte]

* beep when cpu is done computing a move

* increase engine strength to ply 3

* match ply type and use the local variable where available

* fix warnings

* add doc to smallchess face

* smallchess: fix compile warnings

* smallchess: move smallchesslib.h to movement/lib

22 months agosilence warnings in butterfly_game_face
joeycastillo [Wed, 18 Sep 2024 02:27:43 +0000 (22:27 -0400)]
silence warnings in butterfly_game_face

22 months agosilence warnings in wareki_face
joeycastillo [Wed, 18 Sep 2024 02:19:22 +0000 (22:19 -0400)]
silence warnings in wareki_face

22 months agoAdd Butterfly game face (#338)
Hugo Chargois [Wed, 18 Sep 2024 02:04:00 +0000 (04:04 +0200)]
Add Butterfly game face (#338)

22 months agoadd wareki_face for japanese user (#351)
kbc-yam [Wed, 18 Sep 2024 02:00:44 +0000 (11:00 +0900)]
add wareki_face for japanese user (#351)

22 months agoAdd min/max temperature watch face (#335)
MarkBlyth [Wed, 18 Sep 2024 01:54:33 +0000 (02:54 +0100)]
Add min/max temperature watch face (#335)

22 months agoMetronome Complication (#303)
Austoria [Wed, 18 Sep 2024 01:46:20 +0000 (21:46 -0400)]
Metronome Complication (#303)

* Metronome Complication

A simple metronome complication that allows user to set BPM, toggle sound, and set counts per measure.

* silence warnings in metronome_face

* avoid mode button in metronome settings, other tweaks

---------

Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
22 months agoFace for tracking the menstrual cycle (#250)
jokomo24 [Wed, 18 Sep 2024 00:55:50 +0000 (02:55 +0200)]
Face for tracking the menstrual cycle (#250)

Authored-by: jokomo <jokomo@parallels-ubuntu18.04>
22 months agosilence warning in beeps_face
joeycastillo [Wed, 18 Sep 2024 00:46:00 +0000 (20:46 -0400)]
silence warning in beeps_face

22 months agoadd accelerometer interrupt counter (#452)
Jose Castillo [Wed, 18 Sep 2024 00:38:09 +0000 (20:38 -0400)]
add accelerometer interrupt counter (#452)

22 months agoMerge branch 'next' - new faces before the freeze
Matheus Afonso Martins Moreira [Tue, 17 Sep 2024 20:36:40 +0000 (17:36 -0300)]
Merge branch 'next' - new faces before the freeze

Merge the next branch containing numerous new sensor watch faces
as well as some new features. Not all of them made it in the end
and we even had to revert improvements merged in last next due to
issues that weren't found during testing. Still, I am very proud
to be merging in and closing over 20 pull requests.

I believe the project is in the best possible shape it can be
before the movement 2.0 refactor.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-on-hardware-by: David Volovskiy <devolov@gmail.com>
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/469

22 months agoRevert PR #268 - add daylight savings time toggle
Matheus Afonso Martins Moreira [Tue, 17 Sep 2024 20:09:02 +0000 (17:09 -0300)]
Revert PR #268 - add daylight savings time toggle

The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit 5a8a49a8c77d6d5ba0f46f0e5b51dec2daba46db, reversing
changes made to bfadb81e82dfe47c4445ce7978d9dbc3b4706808.

22 months agoRevert PR #470 - fixes world_clock2 face
Matheus Afonso Martins Moreira [Tue, 17 Sep 2024 20:19:05 +0000 (17:19 -0300)]
Revert PR #470 - fixes world_clock2 face

The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit 3c86a42aa83356735be2bd84b7027b156e8d3a2c, reversing
changes made to be969c4deb144280b59d0293cc45dc3443b096cf.

22 months agoRevert PR #470 - implement automatic DST toggling
Matheus Afonso Martins Moreira [Tue, 17 Sep 2024 20:08:32 +0000 (17:08 -0300)]
Revert PR #470 - implement automatic DST toggling

The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit ac5bf8cfce67cdb5662aeea618c2eb9511f0d190, reversing
changes made to 5a8a49a8c77d6d5ba0f46f0e5b51dec2daba46db.

22 months agoRevert PR #471 - add DST to sunrise/sunset
Matheus Afonso Martins Moreira [Tue, 17 Sep 2024 20:02:16 +0000 (17:02 -0300)]
Revert PR #471 - add DST to sunrise/sunset

The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit 0cc28b9811e76de3dc2cc2919d5309cfa48edfeb, reversing
changes made to 337864eb543c9b5cd83667ab0eafb476f63af54c.

22 months agofaces/clock: clear segments if not in 024h mode
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 18:34:19 +0000 (15:34 -0300)]
faces/clock: clear segments if not in 024h mode

There was an issue where the clock's display would remain in 024h mode
even after switching back to 12h/24h mode because it only took into
account the leading zero bit, whose value is meaningless unless the
24h mode bit is also set.

The issue is fixed by taking both bits into account.

Closes #476.

Reported-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476

22 months agofaces/simple_clock: clear segments if not in 024h
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 17:50:42 +0000 (14:50 -0300)]
faces/simple_clock: clear segments if not in 024h

There was an issue where the simple clock's display would remain in
024h mode even after switching back to 12h/24h mode because it only
took into account the leading zero bit, whose value is meaningless
unless the 24h mode bit is also set.

The issue is fixed by taking both bits into account.

Closes #476.

Reported-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476

22 months agofaces/alarm: use snprintf formats for 24h and 024h
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 17:46:06 +0000 (14:46 -0300)]
faces/alarm: use snprintf formats for 24h and 024h

This ensures that the display is always in a consistent state.

Reported-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476

22 months agofaces/alarm: fix 24h indication in 024h mode
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 17:42:43 +0000 (14:42 -0300)]
faces/alarm: fix 24h indication in 024h mode

The watch was not indicating to the user that it was in 24h mode
when set to the leading zero 024h time format. This could lead
to ambiguity and confusion, so make sure to indicate 24h mode.

Closes #476.

Reported-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476

22 months agoRevert merge of PR #437 - debouncing logic
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 00:00:22 +0000 (21:00 -0300)]
Revert merge of PR #437 - debouncing logic

This reverts commit a715265af61ecab41eaefe0c5a7e7c806d0db41b, reversing
changes made to 9c093f954084e61614cba1c259e4581a87420813.

Insidious issues were found in the course of long term testing
by the community, and further reviews of the code were not enough
to pinpoint the issue and fix it. So for now the appropriate action
is to revert these changes while development continues, and possibly
merge them back in once they have been stabilized.

Tested-on-hardware-by: David Volovskiy <devolov@gmail.com>
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me>
Tested-on-hardware-by: Krzysztof Gałka <@kshysztof@Discord>
22 months agoRevert merge of PR #437 - debouncing logic
Matheus Afonso Martins Moreira [Mon, 16 Sep 2024 00:00:22 +0000 (21:00 -0300)]
Revert merge of PR #437 - debouncing logic

This reverts commit a715265af61ecab41eaefe0c5a7e7c806d0db41b, reversing
changes made to 9c093f954084e61614cba1c259e4581a87420813.

Insidious issues were found in the course of long term testing
by the community, and further reviews of the code were not enough
to pinpoint the issue and fix it. So for now the appropriate action
is to revert these changes while development continues, and possibly
merge them back in once they have been stabilized.

Tested-on-hardware-by: David Volovskiy <devolov@gmail.com>
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me>
Tested-on-hardware-by: Krzysztof Gałka <@kshysztof@Discord>
22 months agoMerge PR #470 - fixes world_clock2 face
Matheus Afonso Martins Moreira [Sun, 15 Sep 2024 23:45:33 +0000 (20:45 -0300)]
Merge PR #470 - fixes world_clock2 face

The new DST changes caused problems in one specific face - world_clock2.
An incorrect variable was used due to a confusing name.
It has been revised to fix the problems that were caused.

Closes #475.

Reported-by: CarpeNoctem <cryptomax@pm.me>
Fixed-by: David Volovskiy <devolov@gmail.com>
Tested-by: CarpeNoctem <cryptomax@pm.me>
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/475

22 months agoFixed the tz that the world clock references
David Volovskiy [Sun, 15 Sep 2024 23:13:38 +0000 (19:13 -0400)]
Fixed the tz that the world clock references

23 months agoRevert PR #387 - fixes LE state restoration
Matheus Afonso Martins Moreira [Tue, 10 Sep 2024 15:10:48 +0000 (12:10 -0300)]
Revert PR #387 - fixes LE state restoration

This commit caused state restored from backup registers
to be overwritten. It is thereby reverted until a better
solution is found or movement is refactored.

This reverts commit 524098b9258232964d7756d4d44f16b006d340bf.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
References: https://github.com/joeycastillo/Sensor-Watch/pull/474

23 months agomake: add beeps face to build
Matheus Afonso Martins Moreira [Tue, 10 Sep 2024 02:59:44 +0000 (23:59 -0300)]
make: add beeps face to build

PR #386 did not add the C file to the makefile,
causing the build to fail at the link stage
due to the missing object file and the symbols
that were supposed to be provided by it.

Adding the file to the build fixes #472.

Reported-by: CarpeNoctem <cryptomax@pm.me>
Fixed-by: CarpeNoctem <cryptomax@pm.me>
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/472

23 months agoMerge PR #430 - improve tally face
Matheus Afonso Martins Moreira [Mon, 9 Sep 2024 00:20:25 +0000 (21:20 -0300)]
Merge PR #430 - improve tally face

Adds the ability to tally negative counts, tally quickly by holding down
the buttons as well as the ability to enable and cycle through multiple
preset initial values for numerous contexts such as card games.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/430

23 months agoMerge PR #471 - add DST to sunrise/sunset presets
Matheus Afonso Martins Moreira [Mon, 9 Sep 2024 00:12:24 +0000 (21:12 -0300)]
Merge PR #471 - add DST to sunrise/sunset presets

Implements automatic DST data to the sunrise/sunset presets,
making the whole system more automatic and therefore more reliable.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/471

23 months agosunrise sunset fix during DST
David Volovskiy [Sun, 8 Sep 2024 14:37:36 +0000 (10:37 -0400)]
sunrise sunset fix during DST

23 months agoSunrise sunset face now warns about using DST
David Volovskiy [Sun, 8 Sep 2024 13:03:43 +0000 (09:03 -0400)]
Sunrise sunset face now warns about using DST

23 months agoDaylight offsets now references the timezone of the destination; but it does cause...
David Volovskiy [Sun, 8 Sep 2024 11:07:44 +0000 (07:07 -0400)]
Daylight offsets now references the timezone of the destination; but it does cause an issue due to DST

23 months agoAdded commented-out defines for MTG and Yugioh
David Volovskiy [Sun, 8 Sep 2024 22:09:38 +0000 (18:09 -0400)]
Added commented-out defines for MTG and Yugioh

23 months agoDon't try to cycle through presets if the preset count is one
David Volovskiy [Sun, 8 Sep 2024 22:03:16 +0000 (18:03 -0400)]
Don't try to cycle through presets if the preset count is one

23 months agofaces/tally: convert size into compile time const
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 21:53:42 +0000 (18:53 -0300)]
faces/tally: convert size into compile time const

Creates a macro that returns the size of the presets array,
converting it into a compile time constant value that occupies
no memory and that compilers can constant fold into other expressions
potentially leading to dead code elimination.

23 months agofaces/tally: avoid resetting counters
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 21:49:09 +0000 (18:49 -0300)]
faces/tally: avoid resetting counters

Don't reset the counters unless there are multiple presets.
Move back to the first face directly if there are no presets
to cycle through.

23 months agofaces/tally: add yugioh life point presets
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 21:39:55 +0000 (18:39 -0300)]
faces/tally: add yugioh life point presets

Add common Yu-Gi-Oh card game life point preset values
for the tally face, opt in by defining a preprocessor macro.

23 months agofaces/tally: make mtg presets optin via macros
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 21:38:53 +0000 (18:38 -0300)]
faces/tally: make mtg presets optin via macros

Use preprocessor macros to conditionally compile in Magic the Gathering
initial value presets for the tally mark, thereby making them opt in.

23 months agoAdded more presets to the tally face
David Volovskiy [Sun, 8 Sep 2024 21:23:53 +0000 (17:23 -0400)]
Added more presets to the tally face

23 months agoMerge PR #454 - fix activation event
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 18:33:35 +0000 (15:33 -0300)]
Merge PR #454 - fix activation event

Fix issue where the calculator face's user interface display
was delayed about a quarter second due to the activation event
being a no-op.

Tested-by: David Volovskiy <devolov@gmail.com>
Reported-by: David Volovskiy <devolov@gmail.com>
Fixed-by: David Volovskiy <devolov@gmail.com>
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/454

23 months agoMerge PR #468 - fix github ci
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 18:22:50 +0000 (15:22 -0300)]
Merge PR #468 - fix github ci

Bump GitHub's checkout action to v4, fixing the continuous integration.

GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/468

23 months agomake: fix missing separator error
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 17:22:26 +0000 (14:22 -0300)]
make: fix missing separator error

23 months agoMerge PR #470 - implement automatic DST toggling
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 16:41:52 +0000 (13:41 -0300)]
Merge PR #470 - implement automatic DST toggling

Implements logic to automatically offset daylight saving time settings
when calculating timezone offsets. This should make the DST functions
work automatically with no need for user input in most cases.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470

23 months agoremoved break; from EVENT_ACTIVATE -- thanks @voloved
mcguirepr89 [Sun, 8 Sep 2024 15:49:01 +0000 (11:49 -0400)]
removed break; from EVENT_ACTIVATE -- thanks @voloved

23 months agoTally face sound now uses the preference's beep so decrementing fast can happen immed...
David Volovskiy [Sun, 8 Sep 2024 15:44:01 +0000 (11:44 -0400)]
Tally face sound now uses the preference's beep so decrementing fast can happen immedietly

23 months agoUpdated the tally couter face to allow for presets, negative numbers, fast scrolling...
David Volovskiy [Tue, 6 Aug 2024 11:05:19 +0000 (07:05 -0400)]
Updated the tally couter face to allow for presets, negative numbers, fast scrolling, and toggling sound

23 months agoMinot cleanup
David Volovskiy [Sun, 8 Sep 2024 14:50:09 +0000 (10:50 -0400)]
Minot cleanup

23 months agoMerge PR #268 - add daylight savings time toggle
Matheus Afonso Martins Moreira [Sun, 8 Sep 2024 14:09:10 +0000 (11:09 -0300)]
Merge PR #268 - add daylight savings time toggle

Adds a toggle in the preferences face that allows the user
to enable or disable the daylight savings time.

Should help produce the correct results with the sunrise/sunset presets.

A proper solution would be to integrate the tzinfo database
but it's too big for the watch at the time of this writing.
Can't be done unless it can be shrunk down into a subset
the user would be interested. Even then it's a stopgap
since the database is likely to keep growing over time.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/268

23 months agoadd blinking to DST toggle in settings page
R. Alex Barbieri [Sat, 27 Apr 2024 18:33:32 +0000 (13:33 -0500)]
add blinking to DST toggle in settings page

23 months agoMerge PR #401 - add fuzzy time watch face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:57:24 +0000 (20:57 -0300)]
Merge PR #401 - add fuzzy time watch face

Displays the time in a "close enough" manner:
periods of five minutes, relative to the nearest hour.

For example:

 - 3:24 -> 25 past 3
 - 3:50 -> 10 to 4
 - 3:59 -> 4 o'clock
 - 1:35 -> 35 past 1
 - 1:50 -> 10 to 2
 - 2:00 -> 2 o'clock

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-on-hardware-by: Ruben Nic <RubenSandwich@users.noreply.github.com>
Tested-on-hardware-by: KlingonJane <148595159+KlingonJane@users.noreply.github.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/401

23 months agoMerge PR #386 - add beep demo face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:53:08 +0000 (20:53 -0300)]
Merge PR #386 - add beep demo face

Allows the user manually trigger all 87 buzzer notes.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-on-hardware-by: Wesley Black <hello@wesleyblack.ca>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/386

23 months agoMerge PR #413 - add thermometer face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:49:19 +0000 (20:49 -0300)]
Merge PR #413 - add thermometer face

Measures the temperature until it stabilizes for half a minute.

This watch face is not meant to diagnose, treat, cure or prevent
any disease.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/413

23 months agoMerge PR #454 - add simple calculator watch face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:38:08 +0000 (20:38 -0300)]
Merge PR #454 - add simple calculator watch face

Adds a simple calculator watch face to the sensor watch
capable of addition, subtraction, multiplication, division
and exponentiation.

Reviewed-by: Joey Castillo <joeycastillo@utexas.edu>
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-by: Joey Castillo <joeycastillo@utexas.edu>
Tested-on-hardware-by: mcguirepr89 <mcguirepr89@gmail.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/454

23 months agoMerge PR #394 - keep LED lit while buttons held
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:31:46 +0000 (20:31 -0300)]
Merge PR #394 - keep LED lit while buttons held

Keeps the LED turned on while the user is interacting with the watch.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/394

23 months agoMerge PR #398 - add simon game watch face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:28:45 +0000 (20:28 -0300)]
Merge PR #398 - add simon game watch face

Adds a watch face that allows playing the classic Simon game
with the watch's buzzer and RGB LED.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/398

23 months agoMerge PR #287 - add minimal clock face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 23:14:26 +0000 (20:14 -0300)]
Merge PR #287 - add minimal clock face

Add a minimalist clock face that shows only hours and minutes.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/287

23 months agoMerge PR #269 - add french revolutionary time face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 22:37:43 +0000 (19:37 -0300)]
Merge PR #269 - add french revolutionary time face

Adds a french revolutionary time watch face which displays the time
divided into ten hours of one hundred minutes each which are in turn
divided into one hundred seconds each.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Reviewed-by: Wesley Aptekar-Cassels <me@wesleyac.com>
Reviewed-by: Alex Maestas <git@se30.xyz>
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/269

23 months agoMerge PR #259 - add higher or lower game face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 20:34:21 +0000 (17:34 -0300)]
Merge PR #259 - add higher or lower game face

Adds a watch face that implements a game where the player
must guess if the next card will be higher or lower than
the last cards that have been revealed.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-on-hardware-by: Chris <chris.ellis.git.dev@gmail.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/259

23 months agoMerge PR #266 - add deadline tracking watch face
Matheus Afonso Martins Moreira [Sat, 7 Sep 2024 20:21:10 +0000 (17:21 -0300)]
Merge PR #266 - add deadline tracking watch face

Adds a timing watch face that focuses on
keeping track of specific deadlines.

Dates and times can be set on the watch face
and it will display the time remaining at ever
decreasing levels of granularity for the sake
of brevity and ease of understanding.

For example, it will display years and months if over a year is left,
months and days if less than one year is left,
days and hours if less than one month is left
and the full remaining time if less than a day is left.

It also notifies the user when a deadline has passed recently.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Tested-on-hardware-by: Konrad Rieck <konrad@mlsec.org>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/266

23 months agoHi-lo: Additional code tweaks
Chris [Sun, 1 Sep 2024 18:30:31 +0000 (19:30 +0100)]
Hi-lo: Additional code tweaks

23 months agomove to deadline face on alarm
Konrad Rieck [Sat, 9 Mar 2024 22:50:47 +0000 (23:50 +0100)]
move to deadline face on alarm

23 months agoMerge pull request #1 from voloved/higher-lower-game
Chris [Sun, 1 Sep 2024 18:33:33 +0000 (19:33 +0100)]
Merge pull request #1 from voloved/higher-lower-game

Hi-lo: Made cards go through a deck format.

23 months agoAlarm handled using background task.
Konrad Rieck [Sat, 9 Mar 2024 19:48:42 +0000 (20:48 +0100)]
Alarm handled using background task.

The alarm for deadlines is now handled via a background task. Instead of a scheduled task that prevents sleep mode, the face checks in the background every minute whether an deadline is due. If this is the case, the face wakes up from sleep mode and starts a scheduled task for the remaining seconds.

23 months agoHi-lo: Use alternate card faces
Chris [Sat, 29 Jul 2023 16:44:54 +0000 (17:44 +0100)]
Hi-lo: Use alternate card faces

23 months agoMade cards go through a deck format.
David Volovskiy [Fri, 9 Aug 2024 02:45:07 +0000 (22:45 -0400)]
Made cards go through a deck format.

23 months agoFixed bugs and improved watchface
Konrad Rieck [Fri, 8 Mar 2024 13:50:32 +0000 (14:50 +0100)]
Fixed bugs and improved watchface

- A background task is only scheduled if the alarm option is activated. If the option is enabled, an alarm sounds when the next deadline is reached. If the option is disabled, no alarm sounds and the watch can enter low energy sleep.

- Fixed tick frequency error. During running mode, the clock ticks at 1Hz. This is set in the init function `_running_init` and thus ensures that we do not run too fast when returning from the setting mode.

- Minor corrections to comments and indentations.

23 months agoremoved higher frequency in first loop run.
Konrad Rieck [Sat, 2 Mar 2024 20:17:37 +0000 (21:17 +0100)]
removed higher frequency in first loop run.

23 months agomoved tick_freq to deadline_state_t structure.
Konrad Rieck [Sat, 2 Mar 2024 20:11:17 +0000 (21:11 +0100)]
moved tick_freq to deadline_state_t structure.

23 months agobeep on button
Konrad Rieck [Sat, 9 Sep 2023 14:35:30 +0000 (16:35 +0200)]
beep on button

23 months agosupport for alarm
Konrad Rieck [Sat, 9 Sep 2023 14:26:11 +0000 (16:26 +0200)]
support for alarm

23 months agodisplay closest deadline on activation
Konrad Rieck [Sat, 9 Sep 2023 13:40:57 +0000 (15:40 +0200)]
display closest deadline on activation