aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Revert "added low battery message"Riku Isokoski2023-03-022-17/+0
| | | | This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
* LVGL / FS : Initialize the LVGL FS driver in LittleVgl (instead of FS).Jean-François Milants2023-02-262-64/+0
| | | | | | Previously, the LVGL driver for the filesystem was initialized in the class FS. However, since 6f942e2, the order of the initializations was incorrect : the driver was initialized (FS::LVGLFileSystemInit()) before LVGL (LittleVgl.Init()), which means that the driver registration was probably dropped when LVGL was initialized. The LVGL driver is now initialized in LittleVgl.Init(), which seems to make much more sense, since all LVGL drivers are initialized there. This way, we ensure that the initialization of the drivers is consistent.
* DateTimeController: Fix integer overflowRiku Isokoski2023-02-261-1/+1
|
* date: Remove date libRiku Isokoski2023-02-252-0/+5
| | | | DateTimeController can provide everything we need.
* DateTimeController: Use std::tm for storing dateRiku Isokoski2023-02-252-31/+22
|
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-255-12/+6
| | | | | | The systick doesn't need to be updated when setting time. Also removed unused nrf_rtc.h includes.
* 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.
* TimerController: Use chrono for durationsRiku Isokoski2023-02-232-7/+9
|
* clang-format: Always break template declarationsRiku Isokoski2023-02-161-1/+2
| | | | | I find this format easier to read, because the definitions are at the expected indentation, making it easier to find what I'm looking for.
* src: Enable unused parameter warningRiku Isokoski2023-01-2428-92/+76
| | | | | | Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
* batt: Improve discharge curve valuesFinlay Davidson2023-01-231-9/+4
| | | | Values calculated using multiple tests on 3 PineTimes
* Format header filesFinlay Davidson2023-01-0923-0/+82
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Update clang-{format,tidy} to 14Finlay Davidson2023-01-045-0/+11
| | | | | Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check.
* formatminacode2022-12-271-1/+0
|
* changed to boolminacode2022-12-272-3/+8
|
* fixed a comment, set threshold to 15%minacode2022-12-272-2/+2
|
* cutout scaling hackminacode2022-12-271-5/+0
|
* formatminacode2022-12-271-1/+1
|
* added message, changed UIminacode2022-12-272-5/+9
|
* add percentage rescalingminacode2022-12-271-1/+7
|
* added low battery messageminacode2022-12-272-0/+7
|
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-187-32/+39
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* BLE CTS: fixed signedness of timezoneuli2022-11-253-9/+9
|
* WeatherService daily min/max temperature fixes (#1455)kieranc2022-11-251-6/+8
| | | | * Min/Max function fixes * Faster way to calculate day start
* Add linear approximation and use it for improving battery percentageAlex Dolzhenkov2022-11-193-36/+51
| | | | | | | | Add linear approximation class and use it to better model the non-linear discharge curve of the battery. Changed the minimum voltage level to 3.5V and the maximum to 4.18V. For reference the maximum observed voltage is 4.21V during charging.
* Update BatteryController.h with non-linear discharge curvehassless2022-11-192-5/+36
|
* add CTS local time characteristic and use it to provide UTC in ↵uli2022-11-116-53/+158
| | | | DateTimeController
* Checkbox list now receives a function pointer to call when the setting has ↵Jean-François Milants2022-10-111-8/+5
| | | | changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController.
* Edit all occurences of "watchface" to "watch face"mashuptwice2022-10-101-3/+3
|
* Merge branch 'pts-options' of github.com:kieranc/InfiniTime into ↵Jean-François Milants2022-10-021-0/+12
|\ | | | | | | | | | | | | kieranc-pts-options # Conflicts: # src/components/settings/Settings.h
| * CleanupKieran Cawthray2022-09-061-2/+1
| |
| * Implement persistent settingsKieran Cawthray2022-09-061-1/+14
| |
* | motorController: Fix infinite vibration on RunForDuration(0)Galdor Takacs2022-10-021-1/+1
| |
* | Merge branch 'watchface-casio-digital-G7710' of ↵Jean-François Milants2022-09-271-8/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github.com:ITCactus/InfiniTime into ITCactus-watchface-casio-digital-G7710 # Conflicts: # src/components/settings/Settings.h # src/displayapp/screens/CheckboxList.cpp # src/displayapp/screens/CheckboxList.h # src/displayapp/screens/Clock.cpp # src/displayapp/screens/Clock.h # src/displayapp/screens/settings/SettingWatchFace.cpp
| * | Apply clang-format to Settings.hAutoformatter2022-06-301-1/+0
| | |
| * | post rebase fixesITCactus2022-06-301-4/+5
| | |
| * | [new watchface] watchface inspired by G7710, with day of year and week ↵ITCactus2022-06-301-1/+11
| | | | | | | | | | | | number info
* | | Merge pull request #1024 from dmlls/infineat-prJF2022-09-273-1/+42
|\ \ \ | | | | | | | | Infineat Watchface + support for external resources.
| * \ \ Merge branch 'develop' into infineat-external-resourcesJean-François Milants2022-09-115-76/+118
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | # Conflicts: # src/displayapp/screens/Symbols.h # src/displayapp/screens/settings/SettingWatchFace.cpp # src/displayapp/screens/settings/SettingWatchFace.h
| * | | Make function DayOfWeekShortToStringLow constDiego Miguel2022-06-112-2/+2
| | | |
| * | | Bump settings version (#1)Diego Miguel2022-06-111-1/+1
| | | |
| * | | Implement SettingWatchFace listDiego Miguel2022-06-111-0/+9
| | | |
| * | | Fixes in side cover togglingDiego Miguel2022-06-111-4/+6
| | | |
| * | | Add lowercase days of the weekDiego Miguel2022-06-112-0/+6
| | | |
| * | | Add Infineat settings to settings controllerDiego Miguel2022-06-111-0/+24
| | | |
* | | | AlarmController: add const to SecondsToAlarm() functionReinhold Gschweicher2022-09-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The function `SecondsToAlarm()` doesn't change anything in the `AlarmController` object. Mark the function `const` to show this property.
* | | | Update src/components/settings/Settings.hAkseli2022-09-171-1/+1
| | | | | | | | | | | | Co-authored-by: NeroBurner <pyro4hell@gmail.com>
* | | | add pink colorAkseli Lahtinen2022-09-171-2/+3
| |/ / |/| |
* | | Add sleep mode which disables notifications, touch- and motion wakeup (#1261)Riku Isokoski2022-08-211-2/+2
| |/ |/|
* | Dismiss notifications by swiping rightSimon Willshire2022-06-282-61/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new interface `NotificationManager::Dismiss(id)` to delete a notification with the specified `id`. The animate the notification dismiss the `RightAnim` transition to a black screen is used. After the dismiss the new message is swiped in from below or above. If we dismiss the oldest message (when we are at 5/5, or 3/3), then the new message after a dismiss should appear to come from below. Otherwise (when we are at 2/3) the new message after a dismiss should appear to come from above. Rework the index code to show the index of the currently viewed notification. Instead of calculating the index relative to the oldest `id` introduce a new interface `NotificationManager::IndexOf(id)`. This is done because the `id` of the notifications in the buffer aren't continuous anymore (as some messages could have been dismissed). Rework notification ring buffer to have a beginIdx and a size internally to make the dismissal of notifications easier. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/176 Co-authored-by: Simon Willshire <me@simonwillshire.com> Co-authored-by: Reinhold Gschweicher <pyro4hell@gmail.com>