PIO-driven 8-way concurrent NeoPixel driver for RP2040
Project description
Introduction
PIO-driven 8-way concurrent NeoPixel driver for RP2040
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 or individual libraries can be installed using circup.
Installing to a Connected CircuitPython Device with Circup
Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:
pip3 install circup
With circup installed and your CircuitPython device connected use the following command to install:
circup install neopxl8
Or the following command to update an existing version:
circup update
Usage Example
See the Examples page for a full example. This example shows how to set up 8 30-pixel LED strands on an Adafruit Feather Scorpio RP2040 and set them all to dim red:
import time
import board
from adafruit_neopxl8 import NeoPxl8
# Customize for your strands here
num_strands = 8
strand_length = 30
first_led_pin = board.NEOPIXEL0
num_pixels = num_strands * strand_length
# Make the object to control the pixels
pixels = NeoPxl8(
first_led_pin,
num_pixels,
num_strands=num_strands,
)
pixels.fill(0x01_00_00)
while True:
time.sleep(1)
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
File details
Details for the file adafruit-circuitpython-neopxl8-0.2.4.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-neopxl8-0.2.4.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f1ff975b37670498b2e27bdb6a430148096a1cd5981c6d0c352aefd940a403 |
|
MD5 | 687b557b8a62cb69afdafece3548ef57 |
|
BLAKE2b-256 | b7b73370bee2ccffec931a6d3bd8fbb3b7aa0b03ace8dd794252440efdb40c44 |
File details
Details for the file adafruit_circuitpython_neopxl8-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_neopxl8-0.2.4-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a27fb26874aaad822177b4e060f82b9666f9ebb812aabdafdd37d6610a69d79 |
|
MD5 | 577ce4f2c8d189337296233235ed5f81 |
|
BLAKE2b-256 | 323256afa8a8baee294940de6c2dfe61c8a0cf514dc343cc009b932520945118 |