summaryrefslogtreecommitdiff
path: root/src/components
AgeCommit message (Collapse)Author
2021-09-13Remove unused include in MotoController.hReinhold Gschweicher
Remove the unused include `app_timer.h` in `MotorController.h`
2021-09-13Merge branch 'refactor_adv' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants
into evergreen22-refactor_adv # Conflicts: # src/components/ble/NimbleController.cpp
2021-09-13Merge pull request #549 from hubmartin/pinmapJF002
Put all duplicated GPIO pin definitions to a single file
2021-09-13docs: Fix a few typos (#606)Tim Gates
* docs: Fix a few typos There are small typos in: - doc/versioning.md - src/components/ble/NimbleController.cpp - src/libs/mynewt-nimble/CODING_STANDARDS.md - src/libs/mynewt-nimble/docs/btshell/btshell_GAP.rst - src/systemtask/SystemTask.cpp Fixes: - Should read `milliseconds` rather than `miliseconds`. - Should read `unnecessary` rather than `uncesseray`. - Should read `target` rather than `tharget`. - Should read `project` rather than `projct`. - Should read `preferred` rather than `prefered`. - Should read `functioning` rather than `functionning`. - Should read `forever` rather than `forver`. - Should read `existing` rather than `exisiting`.
2021-09-13Merge branch 'develop' into pinmaphubmartin
2021-09-12Merge pull request #617 from ColinKinloch/wake_up_mode_setting_changeJF002
Correct change test for wake up mode setting
2021-09-05Advertise fast for at least 30 secs then slow downJames A. Jerkins
On power up, advertise aggressively for at least 30 seconds then switch to a longer interval to conserve battery life. This fast/slow pattern is designed to balance connection response time and battery life. When a disconnect event is received restart the fast/slow pattern. When a failed connect event is received, restart the fast/slow pattern. When the screen is activated and ble is not connected, restart the fast/slow pattern. This pattern is consistent with Apple's BLE developer standards (QA 1931).
2021-09-05Revert "Linear decrease of advert rate to conserve battery"James A. Jerkins
This reverts commit c32ba844e04017a3fd31444c384deb3542bd76be.
2021-09-04Linear decrease of advert rate to conserve batteryJames A. Jerkins
Start advertising aggressively when powered on then slow down linearly over 75 seconds. This will conserve battery by not advertising rapidly the whole time we are seeking a connection. The slowest rate is approximately once every 4.5 seconds to balance responsiveness and battery life. We use a fixed advertising duration of 5 seconds and start with a 62.5 ms advertising interval. Every 5 seconds (the advertising duration) we step up to a larger advertising interval (slower advertising). We continue to increase the advertising interval linearly for 75 seconds from the start of advertising. At 75 seconds we have an advertising interval of 4.44 seconds which we keep until connected. A reboot will restart the sequence. When we receive a disconnect event we restart the sequence with fast advertising and then slow down as described above. Note that we are not using the BLE high duty cycle setting to change the advertising rate. The rate is managed by repeatedly setting the minimum and maximum intervals. The linear rate of decrease and the slowest interval size were determined experimentally by the author. The 5.3 Core spec suggests that you not advertise slower than once every 1.2 seconds to preserve responsiveness but we ignored that suggestion.
2021-09-02Fix styles issues - no change to functionalityJames A. Jerkins
2021-09-02Fix race condition, connect->disconnect->discoveryJames A. Jerkins
2021-08-31Completely reset connection state on failJames A. Jerkins
2021-08-30Merge remote-tracking branch 'upstream/develop' into timer_battery_readingRiku Isokoski
2021-08-29WIP Refactor ble advertisingJames A. Jerkins
Refactor ble advertising based on ble standards and conventions. Changes are based on the bleprph example code, bluetooth docs, and nimble docs.
2021-08-29Merge branch 'develop' into pinmaphubmartin
2021-08-28Settings : use enums instead of ints to store colors. Group all PTS settings ↵Jean-François Milants
into a struct. PTS/SettingsPTS : Convert to/from LVGL color and Settings::Color, add functions to reduce code duplication. Adapt SettingPineTimeStyle with the last Screen Interface
2021-08-26Correct change test for wake up mode settingColin Kinloch
2021-08-22Merge branch 'develop' into pinmaphubmartin
2021-08-15Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray
2021-08-14Merge branch 'develop' into timer_battery_readingRiku Isokoski
2021-08-14Merge branch 'call-improvements' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants
into Riksu9000-call-improvements # Conflicts: # src/displayapp/screens/Metronome.cpp
2021-08-14Make battery reading periodic. Add events. Disable pullupRiku Isokoski
2021-08-12Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray
2021-08-11Merge branch 'develop' into pinmaphubmartin
2021-08-10Merge pull request #483 from Riksu9000/fix_adcJF002
Fix misconfigured ADC and remove now unnecessary filtering
2021-08-10Code cleaning in Clock, WatchFaceAnalog, WatchFaceDigital and PineTimeStyle, ↵Jean-François Milants
inspired by PR #232 by nscooling.
2021-08-04Rename backlight level pinshubmartin
2021-08-03Cleanup, set Pinetime as defaulthubmartin
2021-08-03PinMap with namespace and constexprhubmartin
2021-08-02DRAFT: Put gpio pins to separate filehubmartin
2021-08-01Remove floating point calculationRiku Isokoski
2021-08-01ImprovementsRiku Isokoski
2021-08-01Merge branch 'develop' into HEADRiku Isokoski
2021-07-27Increase ADC precisionRiku Isokoski
2021-07-27Merge branch 'develop' into fix_adcRiku Isokoski
2021-07-25Increment settings value, remove old hacky fixKieran Cawthray
2021-07-23Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray
2021-07-22Make firmware updating more foolproof (#469)Riku Isokoski
* 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
2021-07-20Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray
2021-07-14Multiple wakeup sources (#290)Kozova1
* 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-13Merge branch 'develop' into fix_adcRiku Isokoski
2021-07-12Fix misconfigured ADC and remove now unnecessary filteringRiku Isokoski
2021-07-12Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray
2021-07-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-11Using littlefs (#438)joaquim.org
* add submodule littlefs * base fs * Save settings using littlefs * Small fixes and suggestions from PR * More small fixes from PR suggestions * Code clean up * Change SpiNorFlash functions to be private in FS
2021-07-04Whitespace and brace fixes (#456)Avamander
* Brace style and whitespace fixes * Additional whitespace fixes
2021-07-02Inititialize members in class declarationJonathan Vander Mey
Also added initializers for previously unintialized members.
2021-07-02Move local-only function into anonymous namespaceJonathan Vander Mey
2021-07-02Make MusicService UUID objects static constexprJonathan Vander Mey
2021-07-02Eliminate reinterpret_castingJonathan Vander Mey