Shake. Shake. Shake!
@kattni added shake detection support with shake()
. It requires CircuitPython 2.2.0 (which will be released soon) or newer.
The library will also prefer loading frozen versions of its dependencies to save memory.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle or the zip from here that matches the version of CircuitPython you are using.
Read the docs for info and examples.