Skip to content

MiP_Shake

github-actions[bot] edited this page Aug 11, 2026 · 9 revisions

Class MiP_Shake

Manages MiP's shake event detection system.

Detailed Description

Monitors physical shake events detected by MiP's internal accelerometers and maintains internal state flags for one-shot event reading.

Table of Contents


Public Functions

read

Signature: bool read()

Summary: Checks whether MiP has been shaken since the last call.

Details:

Flushes pending serial transport data, inspects the internal shake flag, and clears the flag after returning true (one-shot detection).

Returns: true if a shake was detected since the last call, false otherwise.


Clone this wiki locally