aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp
Commit message (Collapse)AuthorAgeFilesLines
...
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-232-279/+0
| | | | | Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
* Simple Weather Service - code cleaning and improvementsJean-François Milants2023-12-234-9/+10
| | | | | | | Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-233-13/+33
| | | | Fix recovery firmware and code formatting.
* SimpleWeather service : new weather implementationJean-François Milants2023-12-238-34/+38
| | | | | | | | | | This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
* Watch face selection at build timeJean-François Milants2023-12-211-6/+6
| | | | Do not assign specific values to the fields of the enum WatchFace.
* Watch face selection at build timeJean-François Milants2023-12-2114-255/+215
| | | | Watch faces can now be selected at buid time. It's implemented in a similar way than the selection of user apps, using a list of watch face description that is generated at build time (consteval, constexpr)
* Allow zero app to be selected at build timeJean-François Milants2023-12-101-1/+1
| | | | Fix 'nScreens' calculation in ApplicationList so that we can build the project with zero user app selected.
* Apply suggestionmark90642023-12-091-1/+1
|
* Fix calculation of number of app screensmark90642023-12-091-2/+1
|
* StopWatch: Add an extra space to the string without the hourMingjie Shen2023-12-011-1/+1
| | | | so that it's just as long as with the hour.
* SettingDisplay: Reduce buffer sizeMingjie Shen2023-12-011-1/+1
| | | | Given that 2^16 / 1000 is 65, we can make the buffer only 3 chars.
* Fix potential buffer overflows when calling sprintfMingjie Shen2023-12-014-9/+9
| | | | | | | | | | 1. Replace sprintf with snprintf, which is safer 2. An unsigned int or unsigned long int requires 11 bytes to print (including the null terminator) 3. Use PRIu16 macro to print uint16_t 4. Format string "#%2d %2d:%02d:%02d.%02d\n" in StopWatch::stopLapBtnEventHandler() requires at least 17 bytes. The 16-byte buffer would clearly be overrun if sprintf were used.
* 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