diff options
| author | David Ventura <davidventura27@gmail.com> | 2021-05-16 19:13:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-16 19:13:22 (GMT) |
| commit | 9342d62a44830113241f0fdbc2951db93e474e26 (patch) | |
| tree | 20094e33a7eb84060af9976433f54cb58fb1b1cb /src/systemtask/SystemTask.h | |
| parent | 5b2472c4bc84bbdd5e8326ea7562f6bc133cf00e (diff) | |
Emit event on power-present toggle (#320)
* Emit event on power-present toggle
* clang-format on changes
* also update battery status on any event
* update comments; remove double battery update
* Fix formatting
* Vibrate shortly on charging event
* debounce charge event
Diffstat (limited to 'src/systemtask/SystemTask.h')
| -rw-r--r-- | src/systemtask/SystemTask.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h index e65fbea..52e71b1 100644 --- a/src/systemtask/SystemTask.h +++ b/src/systemtask/SystemTask.h @@ -55,7 +55,8 @@ namespace Pinetime { OnDisplayTaskSleeping, EnableSleeping, DisableSleeping, - OnNewDay + OnNewDay, + OnChargingEvent }; SystemTask(Drivers::SpiMaster& spi, @@ -121,6 +122,7 @@ namespace Pinetime { static constexpr uint8_t pinLcdDataCommand = 18; static constexpr uint8_t pinButton = 13; static constexpr uint8_t pinTouchIrq = 28; + static constexpr uint8_t pinPowerPresentIrq = 19; static void Process(void* instance); void Work(); |
