Learn
Congratulations! You have learned how to program Adafruit’s Circuit Playground Express. Here are some of the things we learned:
- Audio Output
cpx.play_file("sad.wav")
cpx.play_tone(262, 1.0)
- Capacitive Touches:
cpx.touch_A1
- Temperature Sensor:
cpx.temperature
- Light Sensor:
cpx.light
Here is the Circuit Playground Cheatsheet.
Note: There are actually two ways to get audio output, one is via the small built-in speaker. The other is by using alligator clips to connect a headphone or powered speaker to the A0
pin!
Instructions
If you are still feeling iffy about using the code, take a look at the Learn Python 3.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.