Skip to main content

Python NeoPixel SPIdev

The py-neopixel-spidev Python module can be used to control WS2812 addressable RGB LEDs via SPI on Linux devices using the generic Linux SPIdev driver.

Only the MOSI signal of the SPI bus is used to control the DIN of the chained LEDs. To emulate the protocol for the LEDs, each bit of LED data is made up of 4 SPI bits.

Dependencies

The following Python modules are needed:

Attributions

This module barely contains any new code, but mainly bundles code from existing projects for easier usage. Thanks to all the authors and contributors.

Adafruit CircuitPython Pypixelbuf

We reuse the Pixelbuf class from Adafruit CircuitPython Pypixelbuf.

File: lib/pixelbuf.py
License: MIT
Copyright: Copyright (c) 2019-2020 Roy Hooper
Authors: Damien P. George, Limor Fried, Scott Shawcroft, Roy Hooper

Adafruit CircuitPython NeoPixel

Further we use the NeoPixel class from Adafruit CircuitPython NeoPixel with some slight modifications to use the SPIdev bus as backend.

File: lib/neopixel_spidev.py
License: MIT
Copyright: Copyright (c) 2016 Damien P. George, Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, Copyright (c) 2019 Carter Nelson, Copyright (c) 2019 Roy Hooper
Authors: Damien P. George, Scott Shawcroft, Carter Nelson, Roy Hooper

ws2812-spi

To emulate the protocol data, we use the code from the ws2812-spi project.

File: lib/neopixel_spi_write.py
License: AGPL
Author: joosteto

Usage

See the examples in examples/ and the docs for the Adafruit NeoPixel class.

Copyright

Copyright (c) 2020 Kontron Electronics GmbH
Author: Frieder Schrempf

License

The code is licensed under the MIT license, unless the source code files specify a different license.

Metadata

Release files for py-neopixel-spidev 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-neopixel-spidev 1.0.0
File Size Uploaded Provenance
py-neopixel-spidev-1.0.0.tar.gz 8.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-neopixel-spidev 1.0.0
File Interpreter ABI Platform
py_neopixel_spidev-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / py-neopixel-spidev-1.0.0.tar.gz

Download URL py-neopixel-spidev-1.0.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
61f61073c879cfefff60a24b8732b348943eedf0dc45def673a17b25433d0b20
BLAKE2b-256 checksum
How to use checksums
64b98812fb10baaff464fba65d8a5c4b0c0f606ddb2056424130440152d8f5c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / py_neopixel_spidev-1.0.0-py3-none-any.whl

Download URL py_neopixel_spidev-1.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69001befab7d0c0b209de8d28495183cef937fa0e711315cbe2aa1d6f77e9118
BLAKE2b-256 checksum
How to use checksums
9973fd4aac9af9fb707513a2d69d8c0a6ec4ecd7715d61f22229894f8a988ec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Security for py-neopixel-spidev 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page