CircuitPython library for Circuit Playground Express
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit_circuitpython_circuitplayground-5.3.5.tar.gz
.
File metadata
- Download URL: adafruit_circuitpython_circuitplayground-5.3.5.tar.gz
- Upload date:
- Size: 30.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efb7b5da6e664ece2debd89dcfb263cb815acbe9c185b1f4daafd33a9009d3b2 |
|
MD5 | a006c371637529fcc9da5760ab85d9f1 |
|
BLAKE2b-256 | 79c251798f212233ff75e93f4a954030f1c55d24b541625d0bb859405b0be84f |
File details
Details for the file adafruit_circuitpython_circuitplayground-5.3.5-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_circuitplayground-5.3.5-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 720139054cf171599106441ce850b1081802406e286afafe37c7f3c3499e19b3 |
|
MD5 | 52abaedbf3be026b2ae62804c3435c7a |
|
BLAKE2b-256 | a2da7f1137efe9e8cd201ae5937571c2a22f19823032948b2c9151208307b981 |