Finlay Davidson
f993311830
shakewake: Fix names according to style guide
2023-03-09 10:17:03 +02:00
Riku Isokoski
fff0a00a4a
Revert "added low battery message"
...
This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
2023-03-02 13:38:31 +02:00
Jean-François Milants
9bbd2ddbc4
LVGL / FS : Initialize the LVGL FS driver in LittleVgl (instead of FS).
...
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.
2023-02-26 22:10:03 +02:00
Riku Isokoski
bf8dca202c
DateTimeController: Fix integer overflow
2023-02-26 17:30:01 +02:00
Riku Isokoski
8baa317e7e
date: Remove date lib
...
DateTimeController can provide everything we need.
2023-02-25 17:44:06 +02:00
Riku Isokoski
959778d770
DateTimeController: Use std::tm for storing date
2023-02-25 17:37:56 +02:00
Riku Isokoski
b63bb798ac
DateTimeController: Remove SetTime tick parameter
...
The systick doesn't need to be updated when setting time.
Also removed unused nrf_rtc.h includes.
2023-02-25 17:22:25 +02:00
Riku Isokoski
5ab255b26b
SystemTask: Move MotorController to DisplayApp
...
Vibrations should be associated with something happening on the UI.
Therefore SystemTask should not be controlling the motor.
2023-02-25 12:15:00 +02:00
Riku Isokoski
05f404950a
TimerController: Use chrono for durations
2023-02-23 23:17:18 +02:00
Riku Isokoski
6dc49e5bdb
clang-format: Always break template declarations
...
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.
2023-02-16 09:13:58 +02:00
Riku Isokoski
a3e14c012d
src: Enable unused parameter warning
...
Fix warnings.
Some clang-formatting was necessary.
DebugPins is unused and was removed.
2023-01-24 10:43:17 +02:00
Finlay Davidson
8b0d888952
batt: Improve discharge curve values
...
Values calculated using multiple tests on 3 PineTimes
2023-01-23 21:48:29 +01:00
Finlay Davidson
96165a8541
Format header files
...
In my PR updating clang-format, I forgot to also format the headers.
2023-01-09 21:41:21 +01:00
Finlay Davidson
eda96ffadc
Update clang-{format,tidy} to 14
...
Also add configuration options only available in 13 and 14.
Fixes warning about -fstack-usage in clang-tidy check.
2023-01-04 17:15:33 +01:00
minacode
a82a34cd11
format
2022-12-27 12:13:52 +01:00
minacode
557a328409
changed to bool
2022-12-27 12:13:52 +01:00
minacode
51d818b774
fixed a comment, set threshold to 15%
2022-12-27 12:13:52 +01:00
minacode
60027f217c
cutout scaling hack
2022-12-27 12:13:52 +01:00
minacode
08fa6bd4e4
format
2022-12-27 12:13:52 +01:00
minacode
cad58f190f
added message, changed UI
2022-12-27 12:13:52 +01:00
minacode
59ee0ad1aa
add percentage rescaling
2022-12-27 12:13:52 +01:00
minacode
ccc8cee07a
added low battery message
2022-12-27 12:13:52 +01:00
Riku Isokoski
afea7ca0d1
Update clang-tidy configuration and fix some warnings ( #1474 )
...
Don't enable coding conventions from unrelated projects. Only enable
generic checks.
2022-12-18 18:14:36 +01:00
uli
02116a2fd4
BLE CTS: fixed signedness of timezone
2022-11-25 20:14:26 +01:00
kieranc
f1d2a8ee50
WeatherService daily min/max temperature fixes ( #1455 )
...
* Min/Max function fixes
* Faster way to calculate day start
2022-11-25 18:45:33 +01:00
Alex Dolzhenkov
7376c02bbf
Add linear approximation and use it for improving battery percentage
...
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-19 16:34:03 +01:00
hassless
a67f401b30
Update BatteryController.h with non-linear discharge curve
2022-11-19 16:34:03 +01:00
uli
38092fcb40
add CTS local time characteristic and use it to provide UTC in DateTimeController
2022-11-11 21:44:00 +01:00
Jean-François Milants
cf8b422899
Checkbox list now receives a function pointer to call when the setting has changed. This allow to remove the dependency between CheckBoxList (UI component) with SettingController.
2022-10-11 21:16:33 +02:00
mashuptwice
668820ef5a
Edit all occurences of "watchface" to "watch face"
2022-10-10 12:43:11 +02:00
Jean-François Milants
738c012a73
Merge branch 'pts-options' of github.com:kieranc/InfiniTime into kieranc-pts-options
...
# Conflicts:
# src/components/settings/Settings.h
2022-10-02 18:30:41 +02:00
Galdor Takacs
1439dfd912
motorController: Fix infinite vibration on RunForDuration(0)
2022-10-02 15:58:17 +02:00
Jean-François Milants
fbe964ff44
Merge branch 'watchface-casio-digital-G7710' of 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-27 21:59:22 +02:00
JF
63932810d2
Merge pull request #1024 from dmlls/infineat-pr
...
Infineat Watchface + support for external resources.
2022-09-27 21:27:36 +02:00
Reinhold Gschweicher
f699261ca3
AlarmController: add const to SecondsToAlarm() function
...
The function `SecondsToAlarm()` doesn't change anything in the
`AlarmController` object. Mark the function `const` to show this
property.
2022-09-27 20:32:13 +02:00
Akseli
d55ba9a3d8
Update src/components/settings/Settings.h
...
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
2022-09-17 21:32:43 +02:00
Akseli Lahtinen
8c35c3c3d4
add pink color
2022-09-17 21:32:43 +02:00
Jean-François Milants
ada2c09581
Merge branch 'develop' into infineat-external-resources
...
# Conflicts:
# src/displayapp/screens/Symbols.h
# src/displayapp/screens/settings/SettingWatchFace.cpp
# src/displayapp/screens/settings/SettingWatchFace.h
2022-09-11 14:59:49 +02:00
Kieran Cawthray
4fe834efda
Cleanup
2022-09-06 12:58:46 +02:00
Kieran Cawthray
b49fddd555
Implement persistent settings
2022-09-06 11:37:12 +02:00
Riku Isokoski
69563ed031
Add sleep mode which disables notifications, touch- and motion wakeup ( #1261 )
2022-08-21 14:52:38 +03:00
Autoformatter
0300a8fa80
Apply clang-format to Settings.h
2022-06-30 15:15:33 +02:00
ITCactus
917e46c684
post rebase fixes
2022-06-30 15:15:32 +02:00
ITCactus
319dfd23e7
[new watchface] watchface inspired by G7710, with day of year and week number info
2022-06-30 15:14:23 +02:00
Simon Willshire
2c75e7aad8
Dismiss notifications by swiping right
...
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-28 18:50:10 +02:00
Riku Isokoski
95ff285991
Remove backup brightness feature ( #1180 )
...
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-18 12:54:41 +03:00
Diego Miguel
f5e9055e09
Make function DayOfWeekShortToStringLow const
2022-06-11 16:57:24 +02:00
Diego Miguel
b15f90aa1d
Bump settings version ( #1 )
2022-06-11 16:57:24 +02:00
Diego Miguel
a3bfbb5e08
Implement SettingWatchFace list
2022-06-11 16:56:35 +02:00
Diego Miguel
a890f8568a
Fixes in side cover toggling
2022-06-11 16:56:35 +02:00