The NeoPixel library plus some extras, for example a testing mode - so you can see how your LEDs would behave directly in the terminal, without any extra hardware..
Project description
NeoPixelPlus
The NeoPixel library plus some extras, for example a testing mode - so you can see how your LEDs would behave directly in the terminal, without any extra hardware.
Installation
pip install neopixel_plus
Usage
from neopixel_plus import NeoPixel
# Example 1 - Changing the color of a physical LED
pixel = NeoPixel(pin=5, n=30, bpp=3)
pixel.leds[0] = (219,100,222)
pixel.write()
# Example 2 - Testing a rainbow animation in the terminal
NeoPixel(test=True).rainbow_animation()
# Example 3 - Playing a rainbow animation on physical LEDs
NeoPixel(pin=5, n=30, bpp=3).rainbow_animation()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neopixel_plus-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for neopixel_plus-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1efb413475f8a04d093760cbc0f304d3483373fb5ae0bbbe21c978da9a4a17b0 |
|
MD5 | b42b11546a37a2711ac686864927a6b0 |
|
BLAKE2b-256 | cc6c0fc22a45cbe58688e3301593f23d08f3843df45f744d0217fcf56bdb161b |