Skip to main content

PIO-driven 8-way concurrent NeoPixel driver for RP2040

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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

adafruit_circuitpython_neopxl8-0.2.5.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit_circuitpython_neopxl8-0.2.5.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_neopxl8-0.2.5.tar.gz
Algorithm Hash digest
SHA256 05411be8e94dc2823ca475333dc098eb8cbcbf6f5be54412d68d4db6f57cc485
MD5 385f681c831af732b9945e5196b1e5eb
BLAKE2b-256 1f6dea07eb11915836ef859268b5820a3f8f9c7cf71284026c1e1c9c25efe6ff

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_neopxl8-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3e282a8cae7fc3b5ea4bd9d0b423316faef141b2463a151465f904736e33b85a
MD5 20dd16c32755c323f13b15416fb066a8
BLAKE2b-256 dc05aea290f3aba0bbe3db426e7ec6cb7b24e3d19205351acd9ce4a3c8ff089f

See more details on using hashes here.

Provenance

Supported by

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