summaryrefslogtreecommitdiff
path: root/src/systemtask
AgeCommit message (Collapse)AuthorFilesLines
2021-09-23Merge pull request #664 from Riksu9000/disable_notif_onlyJF0021-3/+5
Toggle notifications only, keep vibrations.
2021-09-18Merge branch 'PersistantStorage' of git://github.com/geekbozu/InfiniTime ↵Jean-François Milants2-0/+2
into geekbozu-PersistantStorage # Conflicts: # src/systemtask/SystemTask.cpp
2021-09-16resolve conflict in src/systemtask/Messages.hMark Russell3-39/+43
2021-09-16Revert "Merge upstream"Mark Russell3-43/+39
This reverts commit 1d43adcdfa7bd15ba45c0c9d7c59c0ff99176b9c.
2021-09-16Merge upstreamMark Russell3-39/+43
2021-09-16Fixes per Riksu9000's feedbackMark Russell1-1/+1
2021-09-14Merge branch 'develop' into disable_notif_onlyRiku Isokoski1-2/+3
2021-09-13Fixes based on code reviews (formatting, UI code)Mark Russell1-2/+1
2021-09-13Merge branch 'develop' into disable_notif_onlyRiku Isokoski3-37/+40
2021-09-13Merge branch 'refactor_adv' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants1-2/+3
into evergreen22-refactor_adv # Conflicts: # src/components/ble/NimbleController.cpp
2021-09-13Merge pull request #549 from hubmartin/pinmapJF0022-18/+12
Put all duplicated GPIO pin definitions to a single file
2021-09-13docs: Fix a few typos (#606)Tim Gates1-1/+1
* 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 pinmaphubmartin3-18/+27
2021-09-12Toggle notifications only, keep vibrations.Riku Isokoski1-3/+5
2021-09-10Created basic alarm appMark Russell3-1/+20
2021-09-05Advertise fast for at least 30 secs then slow downJames A. Jerkins1-0/+3
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-08-30Merge remote-tracking branch 'upstream/develop' into timer_battery_readingRiku Isokoski1-6/+8
2021-08-29WIP Refactor ble advertisingJames A. Jerkins1-2/+0
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 pinmaphubmartin2-29/+30
2021-08-28Fix wake on tap/double tap.Jean-François Milants1-6/+8
2021-08-28Merge branch 'develop' into timer_battery_readingRiku Isokoski2-23/+22
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 Milants1-16/+5
into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
2021-08-22Merge branch 'develop' into pinmaphubmartin1-3/+2
2021-08-19Move Backup to the system task.Tim Keller2-0/+2
2021-08-18Merge branch 'develop' into new_touch_handlerRiku Isokoski1-3/+2
2021-08-14Merge branch 'develop' into timer_battery_readingRiku Isokoski1-3/+2
2021-08-14Make battery reading periodic. Add events. Disable pullupRiku Isokoski3-18/+27
2021-08-10Make diff smaller and revert some changes in DisplayAppRiku Isokoski1-0/+1
2021-08-10Rework TouchHandler into not a taskRiku Isokoski1-3/+5
2021-08-10Only enable the bus when neededRiku Isokoski1-9/+0
2021-08-03PinMap with namespace and constexprhubmartin2-18/+11
2021-08-02DRAFT: Put gpio pins to separate filehubmartin1-1/+2
2021-08-01Remove leftoverRiku Isokoski1-5/+0
2021-08-01ImprovementsRiku Isokoski1-4/+5
2021-08-01Merge branch 'develop' into HEADRiku Isokoski3-99/+208
2021-07-25Merge branch 'develop' into new_touch_handlerRiku Isokoski2-12/+36
2021-07-24Dim screen before sleep (#464)Riku Isokoski2-14/+38
* Implement dimming
2021-07-23Merge branch 'develop' into new_touch_handlerRiku Isokoski1-3/+8
2021-07-22Make firmware updating more foolproof (#469)Riku Isokoski1-3/+8
* 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-18UpdateRiku Isokoski1-0/+3
2021-07-16Fix touch wakeup and code cleanupRiku Isokoski2-23/+28
2021-07-16Fix most issuesRiku Isokoski1-1/+1
2021-07-15New touch handler, with issuesRiku Isokoski1-1/+0
2021-07-14Multiple wakeup sources (#290)Kozova11-9/+9
* 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-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2-0/+7
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-11Using littlefs (#438)joaquim.org2-7/+16
* 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-06-26SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix1-0/+4
* 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-19Add support for BMA425 acceleration sensor. (#440)JF0021-0/+1
* Add support for BMA425 acceleration sensor.
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants1-1/+2
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.