In development. It changes without notice.
Topic
Motion & Shake-to-Lock
The shake that locks the device, and the motion sensor behind it.
The sensor is read once for each sample it makes. Where the board wires its interrupt, the sensor watches for motion by itself and nothing is read while the board lies still. The gesture is a setting.
Files | |
| file | src/ |
| Application-facing alias for the IMU driver interface. | |
| file | src/ |
| A board's wire from its IMU's motion interrupt to a pin that wakes the SoC. | |
| file | src/ |
| Detects sharp device movement via the IMU to trigger lock. | |
| file | src/ |
| Where a screen's shake gesture gets its acceleration from. | |
Classes | |
| class | kleidos:: |
| The IMU's motion interrupt as the SoC sees it. Called from the main loop only. More about kleidos:: | |
| class | kleidos:: |
| Shake-to-lock gesture detector with NVS-persisted settings. More about kleidos:: | |
| class | kleidos:: |
| The acceleration samples a shake gesture is judged on. More about kleidos:: | |