]> git.earman.xyz Git - sensor-watch.git/log
sensor-watch.git
22 months agocountdown: use long press ALARM to enter settings
joeycastillo [Sun, 29 Sep 2024 01:33:05 +0000 (21:33 -0400)]
countdown: use long press ALARM to enter settings

22 months agomigrate countdown to Second Movement
joeycastillo [Sat, 28 Sep 2024 21:43:10 +0000 (17:43 -0400)]
migrate countdown to Second Movement

22 months agoclear seconds in LE mode
joeycastillo [Tue, 24 Sep 2024 04:12:25 +0000 (00:12 -0400)]
clear seconds in LE mode

22 months agobump utz commit
joeycastillo [Tue, 24 Sep 2024 04:03:53 +0000 (00:03 -0400)]
bump utz commit

22 months agointegrate utz, use DST-aware time zones instead of bare offsets
joeycastillo [Tue, 24 Sep 2024 03:27:10 +0000 (23:27 -0400)]
integrate utz, use DST-aware time zones instead of bare offsets

22 months agouse signed integers for UTC offset
joeycastillo [Tue, 24 Sep 2024 03:24:17 +0000 (23:24 -0400)]
use signed integers for UTC offset

22 months agoadd utz submodule
joeycastillo [Mon, 23 Sep 2024 12:59:13 +0000 (08:59 -0400)]
add utz submodule

22 months agobring in world clock
joeycastillo [Mon, 23 Sep 2024 12:51:53 +0000 (08:51 -0400)]
bring in world clock

22 months ago24H only is handled by disabling changing the setting
joeycastillo [Mon, 23 Sep 2024 12:49:19 +0000 (08:49 -0400)]
24H only is handled by disabling changing the setting

22 months agofix flickering LED in preferences screen
joeycastillo [Mon, 23 Sep 2024 04:02:31 +0000 (00:02 -0400)]
fix flickering LED in preferences screen

22 months agobetter LED colors at low brightness
joeycastillo [Mon, 23 Sep 2024 03:50:14 +0000 (23:50 -0400)]
better LED colors at low brightness

22 months agosupport RGB LED backlight
joeycastillo [Mon, 23 Sep 2024 02:48:45 +0000 (22:48 -0400)]
support RGB LED backlight

22 months agobump gossamer commit
joeycastillo [Mon, 23 Sep 2024 02:41:35 +0000 (22:41 -0400)]
bump gossamer commit

22 months agonew preferences face with support for RGB LED
joeycastillo [Mon, 23 Sep 2024 02:26:59 +0000 (22:26 -0400)]
new preferences face with support for RGB LED

22 months agomove away from backup registers
joeycastillo [Mon, 23 Sep 2024 01:52:25 +0000 (21:52 -0400)]
move away from backup registers

22 months agono need for this to be a function
joeycastillo [Mon, 23 Sep 2024 01:51:11 +0000 (21:51 -0400)]
no need for this to be a function

22 months agoremove duplication of movement defaults
joeycastillo [Mon, 23 Sep 2024 01:50:33 +0000 (21:50 -0400)]
remove duplication of movement defaults

22 months agoremove old movement_config.h
joeycastillo [Sun, 22 Sep 2024 22:27:40 +0000 (18:27 -0400)]
remove old movement_config.h

22 months agobring in filesysten and shell, rename LFS globals for clarity
joeycastillo [Sun, 22 Sep 2024 19:34:51 +0000 (15:34 -0400)]
bring in filesysten and shell, rename LFS globals for clarity

22 months agofix typo
joeycastillo [Sun, 22 Sep 2024 19:04:34 +0000 (15:04 -0400)]
fix typo

22 months agorename enum, rearrange watch_tcc.h
joeycastillo [Sun, 22 Sep 2024 18:26:49 +0000 (14:26 -0400)]
rename enum, rearrange watch_tcc.h

22 months agoset year to 2024 at boot
joeycastillo [Sun, 22 Sep 2024 18:24:43 +0000 (14:24 -0400)]
set year to 2024 at boot

22 months agofix for minutes not updating after refactor
joeycastillo [Sun, 22 Sep 2024 18:22:33 +0000 (14:22 -0400)]
fix for minutes not updating after refactor

22 months agodon't time out first watch face
joeycastillo [Sun, 22 Sep 2024 17:57:16 +0000 (13:57 -0400)]
don't time out first watch face

22 months agoadd buzzer volume control
joeycastillo [Sun, 22 Sep 2024 17:34:46 +0000 (13:34 -0400)]
add buzzer volume control

22 months agobump gossamer commit
joeycastillo [Sun, 22 Sep 2024 14:46:31 +0000 (10:46 -0400)]
bump gossamer commit

22 months agoimprove API for text display
joeycastillo [Thu, 19 Sep 2024 12:42:07 +0000 (08:42 -0400)]
improve API for text display

22 months agoremove watch_display_string from set_time face
joeycastillo [Thu, 19 Sep 2024 03:48:58 +0000 (23:48 -0400)]
remove watch_display_string from set_time face

22 months agosilence warning
joeycastillo [Thu, 19 Sep 2024 03:47:52 +0000 (23:47 -0400)]
silence warning

22 months agoremove unused variable
joeycastillo [Thu, 19 Sep 2024 03:46:50 +0000 (23:46 -0400)]
remove unused variable

22 months agoRevert "Support leading zero representation for 24h clock"
joeycastillo [Thu, 19 Sep 2024 03:28:26 +0000 (23:28 -0400)]
Revert "Support leading zero representation for 24h clock"

This reverts commit f633b7634b80d0bf08e491606eab3f10f85d6ece.

22 months agoremove deprecated watch_display_string
joeycastillo [Thu, 19 Sep 2024 03:21:36 +0000 (23:21 -0400)]
remove deprecated watch_display_string

22 months agorestore USB CDC functionality to Movement
joeycastillo [Thu, 19 Sep 2024 01:44:09 +0000 (21:44 -0400)]
restore USB CDC functionality to Movement

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.