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.21.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.21-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_pixie-1.2.21.tar.gz
Algorithm Hash digest
SHA256 ac01a6ffbea1ef57ceaa26b0427c81572e270fac22de2ae200c883af5240ee95
MD5 750e641f29e0fe42a924e8af58c13073
BLAKE2b-256 35ab8753d08b87a4c3dd4f5f7fa889c2890fdfebd0d180c9f9e1852cca6ea146

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_pixie-1.2.21-py3-none-any.whl
Algorithm Hash digest
SHA256 1573e07886184885d4b7c5e7099d9fc42813bf48223f1c1931d2207fbcd639d2
MD5 2905db18414e6e6485d76c4e2e92ad70
BLAKE2b-256 ab6ccc194a9b5c09118702412017cc8807577409d5ae6ed27971cabf9159b178

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