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.2.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-circuitplayground-5.3.2.tar.gz
- Upload date:
- Size: 30.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bca491a3d833f8aeed0d49ea82ba4f4abd945791b98a2d6e7a65344ac012ec |
|
MD5 | e0a17e93c9b1729637fc24fa777e5fb4 |
|
BLAKE2b-256 | e3807ee1421b0b0b8b3d85cedef5d739e7f6c89bcdb0b057d2941d612e564f79 |
File details
Details for the file adafruit_circuitpython_circuitplayground-5.3.2-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_circuitplayground-5.3.2-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 625fe38d38c9ddee01499478b72f0647787ee9a4a75cd32587ef40d7d76e131f |
|
MD5 | 7c147d67f26df666561e6cbecb3aaa02 |
|
BLAKE2b-256 | f17e5bbac7d7b456d24349772f3242fd4483c18c9b672c6b358734db8d20132d |