summaryrefslogtreecommitdiff
path: root/src/components
AgeCommit message (Collapse)AuthorFilesLines
2022-11-25BLE CTS: fixed signedness of timezoneuli3-9/+9
2022-11-25WeatherService daily min/max temperature fixes (#1455)kieranc1-6/+8
* Min/Max function fixes * Faster way to calculate day start
2022-11-19Add linear approximation and use it for improving battery percentageAlex Dolzhenkov3-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.
2022-11-19Update BatteryController.h with non-linear discharge curvehassless2-5/+36
2022-11-11add CTS local time characteristic and use it to provide UTC in ↵uli6-55/+160
DateTimeController
2022-10-11Checkbox list now receives a function pointer to call when the setting has ↵Jean-François Milants1-8/+5
changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController.
2022-10-10Edit all occurences of "watchface" to "watch face"mashuptwice1-3/+3
2022-10-02Merge branch 'pts-options' of github.com:kieranc/InfiniTime into ↵Jean-François Milants1-0/+12
kieranc-pts-options # Conflicts: # src/components/settings/Settings.h
2022-10-02motorController: Fix infinite vibration on RunForDuration(0)Galdor Takacs1-1/+1
2022-09-27Merge branch 'watchface-casio-digital-G7710' of ↵Jean-François Milants1-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
2022-09-27Merge pull request #1024 from dmlls/infineat-prJF3-1/+42
Infineat Watchface + support for external resources.
2022-09-27AlarmController: add const to SecondsToAlarm() functionReinhold Gschweicher2-2/+2
The function `SecondsToAlarm()` doesn't change anything in the `AlarmController` object. Mark the function `const` to show this property.
2022-09-17Update src/components/settings/Settings.hAkseli1-1/+1
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
2022-09-17add pink colorAkseli Lahtinen1-2/+3
2022-09-11Merge branch 'develop' into infineat-external-resourcesJean-François Milants5-76/+118
# Conflicts: # src/displayapp/screens/Symbols.h # src/displayapp/screens/settings/SettingWatchFace.cpp # src/displayapp/screens/settings/SettingWatchFace.h
2022-09-06CleanupKieran Cawthray1-2/+1
2022-09-06Implement persistent settingsKieran Cawthray1-1/+14
2022-08-21Add sleep mode which disables notifications, touch- and motion wakeup (#1261)Riku Isokoski1-2/+2
2022-06-30Apply clang-format to Settings.hAutoformatter1-1/+0
2022-06-30post rebase fixesITCactus1-4/+5
2022-06-30[new watchface] watchface inspired by G7710, with day of year and week ↵ITCactus1-1/+11
number info
2022-06-28Dismiss notifications by swiping rightSimon Willshire2-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>
2022-06-18Remove backup brightness feature (#1180)Riku Isokoski2-13/+1
This feature is not needed and is probably more likely to cause issues. It's better to just use brightnessController.Set(settingsController.GetBrightness());
2022-06-11Make function DayOfWeekShortToStringLow constDiego Miguel2-2/+2
2022-06-11Bump settings version (#1)Diego Miguel1-1/+1
2022-06-11Implement SettingWatchFace listDiego Miguel1-0/+9
2022-06-11Fixes in side cover togglingDiego Miguel1-4/+6
2022-06-11Add lowercase days of the weekDiego Miguel2-0/+6
2022-06-11Add Infineat settings to settings controllerDiego Miguel1-0/+24
2022-06-06Switch to freertos timers (#1095)Michele Bini4-34/+31
* 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>
2022-06-05Fix various typosluz paz2-7/+7
Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
2022-06-05Apply clang-format to all C++ filesFinlay Davidson16-87/+122
2022-06-05Replace C-style casts with static_castFinlay Davidson1-8/+10
2022-05-27Fix assertion failure in TimerControllerLudovic J1-1/+1
0 is not valid for xTimerPeriodInTicks, changing it to 1 to pass the assertion
2022-04-25Replace app_timer with FreeRTOS timersRiku Isokoski2-61/+27
2022-04-25Make functions const againRiku Isokoski2-2/+2
2022-04-25Update track progress in MusicService. Fix #127Riku Isokoski2-2/+14
2022-04-19Merge branch 'develop' into remove-nm-referenceMax Friedrich16-49/+137
2022-04-18Merge pull request #1009 from ↵Riku Isokoski1-1/+2
NeroBurner/AlarmController_allow_less_precice_system_time AlarmController: allow loss of precision for alarmTime cast
2022-04-02Replace airplane mode with a bluetooth toggleRiku Isokoski1-1/+1
2022-03-29AlarmController: allow loss of precision for alarmTime castReinhold Gschweicher1-1/+2
Allow a loss of precision if the system clock has a lower resolution than nanoseconds. This is the case for web assembly.
2022-03-21New changes according to the review : Priority 0 for display, 1 for system, ↵Jean-François Milants1-0/+1
timer and ble host, and 2 for ble LL
2022-03-21Music app : when title/track name are truncated, add an ellipsis at the end ↵Jean-François Milants1-5/+13
of the strings.
2022-03-21Add missing space in if expression.Jean-François Milants1-1/+1
2022-03-21Limit the size of the track and album name received by MusicService. This ↵Jean-François Milants1-0/+7
should work around this bug : https://github.com/InfiniTimeOrg/InfiniTime/issues/825 and prevent heap over-allocation.
2022-03-14DateTimeController: make possible functions constReinhold Gschweicher2-4/+4
MonthShortToString and DayOfWeekShortToString don't change the underlying object. Those are just getters and can be declared `const`.
2022-03-08Add missing nrf_log.h includes shadowed by SystemMonitor.hReinhold Gschweicher5-0/+5
Some components were missing a `nrf_log.h` include. This missing include was accidentally provided by the SystemMonitor.h header, which was included by Systemtask.h
2022-03-03Settings: more specific read and write modeReinhold Gschweicher1-2/+2
For each filesystem interaction be more specific if we want to read from the file or write to it. Doing a non-creating read on the loading of the settings file, otherwise an empty file could be created, and when reading that empty file for the initial settings I would expect an error (or random data) when reading.
2022-02-20Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants5-46/+54
into evergreen22-airplane-mode Apply a few changes that were requested in the PR during the review. # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
2022-02-20Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants5-36/+92
into evergreen22-airplane-mode # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp