aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp
Commit message (Collapse)AuthorAgeFilesLines
* apps: Restore app list orderFintasticMan2023-11-291-8/+9
| | | | | The build-time selection PR updated the order, this restores what it was before.
* Fix code formattingJean-François Milants2023-11-1920-24/+72
|
* Add missing new line at end of file.Jean-François Milants2023-11-191-1/+1
|
* Application selection at build timeJean-François Milants2023-11-192-0/+16
| | | | Fix DisplayAppRecovery so it builds with -std=c++20.
* Application selection at build timeJean-François Milants2023-11-1924-167/+420
| | | | | | | A list of "user applications" is built at compile time. It contains all the info needed to create the application at runtime (ptr to a create() function) and to display the app in the application menu. All applications declare a TypeTrait with these information. When a new app must be loaded, DisplayApp first check if this app is a System app (in which case it creates it like it did before). If it's not a System app, it looks for the app in the list of User applications and creates it if it found it. Those changes allow to more easily add new app and to select which app must be built into the firmware. Switch to C++20 (and fix a few issues in SpiMaster.cpp and Watchdog.cpp.
* Fix deadlock when a lot of notifications are received in a very short time span.Jean-François Milants2023-11-191-1/+9
| | | | | | | When a notification is received, SystemTask sends messages to DisplayApp, which loads the Notifications apps that sends a few messages to SystemApp. When notification are received too quickly, DisplayApp and SystemTask cannot process those messages fast enough (probably because of the time it takes to refresh the display) and the message queues fill up. When they are full, the current implementation just waits until there's room available to store the event. In this case, since both tasks exchange messages, they end up in a deadlock. This fix consists in setting the timeout value to 0 (non-blocking mode) for the NewNotification messages on the DisplayApp side. This will prevent the SystemTask from being blocked (which would result in the watchdog reseting the watch). A more generic approach should be design in the future.
* Tidy upKieran Cawthray2023-11-111-4/+2
|
* Initial commitKieran Cawthray2023-11-112-6/+10
|
* navigation: Add is available (#1847)JF2023-09-027-19/+41
| | | | | Navigation app now needs 2 images to be loaded from the resources on the external filesystem. This PR adds an 'enabled' field to the Applications struct. This field is true for all applications expect for Navigation which calls Navigation::IsAvailable(). This methods returns true if the 2 files are available in the resources. The application list disables the application (draws it in grey, disables the touch callback) if the enable flag is not set.
* navigation: Move font to external memory (#1838)JF2023-09-025-112/+184
| | | | | | | | | | The TTF font used by the navigation app is ~20KB and is stored in internal flash memory. To free this space, the TTF font is now converted in 2 "atlas pictures" (pictures that contain multiple concatenated images) stored in the external flash memory. The navigation app now accesses one of those 2 files and apply an offset to display the desired picture. The corresponding documentation has also been updated. Add comments about the layout of the pictures that contain the icon and about the indexing of those icons. In documentation (buildAndProgram.md), edit the section about the debug compilation mode. Remove the part about removing the Navigation app to free some memory (since it's not relevant anymore) and explain how to selectively build parts of the firmware in Debug mode.
* lowersleep: Implement Lower to Sleep functionality (#827)FintasticMan2023-08-272-4/+5
|
* watchfaceanalog: Background in lvgl (#1824)Max Friedrich2023-08-153-277/+40
| | | | | | | | | | | * change background image to widgets This commit removes the background image for the WatchFaceAnalog and replaces it with lvgl widgets. It aims to keep the original look. * remove comments and background image --------- Co-authored-by: minacode <minamoto9@web.de>
* Fix TypoTimothy2023-06-172-8/+8
| | | | label_battery_vallue > label_battery_value
* PineTimeStyle weather display (#1459)kieranc2023-06-048-38/+164
| | | | | Weather display for PineTimeStyle Documentation : https://wiki.pine64.org/wiki/PineTimeStyle and https://wiki.pine64.org/wiki/Infinitime-Weather
* Fix code formattingJean-François Milants2023-05-181-2/+1
|
* Enable malloc error and stack overflow error detection in FreeRTOS. Count ↵Jean-François Milants2023-05-181-10/+13
| | | | them and display them in the SystemInfo app.
* Refactor watch face to enum (#1339)Max Friedrich2023-04-303-10/+26
| | | | | | | change watch face from int to enum --------- Co-authored-by: minacode <minamoto9@web.de>
* Refactor, document and fix the Watchdog driver (#1710)JF2023-04-301-10/+10
| | | | | | | * Refactor and document the Watchdog driver to make it more readable. Fix the configuration of the behaviours configuration that was not properly implemented (but it didn't cause any side effect since the correct value was eventually set in NRF_WDT->CONFIG). Fix the wrong interpretation of the reset reasons caused by implicit conversions of int to bool.
* TimerController: Rename to TimerRiku Isokoski2023-04-164-15/+15
|
* TimerController: Make TimerController reusableRiku Isokoski2023-04-164-8/+11
| | | | TimerController instance was moved to DisplayApp.
* Watchfaces: Assume motionsensor is okRiku Isokoski2023-04-1610-15/+5
| | | | The watch face shouldn't and doesn't start before the sensor is ready.
* fonts: Make patching silentFinlay Davidson2023-04-161-1/+1
| | | | The generate script should only output anything if there are errors.
* stopwatch: Add hours tracking (#1692)fossison2023-04-162-4/+26
| | | | | | | | Stopwatch application : add hours tracking --------- Co-authored-by: fossison <fossison@mailbox.org> Co-authored-by: Jean-François Milants <jf@codingfield.com>
* WatchFaceTerminal: Simplify time update checkRiku Isokoski2023-04-022-43/+24
|
* WatchFaceG7710: Simplify time update checkRiku Isokoski2023-04-022-46/+28
|
* WatchFaceInfineat: Simplify time update checkRiku Isokoski2023-04-022-50/+20
|
* WatchFaceDigital: Simplify update checkRiku Isokoski2023-04-022-39/+25
|
* dirtyvalue: Move to src/utilityFinlay Davidson2023-03-278-92/+64
|
* staticstack: Move to src/utilityFinlay Davidson2023-03-271-3/+3
|
* inactivity: Use LVGL inactivity timersRiku Isokoski2023-03-184-8/+43
| | | | | | | | | | | | | | | | | Replace custom FreeRTOS inactivity timers with LVGL inactivity timers. DisplayApp: Trigger display activity on timer done. inactivity: Add additional checks The backlight could be turned on by RestoreBrightness() on ble connect event. inactivity: Trigger activity on screen switch A notification timing out could put the watch to sleep immediately. While this could be ideal behaviour, it was caused by delay in processing the EnableSleeping event and pushing RestoreBrightness to DisplayApp.
* WatchFaceAnalog: Simplify date update checkRiku Isokoski2023-03-152-15/+5
|
* shakewake: Fix names according to style guideFinlay Davidson2023-03-091-4/+4
|
* PTS: Fix double tap behaviour on settings screen (#1669)kieranc2023-03-041-2/+2
| | | | Fixes #1467 "Double tapping PineTimeStyle steps style button sends watch to sleep" Double tap is disabled on the color settings screen by checking if the Rnd button is visible, but this didn't work for the options screen as the Rnd button isn't visible. I've changed it to check if the Close button is visible instead, which is used on both settings screens, and resolves the bug. I also changed the button used to disable the long press behaviour which was an as-yet-undiscovered bug which would have allowed the long press action to be used when the options screen was visible.
* Add low battery indicator to StatusIcons, digital and analog watchfacesRiku Isokoski2023-03-027-1/+21
| | | | Define deepOrange color in InfiniTimeTheme
* Revert "added low battery message"Riku Isokoski2023-03-021-1/+1
| | | | 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-263-3/+62
| | | | | | 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.
* infineat: Create colors at compile time.Riku Isokoski2023-02-262-49/+119
| | | | lv_color_hex can't be evaluated at compile time, but LV_COLOR_MAKE can.
* Apps: Remove Weather from app enumRiku Isokoski2023-02-261-1/+0
| | | | Weather app is not fully implemented and is causing a warning
* motion: Disable Motion appRiku Isokoski2023-02-254-6/+7
| | | | | This is a debugging app, not useful for most people. Also remove the app icon.
* screens: Add notes about using C++20 featuresRiku Isokoski2023-02-252-0/+2
|
* date: Remove date libRiku Isokoski2023-02-259-81/+38
| | | | DateTimeController can provide everything we need.
* DateTimeController: Remove SetTime tick parameterRiku Isokoski2023-02-252-11/+3
| | | | | | 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-0/+3
| | | | SystemTask should never write to the lcd
* LittleVgl: Instantiate in DisplayAppRiku Isokoski2023-02-255-50/+5
| | | | | | | 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-256-11/+11
|
* screens: Remove unused DisplayApp parametersRiku Isokoski2023-02-2572-156/+99
|
* screens: Remove explicit Screen constructorsRiku Isokoski2023-02-2533-44/+32
| | | | | This constructor didn't do anything since DisplayApp reference was removed from the Screen base class.
* screens: Remove displayapp parameter from screenRiku Isokoski2023-02-2530-29/+44
| | | | | | | | The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
* SystemTask: Move MotorController to DisplayAppRiku Isokoski2023-02-254-7/+22
| | | | | Vibrations should be associated with something happening on the UI. Therefore SystemTask should not be controlling the motor.
* displayapp: Make Ble references constRiku Isokoski2023-02-2430-42/+42
|