Circuit Playground: Part 1

Congratulations! We have learned the basics of Adafruit’s Circuit Playground Express using CircuitPython. 🙌

Here are some of the things we learned:

  • The cpx module has a lot of nifty functions.
  • What NeoPixels are and how to give them colors individually/together:
cpx.pixels[index] = (red, green, blue)
cpx.pixels.fill( (red, green, blue) )
  • Slide Switch: cpx.switch
  • Button A: cpx.button_a
  • Button B: cpx.button_b

Here is a Circuit Playground Cheatsheet.


If you are still feeling iffy about some of the code, take a look at the Learn Python 3 course.

Folder Icon

Sign up to start coding

Already have an account?