summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-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-30Completely reset connection state on failJames A. Jerkins1-0/+3
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-18Add memory print usagehubmartin1-6/+6
2021-08-18Fix music app buttonsRiku Isokoski1-1/+1
2021-08-15Adjust inner padding in applistRiku Isokoski1-1/+1
2021-08-15Clean up using variablesRiku Isokoski1-10/+16
2021-08-15Adjust previously missed scrollbar and firmware validation buttonsRiku Isokoski2-11/+11
2021-08-15Add image with example layoutsRiku Isokoski2-0/+2
2021-08-15Ui updateRiku Isokoski10-107/+113
2021-08-14Merge branch 'Riksu9000-call-improvements' into developJean-François Milants8-70/+87
2021-08-14Merge branch 'call-improvements' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants8-70/+87
into Riksu9000-call-improvements # Conflicts: # src/displayapp/screens/Metronome.cpp
2021-08-14Add VSCode ST-link debug config (#567)Martin Hub1-1/+19
2021-08-14Improve metronomeRiku Isokoski3-99/+69
2021-08-14Set pin before loopRiku Isokoski1-0/+1
2021-08-14Better pin configurationRiku Isokoski1-1/+6
2021-08-14Try to fix bootloopRiku Isokoski1-0/+9
2021-08-14Update contribute.md (#475)Riku Isokoski2-51/+40
* Update contribute.md * Add newlines and remove spaces * Replace CONTRIBUTING.md with doc/contribute.md
2021-08-10Merge pull request #505 from geekbozu/devconJF00216-59/+473
VSCode Devcontainer
2021-08-10Merge pull request #483 from Riksu9000/fix_adcJF0022-58/+17
Fix misconfigured ADC and remove now unnecessary filtering
2021-08-10Merge branch 'hassless-improve-battery-percentage-to-battery-icon-mapping' ↵Jean-François Milants1-4/+4
into develop
2021-08-10Merge branch 'improve-battery-percentage-to-battery-icon-mapping' of ↵Jean-François Milants1-4/+4
https://github.com/hassless/InfiniTime into hassless-improve-battery-percentage-to-battery-icon-mapping # Conflicts: # src/displayapp/screens/BatteryIcon.cpp
2021-08-10Code cleaning in Clock, WatchFaceAnalog, WatchFaceDigital and PineTimeStyle, ↵Jean-François Milants9-156/+60
inspired by PR #232 by nscooling.
2021-08-09Setup plugins for Clang-tidy/formatTim Keller3-3/+6
2021-08-08Fix intellisenseTim Keller1-1/+1
2021-08-07Typos for daysTim Keller2-18/+18
2021-08-07Updated documentationTim Keller6-8/+54
2021-08-07Added cmake variantsTim Keller12-69/+245
2021-08-07added extra .sh build filesNiall Cooling3-0/+21
2021-08-07added clang-tidy/format to containerNiall Cooling1-0/+2
2021-08-07added dos2unix to docker for Win10 and default to release buildNiall Cooling3-3/+5
2021-08-07macOS and Win10 dockerfileNiall Cooling3-3/+7
2021-08-07removed dependency on build.shAzureAD\NiallCooling1-5/+12
2021-08-07added devcontainer filesNiall Cooling3-0/+153
2021-08-01Remove leftoverRiku Isokoski1-5/+0
2021-08-01Remove floating point calculationRiku Isokoski1-2/+2
2021-08-01FixesRiku Isokoski3-12/+21
2021-08-01ImprovementsRiku Isokoski8-131/+70
2021-08-01Merge branch 'develop' into HEADRiku Isokoski139-1792/+5337
2021-07-27Increase ADC precisionRiku Isokoski1-4/+4
2021-07-27Merge branch 'develop' into fix_adcRiku Isokoski45-312/+480
2021-07-25Tile event handler : read the event data only if the event is a "value ↵Jean-François Milants2-9/+11
changed event". LVGL sends many other event and some of them do not set the event data (global static variable) to a valid address, which may cause an invalid read. I noticed that when porting this class on RISC-V platform (BL602).
2021-07-25Fix compile warningsJonathan Vander Mey2-0/+3
2021-07-25Fix slow scrollRiku Isokoski2-4/+1
2021-07-25Correct spelling issue in documentation (#509)Grant7-9/+9
* Correct spelling issue
2021-07-25Fix cases where Get() isn't usedRiku Isokoski1-2/+6
2021-07-25Add new unique icons for some appsRiku Isokoski7-49/+79
2021-07-25Add task state info to SystemInfoRiku Isokoski1-10/+32