A rhythm game for the Adafruit Circuit Playground Express.
- Install the
Arduino SAMD
board profile and theAdafruit Circuit Playground
andAsyncDelay
libraries using the Arduino IDE or CLI
arduino-cli core install arduino:samd
arduino-cli lib install 'Adafruit Circuit Playground'
arduino-cli lib install AsyncDelay
- Compile and upload Beat Playground to your Circuit Playground Express using the Arduino IDE or CLI
arduino-cli compile beat-playground --fqbn arduino:samd:adafruit_circuitplayground_m0
arduino-cli upload beat-playground --port /dev/ttyACM0
- Use the left and right buttons to select a song (see list of songs below). The current selected song number will be displayed on the NeoPixels
- "Tap" the air with the board (as if you're hitting a drum) to start the song
- Tap along with the melody. Green lights indicate a correct tap and red lights indicate an incorrect (out of time) tap
- When the song ends, your score (1-10) will be displayed on the NeoPixels
- Tap or press either button to return to the song selection menu
- Twinkle Twinkle Little Star
- Centuries (Fall Out Boy)
- Blinding Lights (The Weeknd)
- Counting Stars (OneRepublic)
Declared at the top of beat-playground/beat-playground.ino
Name | Default | Description |
---|---|---|
ACCELERATION_THRESHOLD |
20 |
The minimum net acceleration for a tap to be registered (in m/s^2). Update to adjust the sensitivity of the tap detector. |
TIMING_THRESHOLD |
100 |
The maximum offset of a correct tap (in ms). Update to adjust the difficulty. |
SENSOR_REFRESH_PERIOD |
50 |
How often the program tries to detect a tap (in ms). This should be less than TIMING_THRESHOLD . |