In this recipe, we will learn how to configure the board to detect single or double taps. Sensor data from the accelerometer will be used to detect these tap events. This recipe shows you how to create applications that can react to people tapping the board.
Detecting a single or double tap
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 detect a single or double tap:
- Execute the following block of code in the REPL:
>>> from adafruit_circuitplayground...