Use push button to go to sleep/wake up.

Use a queue to transmit messages between system and display task (sleep & wake up for now).
This commit is contained in:
JF
2019-12-26 18:33:40 +01:00
parent 9a379e180f
commit 75e74904e8
5 changed files with 125 additions and 26 deletions

View File

@@ -28,6 +28,9 @@ I've tested this project on the actual PineTime hardware.
* One big font to display the time (hours : minutes)
* BLE advertising, connection and bonding
* BLE CTS client (retrieves the time from the connected device if it implements a CTS server)
* Push button to go to disable screen (and go to low power mode) / enable screen (and wake-up). **NOTE** : I'm not completely sure the power consumption is optimal, especially in sleep mode. Any help to measure and debug this is welcome.
## How to build