aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Background heartrate measurementmark90642025-11-051-3/+3
| | | | Co-Authored-By: Patric Gruber <me@patric-gruber.at>
* StopWatch: add persistenceJan Hustak2025-11-041-0/+4
| | | | | # Conflicts: # src/displayapp/screens/StopWatch.h
* Remove OnTouchEventmark90642024-10-271-1/+1
|
* Alarm persist to flash (#1367)NeroBurner2024-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * AlarmController: Add saving alarm time to file Save the set alarm time to the SPI NOR flash, so it does not reset to the default value when the watch resets, e.g. due to watchdog timeout or reflashing of a new version of InfiniTime. Just like the `Settings.h` `LoadSettingsFromFile()` the previous alarm at boot (if available) and `SaveSettingsToFile()` the current alarm when the `Alarm.h` screen is closed (only if the settings have changed). The alarm-settings file is stored in `.system/alarm.dat`. The `.system` folder is created if it doesn't yet exist. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/1330 * alarmController: close .system dir after usage Close the `lfs_dir` object for the `.system` dir after usage. Otherwise on the second changed alarm the system will lockup because the `.system` dir is already open and was never closed. --------- Co-authored-by: Galdor Takacs <g@ldor.de>
* Display the SPI flash JEDEC IDs in SystemInformation.Jean-François Milants2024-08-051-1/+2
| | | | This is needed since a new memory chip will be used in future batches of PineTimes.
* Use functional abstraction for hooksmark90642024-05-011-1/+1
|
* SPI transaction hooksmark90642024-05-011-1/+1
|
* Power optimization - Improve SPI sleep modeJean-François Milants2023-06-041-1/+1
| | | | 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 - 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.
* Fix code formattingJean-François Milants2023-05-181-1/+1
|
* Enable malloc error and stack overflow error detection in FreeRTOS. Count ↵Jean-François Milants2023-05-181-0/+11
| | | | them and display them in the SystemInfo app.
* TimerController: Make TimerController reusableRiku Isokoski2023-04-161-3/+0
| | | | TimerController instance was moved to DisplayApp.
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-251-1/+0
| | | | | | The systick doesn't need to be updated when setting time. Also removed unused nrf_rtc.h includes.
* SystemTask: Move lcd to DisplayAppRiku Isokoski2023-02-251-1/+0
| | | | SystemTask should never write to the lcd
* LittleVgl: Instantiate in DisplayAppRiku Isokoski2023-02-251-8/+0
| | | | | | | LVGL is only a part of the main DisplayApp. Other "DisplayApps" can be implemented without LVGL. DummyLittleVgl isn't needed anymore and has been removed
* watchdog: Replace WatchdogView with const WatchdogRiku Isokoski2023-02-251-2/+1
|
* SystemTask: Move MotorController to DisplayAppRiku Isokoski2023-02-251-1/+0
| | | | | Vibrations should be associated with something happening on the UI. Therefore SystemTask should not be controlling the motor.
* TouchHandler: Do not store touch panel referenceRiku Isokoski2023-02-241-1/+1
|
* touchhandler: Remove LVGL dependencyRiku Isokoski2023-02-241-1/+1
| | | | Move LVGL specific code to the LittleVgl class
* LittleVgl: Remove unused Cst816S referenceRiku Isokoski2023-02-231-1/+1
|
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-181-20/+19
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Infineat : Add support for external resources, and read the images and fonts ↵Jean-François Milants2022-09-111-1/+2
| | | | from the ilesystem
* LFCLK: Add compatibility to wasp-os reloader-factoryChristoph Honal2022-06-271-2/+7
|
* Add basic hardware configuration options for P8Christoph Honal2022-06-271-0/+14
| | | | | This enables the configuration of the LFCLK source, as well as the target hardware board pin configuration.
* Switch to freertos timers (#1095)Michele Bini2022-06-061-1/+0
| | | | | | | | | | | * Use FreeRTOS timer for AlarmController * Use FreeRTOS timer for MotorController * Remove app_timer component from compilation as we now solely use FreeROTS timer * Simplify variable and text names for AlarmController and MotorController timers * Call ScheduleAlarm directly from StopAlerting, for recurring timers Co-authored-by: Riku Isokoski <riksu9000@gmail.com> Co-authored-by: NeroBurner <pyro4hell@gmail.com>
* Apply clang-format to all C++ filesFinlay Davidson2022-06-051-5/+3
|
* Provide reference to BrightnessController in DisplayAppReinhold Gschweicher2022-02-191-0/+3
| | | | | | | | For the simulator I need a way to get to the brightnessController object and handle the set brightness-levels accoringly. This is done by the constructor expecting a brightnessController object instead of initializing one itself
* Status bar displays time in 12 or 24 hour format based on settingsMark Russell2021-11-101-5/+5
|
* Use enum classes, remove old commentRiku Isokoski2021-10-251-1/+0
|
* Newer buttonhandlerRiku Isokoski2021-10-251-12/+12
|
* Merge pull request #664 from Riksu9000/disable_notif_onlyJF0022021-09-231-1/+1
|\ | | | | Toggle notifications only, keep vibrations.
| * Merge branch 'develop' into disable_notif_onlyRiku Isokoski2021-09-131-29/+18
| |\
| * | Toggle notifications only, keep vibrations.Riku Isokoski2021-09-121-1/+1
| | |
* | | Merge branch 'PersistantStorage' of git://github.com/geekbozu/InfiniTime ↵Jean-François Milants2021-09-181-1/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into geekbozu-PersistantStorage # Conflicts: # src/systemtask/SystemTask.cpp
| * | | Add some commentsTim Keller2021-09-021-2/+6
| | | |
| * | | Add clearing of noinit segment on bad wordTim Keller2021-08-191-5/+10
| | | | | | | | | | | | | | | | Code readability cleanup
| * | | Make Clock Persistant.Tim Keller2021-08-171-1/+10
| | | |
* | | | resolve conflict in src/systemtask/Messages.hMark Russell2021-09-161-29/+18
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'develop' into pinmaphubmartin2021-09-131-6/+3
| |\ \ \
| | * \ \ Merge pull request #602 from Riksu9000/del_unusedJF0022021-09-121-6/+1
| | |\ \ \ | | | |_|/ | | |/| | Remove unused variables
| | | * | Remove unused variablesRiku Isokoski2021-08-191-6/+1
| | | |/
| * | | Merge branch 'develop' into pinmaphubmartin2021-08-291-4/+8
| |\| |
| * | | Update startup SCL toggling pinmap definitionshubmartin2021-08-221-4/+5
| | | |
| * | | Merge branch 'develop' into pinmaphubmartin2021-08-221-0/+15
| |\ \ \ | | | |/ | | |/|
| * | | PinMap with namespace and constexprhubmartin2021-08-031-19/+10
| | | |
* | | | Revert "Merge upstream"Mark Russell2021-09-161-18/+29
| | | | | | | | | | | | | | | | This reverts commit 1d43adcdfa7bd15ba45c0c9d7c59c0ff99176b9c.
* | | | Merge upstreamMark Russell2021-09-161-29/+18
| | | |
* | | | Created basic alarm appMark Russell2021-09-101-0/+3
| |_|/ |/| |
* | | Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2021-08-281-2/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
| * | | Use highest frequency and move mutex creation to InitRiku Isokoski2021-08-181-2/+2
| | | |