Introduction¶
This high level library provides objects that represent Circuit Playground Express and Bluefruit hardware.
Installation¶
For Circuit Playground Express, simply install CircuitPython to use this library - the library itself and all of its dependencies are built into CircuitPython for Circuit Playground Express.
For Circuit Playground Bluefruit, you must install this library and all of its dependencies. Please download the latest Adafruit CircuitPython library bundle. Open the resulting zip file, open the lib folder within, and copy the following folders and files to the lib folder on your CIRCUITPY drive:
adafruit_bus_device/
adafruit_circuitplayground/
adafruit_lis3dh.mpy
adafruit_thermistor.mpy
neopixel.mpy
Usage Example¶
Using this library is super simple. Simply import the cp
variable from the module and then use it.
from adafruit_circuitplayground import cp
while True:
if cp.button_a:
print("Temperature:", cp.temperature)
cp.red_led = cp.button_b
To learn more about all the features of this library, check out the CircuitPython Made Easy on Circuit Playground Express and Bluefruit guide on the Adafruit Learn System.
Circuit Playground Library Details¶
For a detailed explanation of how the Circuit Playground library functions, see The Technical Side page of the CircuitPython Made Easy on Circuit Playground Express and Bluefruit guide.
Documentation¶
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing¶
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Table of Contents¶
adafruit_circuitplayground.circuit_playground_base
CircuitPlaygroundBase
CircuitPlaygroundBase.acceleration
CircuitPlaygroundBase.adjust_touch_threshold()
CircuitPlaygroundBase.button_a
CircuitPlaygroundBase.button_b
CircuitPlaygroundBase.configure_tap()
CircuitPlaygroundBase.detect_taps
CircuitPlaygroundBase.light
CircuitPlaygroundBase.pixels
CircuitPlaygroundBase.play_file()
CircuitPlaygroundBase.play_tone()
CircuitPlaygroundBase.red_led
CircuitPlaygroundBase.shake()
CircuitPlaygroundBase.start_tone()
CircuitPlaygroundBase.stop_tone()
CircuitPlaygroundBase.switch
CircuitPlaygroundBase.tapped
CircuitPlaygroundBase.temperature
CircuitPlaygroundBase.touch_A1
CircuitPlaygroundBase.touch_A2
CircuitPlaygroundBase.touch_A3
CircuitPlaygroundBase.touch_A4
CircuitPlaygroundBase.touch_A5
CircuitPlaygroundBase.touch_A6
CircuitPlaygroundBase.touch_TX
CircuitPlaygroundBase.touch_pins
CircuitPlaygroundBase.touched
Photocell
adafruit_circuitplayground.bluefruit
Bluefruit
cpb
adafruit_circuitplayground.express
Express
cpx