summaryrefslogtreecommitdiffstats
path: root/movement
Commit message (Collapse)AuthorAgeFilesLines
* faces/clock: indicate low power only when neededMatheus Afonso Martins Moreira2024-02-251-5/+6
| | | | | There is no need to set the indicator on every clock tick. Indicate only when the battery is checked.
* faces/clock: indicate alarm only when necessaryMatheus Afonso Martins Moreira2024-02-251-2/+0
| | | | | The alarm state is not modified within the clock face. Therefore, it only needs to be set when the face is activated.
* faces/clock: refactor time signal toggling codeMatheus Afonso Martins Moreira2024-02-251-2/+6
| | | | Simplifies the code by defining dedicated functions for this.
* faces/clock: refactor clock display codeMatheus Afonso Martins Moreira2024-02-251-14/+20
| | | | Simplifies the code by defining dedicated functions for this.
* faces/clock: reorder periodic battery checkMatheus Afonso Martins Moreira2024-02-251-3/+2
| | | | | Check the battery after the time has been updated. Place all the indication code next to each other.
* faces/clock: refactor partial time display codeMatheus Afonso Martins Moreira2024-02-251-24/+40
| | | | Simplifies the code by defining dedicated functions for this.
* faces/clock: refactor full time display codeMatheus Afonso Martins Moreira2024-02-251-1/+19
| | | | Simplifies the code by defining dedicated functions for this.
* faces/clock: refactor tick tock animation codeMatheus Afonso Martins Moreira2024-02-251-3/+15
| | | | Simplifies the code by defining dedicated functions for this.
* faces/clock: refactor low power tick functionMatheus Afonso Martins Moreira2024-02-251-12/+26
| | | | | | | Simplifies the code by defining dedicated functions and separating the case from the main ones. Also use the snprintf function since the buffer size is known.
* faces/clock: simplify LAP indication functionMatheus Afonso Martins Moreira2024-02-251-3/+6
| | | | | Simplifies the code by adding a dedicated function for this. Also documents the meaning of the LAP indicator: Low Available Power.
* faces/clock: refactor daily battery checkMatheus Afonso Martins Moreira2024-02-251-11/+21
| | | | | Move the code in question to a dedicated function. Better organized. Add overridable preprocessor definition for the low battery threshold.
* faces/clock: simplify PM indication functionMatheus Afonso Martins Moreira2024-02-251-7/+21
| | | | Simplifies the code by adding dedicated functions for this.
* faces/clock: simplify 24h indication functionMatheus Afonso Martins Moreira2024-02-251-2/+5
| | | | Simplifies the code by adding a dedicated function for this.
* faces/clock: simplify signal indication functionMatheus Afonso Martins Moreira2024-02-251-10/+10
| | | | | | | | | | | | Simplifies the code and makes it use the correct indicator. For some reason it had been switched with the alarm indicator. WATCH_INDICATOR_BELL The small bell indicating that an alarm is set. WATCH_INDICATOR_SIGNAL The hourly signal indicator. Also useful for indicating that sensors are on.
* faces/clock: simplify alarm indication functionMatheus Afonso Martins Moreira2024-02-251-10/+8
| | | | | | | | | | | | | | | | Deduplicates state in the clock state and movement settings. Makes the code simpler. Also makes it use the correct indicator. For some reason it had been switched with the hourly chime indicator. WATCH_INDICATOR_BELL The small bell indicating that an alarm is set. WATCH_INDICATOR_SIGNAL The hourly signal indicator. Also useful for indicating that sensors are on.
* faces/clock: define general indication functionMatheus Afonso Martins Moreira2024-02-251-0/+8
| | | | Sets or clears the specified indicator based on some boolean value.
* faces/clock: move structure definitionMatheus Afonso Martins Moreira2024-02-252-9/+9
| | | | | | | | | | | Instances of the clock state structure are only passed to the clock face itself and only via the opaque context pointer. No other code uses it. Thus there is no need to expose it in a header file. So make it an implementation detail of the watch face by localizing it inside the translation unit.
* faces: rename simple_clock_face to clock_faceMatheus Afonso Martins Moreira2024-02-245-32/+33
| | | | | It's not actually so simple and will only gain features from now on. Just "clock face" also feels more canonical.
* Change inactivity deadlines: add 10 minutes and remove 2 days. (#365)Max Zettlmeißl2024-02-072-8/+8
| | | | | | | | I like to use the ten minute timeout on my watch and there are other people who have similar interests in a lower deadline. The two day deadline had to go to still accommodate the change within the three bit index. The default setting is still the one hour timeout.
* Revert "make the watch-face a global in movement.c, actually"Christian Buschau2024-01-211-4/+3
| | | | This reverts commit 0e801ed505cb0c368bf1eb0473058efb6c275a3e.
* Merge pull request #337 from theAlexes/theAlexes/wyoscan-zeroWesley Aptekar-Cassels2024-01-211-1/+1
|\ | | | | make the zero in wyoscan a little more visually appealing
| * make the zero in wyoscan a little more visually appealingAlex Maestas2023-12-081-1/+1
| |
* | Merge branch 'main' into watch-face-save-loadWesley Aptekar-Cassels2024-01-21116-718/+3808
|\ \
| * \ Merge branch 'main' into watch-face-day-night-percentageWesley Aptekar-Cassels2024-01-21114-718/+3601
| |\ \
| | * \ Merge branch 'main' into watch-face-simple-coin-flipWesley Aptekar-Cassels2024-01-21112-718/+3398
| | |\ \
| | | * \ Merge branch 'main' into watch-face-solsticeWesley Aptekar-Cassels2024-01-21110-718/+3096
| | | |\ \
| | | | * \ Merge branch 'main' into theAlexes/cleanupWesley Aptekar-Cassels2024-01-2110-30/+50
| | | | |\ \
| | | | | * | template: fix compiler warning on watch_face_index as mentioned in PR 269CarpeNoctem2024-01-171-0/+1
| | | | | | |
| | | | | * | Merge pull request #325 from WesleyAC/fix-le-buzzer-default-tuneWesley Aptekar-Cassels2024-01-115-25/+38
| | | | | |\ \ | | | | | | | | | | | | | | | | Fix buzzer in LE mode.
| | | | | | * | movement: Use LE mode code to keep buzzer awake, instead of sleeping.Alex Maestas2024-01-091-26/+36
| | | | | | | |
| | | | | | * | Enable custom signal tones in LE mode.Wesley Aptekar-Cassels2024-01-096-54/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes movement_play_signal synchronous when in LE mode, despite using the underlying asynchronous API. It's a bit of a hack, but it should work well enough for now. This also moves the enabling/disabling of the buzzer into the movement_play_signal function, so that watch faces no longer have to do it.
| | | | | | * | Use legacy buzzer functions when playing default tune.Wesley Aptekar-Cassels2024-01-092-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the default tune to be played in LE mode. Fixes: #275
| | | | | | * | Revert "Merge pull request #283 from ↵Wesley Aptekar-Cassels2024-01-096-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | neutralinsomniac/fix_hourly_chime_background" This reverts commit 5c94111ea20e50cb9dab8f416603403185e933b3, reversing changes made to bc9b4ce700d3f12adc0daceaa880e3d638df0c2b.
| | | | | * | | fix alternate firmware scriptjoeycastillo2024-01-101-2/+2
| | | | | | | |
| | | | | * | | Merge pull request #342 from theAlexes/theAlexes/nanosec-profile-bugWesley Aptekar-Cassels2024-01-091-1/+0
| | | | | |\ \ \ | | | | | | |/ / | | | | | |/| | delete stray line of code that messed with correction profile
| | | | | | * | delete stray line of code that messed with correction profile while ↵Alex Maestas2023-12-221-1/+0
| | | | | | |/ | | | | | | | | | | | | | | | | | | | | | adjusting cadence
| | | | | * / Handle visibility for tomato watchfacePietro F. Maggi2024-01-072-2/+9
| | | | | |/ | | | | | | | | | | | | | | | | | | (cherry picked from commit 547e8248ba3538693ee8c587a92ffece7b40d1a2)
| | | | * | make the watch-face a global in movement.c, actuallyAlex Maestas2023-12-171-3/+4
| | | | | |
| | | | * | clean up trailing whitespace in movement.cAlex Maestas2023-12-161-3/+3
| | | | | |
| | | | * | use a pointer to the watch face in the app loop instead of indirecting ↵Alex Maestas2023-12-161-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | through the index each time, and also recalculate can_sleep based on the timeout loop call.
| | | | * | make it clear that the movement_state contains indexesAlex Maestas2023-12-162-17/+17
| | | | |/
| | | | * Kitchen Conversions FacePrimmR2023-12-014-0/+569
| | | | |
| | | | * Merge branch 'main' into day_one_faceWesley Aptekar-Cassels2023-11-27105-641/+2314
| | | | |\
| | | | | * Fix missing documentation for many clock faces:Alex Utter2023-11-2791-592/+1405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move from .c to .h as needed for consistency. * When missing from both, copy from pull request or wiki. * When missing entirely, infer functionality from source code.
| | | | | * Merge branch 'main' into couch-2-5kEkaitz Zárraga2023-11-197-2/+525
| | | | | |\
| | | | | | * Merge branch 'main' into feat/minute-repeater-decimal-faceWesley Aptekar-Cassels2023-11-195-2/+201
| | | | | | |\
| | | | | | | * Merge pull request #302 from LtKeks/Sensor-Watch-bugfix-timer_face-datatypeWesley Aptekar-Cassels2023-11-181-2/+2
| | | | | | | |\ | | | | | | | | | | | | | | | | | | timer_face - Possibility to set seconds as default values
| | | | | | | | * Update timer_face.cLtKeks2023-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrects the data type of the standard values in order to be able to configure seconds as well.
| | | | | | | * | Merge pull request #270 from perw/tuning_tonesWesley Aptekar-Cassels2023-11-184-0/+199
| | | | | | | |\ \ | | | | | | | | |/ | | | | | | | |/| new face: Tuning tones
| | | | | | | | * new face: Tuning tonesPer Waagø2023-09-064-0/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new face that plays out tones that can be used as a reference when tuning musical instruments.