In this recipe, we will learn how to make the board beep every time you give it a shake. This is an interesting way to make the board respond to motion. The same approach can be used to make pixels respond to shakes instead of just beeps.
Beeping on a shake
Getting ready
You will need access to the REPL on Circuit Playground Express to run the code presented in this recipe.
How to do it...
Follow these steps to learn how to make the board beep every time you shake it:
- Run the following lines of code in the REPL; you should hear a beep:
>>> from adafruit_circuitplayground...