summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2022-07-07Nimble: Compatibility with LFRC calibrationChristoph Honal1-2/+3
Nimble has to be aware of the low frequency clock calibration procedure, in order to not interfere with the usage of the HFCLK. For more info, see https://github.com/apache/mynewt-nimble/issues/1207
2022-07-07Nimble: Enable optional debug output via RTTChristoph Honal2-2/+3
This allows better debugging of the bluetooth stack.
2022-07-07Nimble: Reduce BLE power usageChristoph Honal3-2/+15
This configures Nimble to enable the HFCLOCK and other Bluetooth peripherals only when needed, but 1500 us in advance. This time is recommended by the Mynewt docs.
2022-07-06Twos code cleanup (#1220)Riku Isokoski2-107/+112
2022-07-05Add PageIndicator widget to reduce code duplication (#1218)Riku Isokoski9-90/+70
* Move PageIndicator widget to its own files to reduce code duplication * Use uint8_t in PageIndicator
2022-06-28Notifications: no inTransition screen, simple blackbox is enoughReinhold Gschweicher2-15/+9
2022-06-28Dismiss notifications by swiping rightSimon Willshire4-114/+255
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-27LFCLK: Add compatibility to wasp-os reloader-factoryChristoph Honal1-2/+7
2022-06-27Add basic hardware configuration options for P8Christoph Honal3-2/+45
This enables the configuration of the LFCLK source, as well as the target hardware board pin configuration.
2022-06-25Font generation: Fix patch binary pathChristoph Honal1-1/+1
2022-06-19CMake: Fix indentationChristoph Honal1-67/+67
2022-06-19CMake: Extend debug configurationChristoph Honal1-7/+21
Enable debug output for InfiniTime, Nimble and the NRF SDK via SEGGER RTT on debug builds.
2022-06-19Flashlight default to max brightness and code cleanupRiku Isokoski2-12/+12
2022-06-19Fix InfiniTime compiler warningsRiku Isokoski3-15/+8
2022-06-18Remove backup brightness feature (#1180)Riku Isokoski4-31/+12
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-16Automatically create screens for applist and settings (#1153)Riku Isokoski4-126/+101
Apps and settings are now stored in a single array (two arrays in total). Replace magic values with appsPerScreen and entriesPerScreen.
2022-06-16Patch hole in the letter M in jetbrains_mono_bold_20 (#1175)Riku Isokoski3-1/+11
2022-06-11SettingChimes: private Option struct, use std::array for cbOptionReinhold Gschweicher1-6/+5
2022-06-11Simplify SettingChimes codeRiku Isokoski2-42/+27
2022-06-11Remove duplicated value in fonts.json (#1179)Diego Miguel Lozano1-1/+1
2022-06-06Use lambda to reduce code duplicationRiku Isokoski1-10/+11
2022-06-06Move event handlers to unnamed namespaceRiku Isokoski2-13/+13
2022-06-06Use static constexpr to force compile time initializationRiku Isokoski1-2/+2
2022-06-06Timer: Replace time label with Counter control hiding functionalityRiku Isokoski2-12/+11
2022-06-06Counter: add show and hide controls functionsRiku Isokoski2-2/+21
2022-06-06Move linePoints to a member variableRiku Isokoski2-3/+5
2022-06-06Move bg color to a constexpr variableRiku Isokoski1-3/+5
2022-06-06Use Counter widget in TimerRiku Isokoski2-112/+41
2022-06-06Lighten the large font for a more balanced lookRiku Isokoski2-1/+1
Add Jetbrains Mono Light font
2022-06-06Add initial counter widgetRiku Isokoski4-1/+147
2022-06-06Move basic apps to the top of the app listRiku Isokoski1-4/+4
2022-06-06src/CMakeLists.txt: use iHEX format for mcuboot image creationIldar Mulyukov1-9/+11
for better control of addresses used by img/fw + fix typo (RECOVERYY)
2022-06-06fix wrong linker scriptIldar Mulyukov1-1/+1
introduced in https://github.com/JF002/InfiniTime/commit/58a2d000c4d49d96121894d6dd6bb861d7564bea
2022-06-06Switch to freertos timers (#1095)Michele Bini8-41/+32
* 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-05remove unused symbols, free a little bit of space (#1167)mabuch2-8/+1
2022-06-05remove unused Meter.cpp and Meter.h (#1171)mabuch4-68/+0
2022-06-05remove unused Brightness App (#1170)mabuch4-139/+0
2022-06-05remove old unused bluetooth icons (#1172)mabuch7-118/+0
2022-06-05System: Refactor pin and interrupt setupChristoph Honal2-19/+11
This should ensure better readability of the pin setup procedure, as well as allow the configuration of the hardware button enable pin and the accelerometer interrupt pin via the pin mapping header.
2022-06-05SystemTask: Use "&&" instead of "and" for operatorsChristoph Honal1-5/+6
As per the coding style, only primary spelling should be used for operators.
2022-06-05Fix various typosluz paz9-24/+24
Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
2022-06-05Apply clang-format to all C++ filesFinlay Davidson67-381/+475
2022-06-05Replace C-style casts with static_castFinlay Davidson3-20/+30
2022-06-05Rename lvgl image files to .cFinlay Davidson4-3/+3
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-05-16fonts: gen.py: clearify missing exe messageReinhold Gschweicher1-1/+1
2022-05-16generalize lv-font creationReinhold Gschweicher3-31/+49
In https://github.com/InfiniTimeOrg/InfiniTime/pull/1097 new font generation capabilites were added. Generalize the font creation to make it possible to reuse the `displayapp/fonts/CMakeLists.txt` file for `InfiniSim` and just add the new cmake file to the project and link against the new `infinitime_fonts` target. In the following a list of changes. Allow non-global installed `lv_font_conv` executable installed with ```sh npm install lv_font_conv@1.5.2 ``` In CMake we search for `lv_font_conv` executable. Add the found executable to the python script `generate.py`, to remove the need for `lv_font_conv` to be in the path. Search for `python3` executable, if CMake version 3.12 is available. Otherwise use `python` as hard coded executable. Instead of adding the generated fonts to `SOURCE_FILES` variable, create a static library `infinitime_fonts`. Link this library to the executables instead. Use `add_custom_target()` together with `add_custom_command()` to generate the font.c files once (like the original PR does).
2022-05-10fontgen: update README.md to remove patch advanced optionsYehoshua Pesach Wallach1-1/+1
2022-05-10fontgen: changes to allow CMake to work from other projectYehoshua Pesach Wallach1-4/+4
2022-05-10fontgen: remove advanced (format string, process as list) from patchingYehoshua Pesach Wallach2-13/+2