We wrapped up everything you need to run Arduino code on your Circuit Playground is wrapped up into a tidy library that integrates all the sensing and lighting.

Installing Via Library Manager

The Circuit Playground library is available on the Adafruit GitHub website.  The library is installed in versions of the Arduino IDE greater than 1.6.7 as follows:

  • In the menu click "Sketch", then "Include Library"
  • At the top, click "Manage Libraries. . ."
  • Type "Circuit Playground" in the search box.  You should see Adafruit Circuit Playground listed.

Download Adafruit_CircuitPlayground 'Manually'

To begin working with Circuit Playground, you will need to download Adafruit_CircuitPlayground from our github repository. You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip

Rename the uncompressed folder Adafruit_CircuitPlayground and check that the Adafruit_CircuitPlayground folder contains Adafruit_CircuitPlayground.cpp and Adafruit_CircuitPlayground.h

Place the Adafruit_CircuitPlayground folder your arduinosketchfolder/libraries/ folder.
You may need to create the libraries subfolder if its your first library. Restart the IDE.

We also have a great tutorial on Arduino library installation at:

Run the Demo

Plug in your Circuit Playground. Under Windows you'll need to make sure you have installed the driver package. Do that if you haven't!

Next, you'll also need to make sure you have installed the Adafruit Board Support package. That's required no matter what computer you're using.

Select the Circuit Playground Board

Under the Tools -> Board submenu, scroll down to Adafruit Boards and pick Adafruit Circuit Playground

Select the matching Port

Under Tools->Port select the port that is labed (Circuit Plaground)

Load the Demo Program

OK you're now ready to load the demo. Under File->Examples locate Adafruit CircuitPlayground and then select the demo program.

Compile/Verify the Demo

Click the Verify button (also the Sketch->Verify menu item) to compile/verify the demo. Make sure you get "Done compiling." and no errors

Upload Demo

Click the Upload button to upload the code

You should get a Done uploading. message in the blue statusbar

You can now run the serial console to get data output:

You'll get information such as:

  • "Capacitive touch" readings for all 8 outer pads (under 50 means not touched, over 100 usually means the pads are touched)
  • Slide switch location (left or right)
  • If the Right and Left buttons are pressed
  • Light sensor readings, higher values mean more light
  • Sound sensor readings
  • X, Y and Z accelerometer readings
  • Temperature in Celcius
Last updated on 2017-10-13 at 01.25.39 PM Published on 2016-04-26 at 12.23.18 PM