Skip to main content

PIO-driven 8-way concurrent NeoPixel driver for RP2040

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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 adafruit_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

adafruit_circuitpython_neopxl8-0.3.7.tar.gz (25.3 kB view details)

Uploaded Source

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_neopxl8-0.3.7.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_neopxl8-0.3.7.tar.gz
Algorithm Hash digest
SHA256 5c231c6bbac5e12af7e88044cd4f8fd370c3945ef47a7c37ba146f4ef4d1fd3e
MD5 1442eaf826543adc870b29494a091ce8
BLAKE2b-256 51ec67e3f5761b95f35aaf00956e6fdff17746fa888377c05202f436eb892fa4

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_neopxl8-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_neopxl8-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2dbe0383e1eb18a1cdf123cbc9deeec1d6e4ebbfd945c219061f0817d2c0acd4
MD5 a0e4e85f974036158512a74363f439d3
BLAKE2b-256 bdc9db02b5cd37a0ef0b5fc4d315a03024f978ceb1956940f3cd27ad34be60b3

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