aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | ShakeWake: Fixed instant wake after sleep issue in certain positions (#1691)Isaac2023-06-172-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | * ShakeWake: Fixed instant wake after sleep issue in certain positions Add lastX var to track the previous x acceleration for correct calculation of speed. Reorder axes for clarity. --------- Co-authored-by: Isaac <114504394+isaacc27@users.noreply.github.com> Co-authored-by: FintasticMan <52415484+FintasticMan@users.noreply.github.com>
* | ST7789 : do not reconfigure the reset pin to default during sleep.Jean-François Milants2023-06-041-1/+0
| |
* | Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-1/+1
| | | | | | | | Fix RecoveryLoader.
* | Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-1/+1
| | | | | | | | Fix formatting issue in St7789.cpp
* | Power optimization - Improve SPI sleep modeJean-François Milants2023-06-044-8/+10
| | | | | | | | ST7789 driver : replace the constant '26' with a named constant to specify the pin number of the reset pin of the LCD controller.
* | Power optimization - Improve SPI sleep modeJean-François Milants2023-06-042-6/+0
| | | | | | | | | | Calls to Spi::Init() are not needed, pin initialization is already done in ctor(). Remove calls to Spi::Sleep()/Spi::Wakeup() to ensure that SPI CS pins are kept high even in sleep mode.
* | Power optimization - Improve SPI sleep modeJean-François Milants2023-06-044-1/+11
| | | | | | | | | | | | Ensure that all pins are set to their default configuration during sleep mode. Disable the workaround for FTPAN58 (SPI freezes when transfering a single byte) at the end of the transfer. This disables the resources needed for the workaround. Those changes reduce the power usage by 430-490µA.
* | Power optimization - enable the DC/DC regulator.Jean-François Milants2023-06-041-0/+5
| | | | | | | | | | | | The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime. This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
* | Power optimization - Enable HRS3300 (heart rate sensor) sleep mode.Jean-François Milants2023-06-041-1/+9
| | | | | | | | Put the HRS3300 to sleep mode when InfiniTime is going to sleep. This change reduces the power consumption by 130µA when the heart rate sensor is disabled.
* | PineTimeStyle weather display (#1459)kieranc2023-06-0410-39/+178
| | | | | | | | | | Weather display for PineTimeStyle Documentation : https://wiki.pine64.org/wiki/PineTimeStyle and https://wiki.pine64.org/wiki/Infinitime-Weather
* | Fix code formattingJean-François Milants2023-05-183-4/+3
| |
* | Refactor pvPortRealloc() to improve readability.Jean-François Milants2023-05-181-51/+36
| |
* | Enable malloc error and stack overflow error detection in FreeRTOS. Count ↵Jean-François Milants2023-05-185-13/+42
| | | | | | | | them and display them in the SystemInfo app.
* | Unify all heaps (stdlib + LVGL + FreeRTOS) into a single heap managed by ↵Jean-François Milants2023-05-184-6/+36
| | | | | | | | | | | | | | | | | | | | FreeRTOS and heap_4_infinitime.c. LVGL supports custom implementation of malloc() and free() so using pvPortMalloc() and vPortFree() is just a matter of setting the right variables. Other libraries (NimBLE, LittleFS) and InfiniTime code (new) call malloc() and free() from stdlib. InfiniTime now provides the file stdlib.c that provides a custom implementation for malloc(), free(), calloc() and realloc(). This ensures that all calls to the standard allocator are redirected to the FreeRTOS memory manager. Note that realloc() is needed by NimBLE.
* | Add pvPortRealloc() in heap_4_infinitime.c. An implementation of realloc() ↵Jean-François Milants2023-05-181-0/+73
| | | | | | | | is needed by NimBLE.
* | Copy the memory manager heap_4.c from the FreeRTOS distribution to the ↵Jean-François Milants2023-05-182-1/+449
| | | | | | | | InfiniTime project codebase. This will allow to implement custom functionalities that are not available in the original implementation.
* | Refactor watch face to enum (#1339)Max Friedrich2023-04-305-16/+34
| | | | | | | | | | | | | | change watch face from int to enum --------- Co-authored-by: minacode <minamoto9@web.de>
* | Refactor, document and fix the Watchdog driver (#1710)JF2023-04-304-68/+186
| | | | | | | | | | | | | | * Refactor and document the Watchdog driver to make it more readable. Fix the configuration of the behaviours configuration that was not properly implemented (but it didn't cause any side effect since the correct value was eventually set in NRF_WDT->CONFIG). Fix the wrong interpretation of the reset reasons caused by implicit conversions of int to bool.
* | Refactored Ppg for frequency based algorithm. (#1486)Ceimour2023-04-3026-204/+2669
| | | | | | | | | | | | | | New implementation of the heart rate sensor data processing using a frequency based PPG algorithm. The HRS3300 settings are fine-tuned for better signal to noise at 10Hz. The measurement delay is now set to 100ms. Enable and use the ambient light sensor. FFT implementation based on ArduinoFFT (https://github.com/kosme/arduinoFFT, GPLv3.0).
* | TimerController: Rename to TimerRiku Isokoski2023-04-167-26/+26
| |
* | TimerController: Make TimerController reusableRiku Isokoski2023-04-1610-48/+14
| | | | | | | | TimerController instance was moved to DisplayApp.
* | MotionController: Remove IsOk variableRiku Isokoski2023-04-162-10/+0
| | | | | | | | We should be able to assume MotionController is safe to use.
* | Watchfaces: Assume motionsensor is okRiku Isokoski2023-04-1610-15/+5
| | | | | | | | The watch face shouldn't and doesn't start before the sensor is ready.
* | fonts: Make patching silentFinlay Davidson2023-04-161-1/+1
| | | | | | | | The generate script should only output anything if there are errors.
* | stopwatch: Add hours tracking (#1692)fossison2023-04-162-4/+26
| | | | | | | | | | | | | | | | Stopwatch application : add hours tracking --------- Co-authored-by: fossison <fossison@mailbox.org> Co-authored-by: Jean-François Milants <jf@codingfield.com>
* | lvgl: Use InfiniTime fork of LVGLRiku Isokoski2023-04-031-0/+0
| |
* | WatchFaceTerminal: Simplify time update checkRiku Isokoski2023-04-022-43/+24
| |
* | WatchFaceG7710: Simplify time update checkRiku Isokoski2023-04-022-46/+28
| |
* | WatchFaceInfineat: Simplify time update checkRiku Isokoski2023-04-022-50/+20
| |
* | WatchFaceDigital: Simplify update checkRiku Isokoski2023-04-022-39/+25
| |
* | dirtyvalue: Move to src/utilityFinlay Davidson2023-03-279-92/+103
| |
* | staticstack: Move to src/utilityFinlay Davidson2023-03-273-46/+50
| |
* | linearapproximation: Move to src/utilityFinlay Davidson2023-03-272-2/+1
| |
* | WeatherService: const DateTimeController referenceRiku Isokoski2023-03-192-3/+3
| |
* | HeartRateService: Remove SystemTask dependencyRiku Isokoski2023-03-193-11/+8
| |
* | MotionService: Remove SystemTask dependencyRiku Isokoski2023-03-193-12/+9
| |
* | NavigationService: Remove unused SystemTask refRiku Isokoski2023-03-193-11/+2
| |
* | WeatherService: Remove unused SystemTask referenceRiku Isokoski2023-03-193-10/+3
| |
* | MusicService: Remove SystemTask dependencyRiku Isokoski2023-03-193-10/+8
| |
* | inactivity: Use LVGL inactivity timersRiku Isokoski2023-03-187-76/+52
|/ | | | | | | | | | | | | | | | | Replace custom FreeRTOS inactivity timers with LVGL inactivity timers. DisplayApp: Trigger display activity on timer done. inactivity: Add additional checks The backlight could be turned on by RestoreBrightness() on ble connect event. inactivity: Trigger activity on screen switch A notification timing out could put the watch to sleep immediately. While this could be ideal behaviour, it was caused by delay in processing the EnableSleeping event and pushing RestoreBrightness to DisplayApp.
* WatchFaceAnalog: Simplify date update checkRiku Isokoski2023-03-152-15/+5
|
* raisewake: Change names in line with the style guideFinlay Davidson2023-03-093-9/+9
|
* motioncontroller: Fix clang-tidy warningsFinlay Davidson2023-03-092-15/+12
| | | | Also move one-line functions to header.
* shakewake: Switch to more generic timekeepingFinlay Davidson2023-03-092-7/+10
| | | | Could be used for other motion-based algorithms in the future.
* shakewake: Simplify return codeFinlay Davidson2023-03-091-5/+1
|
* shakewake: Switch to more generic last* varsFinlay Davidson2023-03-092-11/+16
| | | | | These could be used for other motion-based algorithms in the future. Also fix includes.
* shakewake: Fix names according to style guideFinlay Davidson2023-03-094-17/+17
|
* PTS: Fix double tap behaviour on settings screen (#1669)kieranc2023-03-041-2/+2
| | | | Fixes #1467 "Double tapping PineTimeStyle steps style button sends watch to sleep" Double tap is disabled on the color settings screen by checking if the Rnd button is visible, but this didn't work for the options screen as the Rnd button isn't visible. I've changed it to check if the Close button is visible instead, which is used on both settings screens, and resolves the bug. I also changed the button used to disable the long press behaviour which was an as-yet-undiscovered bug which would have allowed the long press action to be used when the options screen was visible.
* Add low battery indicator to StatusIcons, digital and analog watchfacesRiku Isokoski2023-03-027-1/+21
| | | | Define deepOrange color in InfiniTimeTheme
* Revert "added low battery message"Riku Isokoski2023-03-025-31/+1
| | | | This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352