summaryrefslogtreecommitdiff
path: root/src/displayapp
AgeCommit message (Collapse)AuthorFilesLines
2021-07-15New touch handler, with issuesRiku Isokoski15-98/+91
2021-07-14Multiple wakeup sources (#290)Kozova12-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>
2021-07-14Set correct refresh times for lvgl (#488)Riku Isokoski1-3/+5
2021-07-13Merge branch 'develop' of github.com:JF002/Pinetime into developJean-François Milants2-2/+10
2021-07-13Merge branch 'lvgl_use_system_tick' of ↵Jean-François Milants4-37/+6
https://github.com/Riksu9000/InfiniTime into Riksu9000-lvgl_use_system_tick # Conflicts: # src/displayapp/screens/BatteryInfo.cpp # src/displayapp/screens/BatteryInfo.h
2021-07-13Adjust displayapp delay to compensate time spent (#482)Riku Isokoski2-2/+10
2021-07-13Merge branch 'develop' into notify-battery-levelJean-François Milants2-36/+48
# Conflicts: # src/displayapp/screens/BatteryInfo.cpp
2021-07-11Refactor trig functions into LUT (#476)Jonathan Vander Mey1-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.
2021-07-11Modify status text in BatteryInfo so it fits on screen (#437)kieranc1-4/+4
* Modify status text in BatteryInfo so it fits on screen
2021-07-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants9-47/+35
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-11Change step gauge range to 100 and calculate progress as percantage (#468)kieranc1-3/+3
2021-07-07LVGL use system tickRiku Isokoski4-39/+6
2021-07-04Improve stopwatch (#432)Riku Isokoski3-120/+95
* Improve stopwatch more * Make sure sleep gets reenabled * Cleanup and clang-format
2021-07-04Whitespace and brace fixes (#456)Avamander1-16/+13
* Brace style and whitespace fixes * Additional whitespace fixes
2021-07-04clang-formatRiku Isokoski1-6/+7
2021-07-04Condense firmware validation codeRiku Isokoski2-28/+10
2021-07-03Improve paddle gameRiku Isokoski2-126/+50
2021-07-02and metronome icon (#439)Bryton Hall4-7/+19
* add drum icon for metronome app
2021-07-02Float voltage to int (#444)Riku Isokoski3-26/+5
* Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
2021-07-02Fix call notification button alignmentRiku Isokoski1-20/+12
2021-07-02static_cast cleanupAvamander1-2/+2
2021-07-02Fixed a bunch of format specifiersAvamander4-11/+11
2021-06-29Add PineTimeStyle watchface (#334)kieranc8-0/+1729
* 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>
2021-06-26SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix1-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
2021-06-22update main font to keep diffs for future changes small (#420)Florian3-188/+204
* update font with jetbrains mono v2.225 and the current converter * added the tff file for JetBrains Mono to ensure everybody is using the same version Co-authored-by: Florian <florian@florian-thinkpad.local>
2021-06-22Fix typo in variable names (#430)Jonathan Vander Mey2-7/+7
2021-06-22Removed an illogical comparison from SystemInfo and St7789 driver (#449)Avamander1-3/+0
* Removed an illogical comparison
2021-06-19Add support for BMA425 acceleration sensor. (#440)JF0023-8/+25
* Add support for BMA425 acceleration sensor.
2021-06-12Add Init() in DummyuLittleVgl to fix recovery firmwareJean-François Milants1-0/+4
2021-06-12Fix build issues since Metronome app has been merged.Jean-François Milants2-4/+4
2021-06-12add basic metronome app (#409)Bryton Hall6-3/+224
* 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
2021-06-12Merge pull request #405 from Riksu9000/improve_stopwatchJF0021-18/+23
Improve stopwatch
2021-06-12Clock : initialize the actual clockface in initialization list instead of in ↵Jean-François Milants1-19/+12
the core of the ctro().
2021-06-12Merge pull request #425 from Raupinger/remove-watch-tapJF0022-20/+23
Remove tap to switch Watchfaces
2021-06-12Changed the namespace of SystemInfo::sortById to avoid a name conflict (#360)Avamander3-3/+4
2021-06-12Fix scrollbar (#382)Riku Isokoski1-1/+1
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants4-3/+12
initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238.
2021-06-11replace ScreenList with a single screen in Clock. This removes the tap to ↵Florian2-20/+23
switch feature
2021-06-10Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants4-14/+22
code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
2021-06-10Fix stack corruption when exiting an app (the app was destroyed while it was ↵Jean-François Milants2-1/+10
executing the button handler).
2021-06-06Fix build for recovery firmware.Jean-François Milants2-3/+6
2021-06-06Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants6-26/+42
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.
2021-06-01Add the maximum memory used by LVGL in SystemInfo app. This will help the ↵JF0021-1/+3
developers to size the memory buffer allocated to lvgl. (#408)
2021-06-01Enable various compilation flags to reduce the binary size (#401)JF0021-1/+1
* Add the following compilation flags: * -fno-exceptions and -fno-non-call-exceptions : disable exception handling * -fno-rtti : disable run time type information (needed by dynamic_cast, for example) These flags reduce the binary size by about 100KB! Also, -fstack-usage generate debug info (not in final binary) to allow tools like Puncover to do a stack analysis. * Remove unused CMake variables in CMake_nRF5x.cmake (duplicated in src/CMakeLists.txt). Replace -O0 by -Og in DEBUG builds. This generates a smaller binary (small enough for the internal memory) that is debugger friendly.
2021-06-01Navigation app: reduce memory usage (#362)JF0022-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)!
2021-05-26Keep button visible, but disabledRiku Isokoski1-3/+9
2021-05-26improve ui and optimize codeRiku Isokoski1-18/+17
2021-05-21Fix recovery DisplayApp.Jean-François Milants2-4/+7
2021-05-20Timer App (#355)Florian10-19/+262
* 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
2021-05-20removed an empty assignment that caused a compiler warning (#372)Florian1-1/+0