aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* DateTimeController : remove unused methods and variables.Jean-François Milants2021-10-102-81/+9
|
* Merge with develop and fix conflicts from timaios:set-datetime-manually.Jean-François Milants2021-10-102-2/+38
|\
| * Merge branch 'JF002:develop' into set-datetime-manuallyTim2021-08-0811-144/+376
| |\
| * | Exposed Month and DayOfWeek texts in DateTimeControllerTim Taenny2021-07-092-9/+45
| | | | | | | | | | | | | | | Added static methods to return the text of a given month or dayOfWeek.
* | | Merge pull request #719 from Riksu9000/improve_battery_reportingJF2021-10-092-7/+18
|\ \ \ | | | | | | | | Improve battery percentage calculation and reporting
| * | | Don't measure and notify percentage on charging event.Riku Isokoski2021-10-092-2/+7
| | | |
| * | | Improve battery percentage calculation and reportingRiku Isokoski2021-10-042-5/+11
| | | | | | | | | | | | | | | | | | | | While charging, percentage should only go up, and while discharging, percentage should only go down.
* | | | Merge pull request #522 from jonvmey/fix-nav-uuid-docsJF2021-10-092-41/+21
|\ \ \ \ | | | | | | | | | | Fix Navigation Service UUID docs
| * | | | Move callback function into anonymous namespaceJonathan Vander Mey2021-07-241-5/+5
| | | | |
| * | | | Update nav service UUID macro to constexpr functionsJonathan Vander Mey2021-07-242-28/+20
| | | | |
| * | | | Set navigation service id is base UUID macroJonathan Vander Mey2021-07-242-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Avoids the need to copy the same ID into every characteristic UUID genereated from it.
| * | | | Update Navigation UUID documentationJonathan Vander Mey2021-07-241-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Fixed mismatch between the service and characteristic IDs in the navigation service comments and documentation. They had old values not reflecting the current code and changes in doc/ble.md
* | | | Merge pull request #524 from jonvmey/ble-uuid-c-castsJF2021-10-0910-63/+54
|\ \ \ \ | |_|/ / |/| | | Remove unnecessary C-style casts with BLE UUIDs
| * | | Remove unnecessary C-style casts with BLE UUIDsJonathan Vander Mey2021-07-2410-63/+54
| |/ / | | | | | | | | | | | | | | | Instead of casting the UUID object to the ble_uuid_t* used throughout the NimBLE API just pass the address of the ble_uuid_t member that's at the start of each of the UUID structs.
* | | Merge pull request #638 from Riksu9000/detect_full_chargeJF2021-10-032-3/+12
|\ \ \ | | | | | | | | Detect full charge and improve watchface battery display
| * | | Show plug icon while plugged inRiku Isokoski2021-09-221-1/+1
| | | |
| * | | Merge branch 'develop' into detect_full_chargeRiku Isokoski2021-09-2213-84/+313
| |\ \ \
| * | | | Use percentage instead of IsFullRiku Isokoski2021-09-031-4/+0
| | | | |
| * | | | Detect full charge and improve watchface displayRiku Isokoski2021-09-032-3/+16
| | | | |
* | | | | Merge pull request #692 from danielgjackson/fix-fs-sizeJF2021-10-031-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix the size of the filesystem.
| * | | | | Fix the size of the filesystem.Daniel Jackson2021-09-271-1/+1
| | | | | | | | | | | | | | | | | | Correct typo: 0x400000 - 0x0B4000 = 0x34C000.
* | | | | | Remove static declartion on batteryValue preventing read attribute from ↵Tim Keller2021-10-021-1/+1
|/ / / / / | | | | | | | | | | | | | | | updating.
* | | | | Merge pull request #664 from Riksu9000/disable_notif_onlyJF0022021-09-235-32/+10
|\ \ \ \ \ | |_|/ / / |/| | | | Toggle notifications only, keep vibrations.
| * | | | Merge branch 'develop' into disable_notif_onlyRiku Isokoski2021-09-143-46/+87
| |\ \ \ \
| * \ \ \ \ Merge branch 'develop' into disable_notif_onlyRiku Isokoski2021-09-138-38/+38
| |\ \ \ \ \
| * | | | | | Toggle notifications only, keep vibrations.Riku Isokoski2021-09-125-32/+10
| | |_|/ / / | |/| | | |
* | | | | | Fix the display of the date after a reset : when the date/time was restored ↵Jean-François Milants2021-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the noinit area, the date was displayed as "--" instead of the actual date. This issue was caused by DateTime::SetCurrentTime() that would not update the internal state of the class : dayOfWeek, Month, Year were not properly updated according to the current time.
* | | | | | Merge branch 'PersistantStorage' of git://github.com/geekbozu/InfiniTime ↵Jean-François Milants2021-09-182-1/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into geekbozu-PersistantStorage # Conflicts: # src/systemtask/SystemTask.cpp
| * | | | | | Move Backup to the system task.Tim Keller2021-08-192-2/+0
| | | | | | |
| * | | | | | Add clearing of noinit segment on bad wordTim Keller2021-08-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Code readability cleanup
| * | | | | | Make Clock Persistant.Tim Keller2021-08-172-1/+8
| | | | | | |
* | | | | | | resolve conflict in src/systemtask/Messages.hMark Russell2021-09-169-83/+124
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| * | | | | | Remove unused include in MotoController.hReinhold Gschweicher2021-09-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the unused include `app_timer.h` in `MotorController.h`
| * | | | | | Merge branch 'refactor_adv' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants2021-09-132-45/+87
| |\ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into evergreen22-refactor_adv # Conflicts: # src/components/ble/NimbleController.cpp
| | * | | | | Advertise fast for at least 30 secs then slow downJames A. Jerkins2021-09-052-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| | * | | | | Revert "Linear decrease of advert rate to conserve battery"James A. Jerkins2021-09-052-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c32ba844e04017a3fd31444c384deb3542bd76be.
| | * | | | | Linear decrease of advert rate to conserve batteryJames A. Jerkins2021-09-042-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.
| | * | | | | Fix styles issues - no change to functionalityJames A. Jerkins2021-09-011-6/+6
| | | | | | |
| | * | | | | Fix race condition, connect->disconnect->discoveryJames A. Jerkins2021-09-011-1/+3
| | | | | | |
| | * | | | | Completely reset connection state on failJames A. Jerkins2021-08-301-0/+3
| | | | | | |
| | * | | | | WIP Refactor ble advertisingJames A. Jerkins2021-08-292-40/+60
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Refactor ble advertising based on ble standards and conventions. Changes are based on the bleprph example code, bluetooth docs, and nimble docs.
| * | | | | Merge pull request #549 from hubmartin/pinmapJF0022021-09-136-30/+26
| |\ \ \ \ \ | | | | | | | | | | | | | | Put all duplicated GPIO pin definitions to a single file
| | * \ \ \ \ Merge branch 'develop' into pinmaphubmartin2021-09-133-8/+12
| | |\ \ \ \ \
| | * \ \ \ \ \ Merge branch 'develop' into pinmaphubmartin2021-08-291-3/+40
| | |\ \ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | * | | | | | Merge branch 'develop' into pinmaphubmartin2021-08-222-10/+34
| | |\ \ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | * | | | | | Merge branch 'develop' into pinmaphubmartin2021-08-113-67/+26
| | |\ \ \ \ \ \
| | * | | | | | | Rename backlight level pinshubmartin2021-08-041-15/+15
| | | | | | | | |
| | * | | | | | | Cleanup, set Pinetime as defaulthubmartin2021-08-032-1/+1
| | | | | | | | |
| | * | | | | | | PinMap with namespace and constexprhubmartin2021-08-036-29/+24
| | | | | | | | |
| | * | | | | | | DRAFT: Put gpio pins to separate filehubmartin2021-08-021-1/+2
| | | |_|_|_|/ / | | |/| | | | |