summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-09-05Revert "Linear decrease of advert rate to conserve battery"James A. Jerkins2-6/+0
This reverts commit c32ba844e04017a3fd31444c384deb3542bd76be.
2021-09-04Linear decrease of advert rate to conserve batteryJames A. Jerkins2-0/+6
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-03Use percentage instead of IsFullRiku Isokoski2-5/+1
2021-09-03Auto realign battery icon in Analog watch faceRiku Isokoski1-0/+1
2021-09-03Detect full charge and improve watchface displayRiku Isokoski9-26/+75
2021-09-02Add some commentsTim Keller1-2/+6
2021-09-02Update Settings.cppItai Nelken1-2/+2
2021-09-01Fix styles issues - no change to functionalityJames A. Jerkins1-6/+6
2021-09-01Fix race condition, connect->disconnect->discoveryJames A. Jerkins1-1/+3
2021-08-31Fix notifications that wouldn't auto close when the timeout elapsed (in ↵Jean-François Milants1-1/+0
preview mode).
2021-08-30Completely reset connection state on failJames A. Jerkins1-0/+3
2021-08-30Merge remote-tracking branch 'upstream/develop' into timer_battery_readingRiku Isokoski80-313/+686
2021-08-29WIP Refactor ble advertisingJames A. Jerkins4-46/+67
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 pinmaphubmartin94-540/+969
2021-08-29Let lvgl control queueTimeoutRiku Isokoski2-22/+4
2021-08-28Fix wake on tap/double tap.Jean-François Milants1-6/+8
2021-08-28Settings : use enums instead of ints to store colors. Group all PTS settings ↵Jean-François Milants8-116/+144
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-28Merge pull request #458 from kieranc/pinetimestyle-colorpickerJF00210-18/+465
Add color picker for PineTimeStyle watchface
2021-08-28Merge branch 'develop' into refresh_reworkRiku Isokoski29-234/+292
2021-08-28Merge branch 'develop' into update_touch_driverRiku Isokoski30-209/+273
2021-08-28Merge branch 'develop' into fit_more_tasksRiku Isokoski50-743/+666
2021-08-28Merge branch 'develop' into timer_battery_readingRiku Isokoski35-351/+407
2021-08-28Fix recovery firmware since last changes in DisplayApp.Jean-François Milants3-2/+11
2021-08-28Fix touchinfo typo in SystemTask.Jean-François Milants1-1/+1
2021-08-28Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants4-88/+49
into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
2021-08-26Correct change test for wake up mode settingColin Kinloch1-1/+1
2021-08-23Remove commented commands completelyhubmartin2-11/+0
2021-08-23Merge branch 'develop' into wake-timehubmartin2-7/+7
2021-08-22Update startup SCL toggling pinmap definitionshubmartin1-4/+5
2021-08-22Merge branch 'develop' into pinmaphubmartin20-290/+290
2021-08-19Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray2-7/+7
2021-08-19Remove unused variablesRiku Isokoski4-18/+2
2021-08-19Move Backup to the system task.Tim Keller4-2/+2
2021-08-19Add clearing of noinit segment on bad wordTim Keller3-7/+12
Code readability cleanup
2021-08-18Merge branch 'develop' into new_touch_handlerRiku Isokoski20-290/+289
2021-08-18Use highest frequency and move mutex creation to InitRiku Isokoski2-3/+6
2021-08-18Add memory print usagehubmartin1-6/+6
2021-08-18Fix music app buttonsRiku Isokoski1-1/+1
2021-08-18Automatic error detectionRiku Isokoski10-9/+121
2021-08-17Make Clock Persistant.Tim Keller3-2/+18
2021-08-17Fix after mergeRiku Isokoski1-1/+1
2021-08-17Merge branch 'develop' into update_touch_driverRiku Isokoski52-711/+673
2021-08-16Simplify parameters and cleanupRiku Isokoski3-48/+19
2021-08-15Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpickerKieran Cawthray19-283/+283
2021-08-15Remove LCD reset and more cmds, save over 200mshubmartin1-8/+8
2021-08-15Remove unnecessary pin_set, save 50mshubmartin1-2/+2
2021-08-15Fix potential edge case of sidebar being set blackKieran Cawthray1-1/+1
2021-08-15More tidying following reviewKieran Cawthray1-85/+88
2021-08-15Avoid setting the sidebar blackKieran Cawthray1-0/+4
2021-08-15Remove duplicate code, minor fixesKieran Cawthray1-33/+19