Skip to main content

CircuitPython library for Circuit Playground Express

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

This high level library provides objects that represent Circuit Playground Express and Bluefruit hardware.

Circuit Playground Express Circuit Playground Bluefruit

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_circuitplayground-5.3.11.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_circuitplayground-5.3.11.tar.gz
Algorithm Hash digest
SHA256 5a6e99561cbe45e31d85a72087eeb15bb6faa90709871f63dc126dc3b9b1cb4b
MD5 4433fc9ddb2ac005b3780bee2414f1df
BLAKE2b-256 6408e8e0602dc38b0573c911fb2b3bcc5343029871ef19be37c6290691f99b8e

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_circuitplayground-5.3.11-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_circuitplayground-5.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 11cae47b5c2bb7df920e4baddc9912d561dec863dff4833c211306742ab11138
MD5 67aacd7b69de7ce27a308cd3e0029086
BLAKE2b-256 c3ed77a0cf8745eb27ab59a3cce03f292855bda6e581424efe3f5223d58bc90f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page