Skip to main content

CircuitPython library for Pixie chainable 3W smart LED.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-pixie

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-pixie

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-pixie

Usage Example

import time
import board
from rainbowio import colorwheel
import adafruit_pixie
import busio

uart = busio.UART(board.TX, rx=None, baudrate=115200)

num_pixies = 2  # Change this to the number of Pixies LEDs you have.
pixies = adafruit_pixie.Pixie(uart, num_pixies, brightness=0.2, auto_write=False)


while True:
for i in range(255):
    for pixie in range(num_pixies):
        pixies[pixie] = colorwheel(i)
    pixies.show()

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

adafruit_circuitpython_pixie-1.2.22.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

adafruit_circuitpython_pixie-1.2.22-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file adafruit_circuitpython_pixie-1.2.22.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_pixie-1.2.22.tar.gz
Algorithm Hash digest
SHA256 72d3e9d8f676df683a8bf4db82ab4e199efbde92dcc68199317e5ea30b7bd8b5
MD5 242ea58c64ec40884ab1a0ac7d9977fd
BLAKE2b-256 08661d57ee31348390b7e221735b5b36c32113ac01827c44fb13db2ead409c94

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_pixie-1.2.22-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_pixie-1.2.22-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d22a33d5487ad01fd7ad6a4862699c06a2a43b9eadab12d5c4f03bd86dedd3
MD5 b62ad8fd234fa720e089b001e1beceb8
BLAKE2b-256 110e4e60e5d93d32ac07b905952f319c079a0fd3295df9135964d6132aa2a13c

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