Skip to content

Now detects board type automatically

Compare
Choose a tag to compare
@kattni kattni released this 17 Dec 22:37
82ba9e4

THIS IS A BREAKING CHANGE FOR THE UPDATED EXAMPLES - all updated examples use the new import type now, and therefore require the latest version of the library. However, all previous code will continue to work as-is.

You can now from adafruit_circuitplayground import cp and it will detect whether you are using a Circuit Playground Express or Circuit Playground Bluefruit and import the appropriate module.

REQUIRES LATEST CHANGES TO CIRCUITPYTHON TO USE ON CIRCUIT PLAYGROUND EXPRESS. Always update to the latest CircuitPython.

Both from adafruit_circuitplayground.express import cpx and from adafruit_circuitplayground.bluefruit import cpb still work, so all previous example code will continue to work with the updated library.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.