aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens
Commit message (Collapse)AuthorAgeFilesLines
* Make firmware updating more foolproof (#469)Riku Isokoski2021-07-222-8/+34
| | | | | | | * Make firmware updating more foolproof and fix bugs * No need to manually handle overflow * Make startTime TickType_t * Don't process TouchEvents::None * Fix sleep getting re-enabled issue more directly
* Multiple wakeup sources (#290)Kozova12021-07-142-32/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow multiple wakeup modes at the same time. This commit adds multiple wakeup modes support. It does so by storing them as a uint8_t bitfield enum. It changes the following functions: Since multiple modes can be on now, older version would not cut it: WakeUpMode getWakeupMode() -> std::bitset<3> getWakeUpModes() Where each bit corresponds to a WakeUpMode We still need a way to check whether a specific wakeup mode is on, so: bool isWakeUpModeOn(const WakeUpMode mode) This function was changed to work correctly with the new implementation. setWakeUpMode(WakeupMode mode, bool enable) Previously, systemtask would exit SystemTask::OnTouchEvent() if the wake up mode was None or RaiseWrist, to prevent waking up when a touch was received. However, after enabling using multiple WakeUpModes, this caused a bug where when RaiseWrist was checked with SingleTap or DoubleTap, the tap detection wouldn't work. This commit fixes that bug. Next commit will update the settings WakeUpMode select UI to reflect these changes. Signed-off-by: Kozova1 <mug66kk@gmail.com> * Updated UI to reflect multiple WakeUp sources being available. Signed-off-by: Kozova1 <mug66kk@gmail.com>
* Merge branch 'lvgl_use_system_tick' of ↵Jean-François Milants2021-07-134-37/+6
|\ | | | | | | | | | | | | | | https://github.com/Riksu9000/InfiniTime into Riksu9000-lvgl_use_system_tick # Conflicts: # src/displayapp/screens/BatteryInfo.cpp # src/displayapp/screens/BatteryInfo.h
| * LVGL use system tickRiku Isokoski2021-07-074-39/+6
| |
* | Merge branch 'develop' into notify-battery-levelJean-François Milants2021-07-132-36/+48
|\ \ | | | | | | | | | | | | # Conflicts: # src/displayapp/screens/BatteryInfo.cpp
| * | Refactor trig functions into LUT (#476)Jonathan Vander Mey2021-07-111-32/+44
| | | | | | | | | | | | | | | | | | Replaced the use of the standard library trig functions with a LUT-based implementation instead. The standard library implementations produce more accurate results but the usage here doesn't need that. This ends up saving nearly 7kB of binary size.
| * | Modify status text in BatteryInfo so it fits on screen (#437)kieranc2021-07-111-4/+4
| | | | | | | | | * Modify status text in BatteryInfo so it fits on screen
* | | Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-119-47/+35
|/ / | | | | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* / Change step gauge range to 100 and calculate progress as percantage (#468)kieranc2021-07-111-3/+3
|/
* Improve stopwatch (#432)Riku Isokoski2021-07-042-114/+89
| | | | | | | * Improve stopwatch more * Make sure sleep gets reenabled * Cleanup and clang-format
* Whitespace and brace fixes (#456)Avamander2021-07-041-16/+13
| | | | | * Brace style and whitespace fixes * Additional whitespace fixes
* clang-formatRiku Isokoski2021-07-041-6/+7
|
* Condense firmware validation codeRiku Isokoski2021-07-042-28/+10
|
* Improve paddle gameRiku Isokoski2021-07-032-126/+50
|
* and metronome icon (#439)Bryton Hall2021-07-022-1/+2
| | | * add drum icon for metronome app
* Float voltage to int (#444)Riku Isokoski2021-07-023-26/+5
| | | | * Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
* Fix call notification button alignmentRiku Isokoski2021-07-021-20/+12
|
* static_cast cleanupAvamander2021-07-021-2/+2
|
* Fixed a bunch of format specifiersAvamander2021-07-024-11/+11
|
* Add PineTimeStyle watchface (#334)kieranc2021-06-295-0/+450
| | | | | | | | | | | | | * PineTimeStyle * Move GPL license header * Add step count gauge - replaces heartrate in sidebar * Enable 12/24h functionality * Set step gauge outer to be white when step goal is reached * Add font source file * Move static needle_colors array to member variable * Add documentation on generating a font * Replace .ttf with Google version, add link to font page Co-authored-by: JF002 <JF002@users.noreply.github.com>
* SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix2021-06-261-4/+7
| | | | | | * Retrieve and display bootloader version - Display bootloader version on System Info screen - Enable SPI flash sleep mode if bootloader version >= 1.0.0 * Wait for SPI flash to wakeup before starting OTA DFU
* Fix typo in variable names (#430)Jonathan Vander Mey2021-06-222-7/+7
|
* Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander2021-06-221-3/+0
| | | * Removed an illogical comparison
* Add support for BMA425 acceleration sensor. (#440)JF0022021-06-192-7/+24
| | | * Add support for BMA425 acceleration sensor.
* Fix build issues since Metronome app has been merged.Jean-François Milants2021-06-121-3/+3
|
* add basic metronome app (#409)Bryton Hall2021-06-123-1/+204
| | | | | | | | | | | | | | | * add basic metronome app * add bpb, tap to bpm, update widgets * use event pressed for bpm tap * move case statement break to the right place * narrow bpm selection range, override touch events * fix arc knob style * re-enable sleeping in destructor
* Merge pull request #405 from Riksu9000/improve_stopwatchJF0022021-06-121-18/+23
|\ | | | | Improve stopwatch
| * Keep button visible, but disabledRiku Isokoski2021-05-261-3/+9
| |
| * improve ui and optimize codeRiku Isokoski2021-05-261-18/+17
| |
* | Clock : initialize the actual clockface in initialization list instead of in ↵Jean-François Milants2021-06-121-19/+12
| | | | | | | | the core of the ctro().
* | Merge pull request #425 from Raupinger/remove-watch-tapJF0022021-06-122-20/+23
|\ \ | | | | | | Remove tap to switch Watchfaces
| * | replace ScreenList with a single screen in Clock. This removes the tap to ↵Florian2021-06-112-20/+23
| | | | | | | | | | | | switch feature
* | | Changed the namespace of SystemInfo::sortById to avoid a name conflict (#360)Avamander2021-06-122-1/+4
| | |
* | | Fix scrollbar (#382)Riku Isokoski2021-06-121-1/+1
| | |
* | | Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-103-8/+7
| | | | | | | | | | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
* | | Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-064-12/+17
|/ / | | | | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* | Add the maximum memory used by LVGL in SystemInfo app. This will help the ↵JF0022021-06-011-1/+3
| | | | | | | | developers to size the memory buffer allocated to lvgl. (#408)
* | Navigation app: reduce memory usage (#362)JF0022021-06-012-120/+118
|/ | | | | | | * Navigation app: - Renaming and reformatting according to coding conventions - declare iconMap as constexpr and use char* instead of std::string This reduces the flash usage from 424644B to 419344B (-5300B)!
* Timer App (#355)Florian2021-05-204-1/+217
| | | | | | | | | | | * built timer app * Style improvements * making sure buttons stay hidden when the app is reopened and reappear after the timer runs out * more sensible calculations of time deltas. eliminated that mysterious scaling factor * changing the timer icon
* removed an empty assignment that caused a compiler warning (#372)Florian2021-05-201-1/+0
|
* Merge pull request #347 from jedi2light/feature-show-git-commit-hash-shortJF0022021-05-163-0/+16
|\ | | | | Feature: Store and show git short ref on PineTime alongside other firmware information
| * git: show git short ref hash on SystemInfo(first screen) and ↵Stoian Minaiev2021-05-143-0/+16
| | | | | | | | FirmwareValidation screen alongside other information
* | better handling of long notification titlesFlorian Kraupa2021-05-161-0/+10
| |
* | Merge pull request #298 from joaquimorg/StepsAppJF0022021-05-158-18/+258
|\ \ | |/ |/| New Steps app
| * Merge branch 'develop' ofJoaquim2021-04-2666-1833/+1805
| |\ | | | | | | | | | https://github.com/JF002/InfiniTime into StepsApp
| * | Fix button size and default step goalJoaquim2021-04-201-11/+7
| | |
| * | New Steps appJoaquim2021-04-198-13/+260
| | | | | | | | | | | | | | | | | | Settings to set the steps goal More detail in Motion app New 42px Font
* | | SystemInfo app screenStoian Minaiev2021-05-101-3/+3
| | | | | | | | | First screen. Let the build date and build time string be centered as well as the others
* | | Fix a possible double free in StopWatch::Refresh.Martin Ashby2021-05-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The lv_obj_del is called on btnStopLap when transitioning to the initial state, however the variable isn't then set to null. A subsequent call to Refresh would attempt to delete the already freed object. This could be triggered by stopping the stop watch, then pressing the physical button on the watch. Fixes https://github.com/JF002/InfiniTime/issues/315
* | | Merge pull request #314 from eivindm/improved_heartbeat_in_watchfaceJF0022021-05-021-10/+7
|\ \ \ | | | | | | | | Improve design of heartbeat data in digital watchface