Skip to main content

A simple but powerful library to control WS2812b LED panel.

Project description

LED Wall Python Library

A simple but powerful python library to manipulate WS2812b LED panel. Panels cand be connected via USB cable or accessed via UDP. This library only supports Python 3 but is OS independent.

The library is intended to be used in conjunction with aa arduino or nodemcu tat controls a bunch of LEDs. Of course, you can write sketches to controll the LEDs directly in c using the arduino ide. But using python on a raspberry or some other computer will offer you more flexibility and speed in development. Also, you can leverage from wide range of existing python libraries. With just a few lines of code, you can integrate gamepads using the awesome inputs library.

For more information, examples, installation guides and the arduino/nodemcu sketches checkout my git repository.

Also an online documentation for the library is available on readthedocs <>_.

Example script

The following script shows the basic usage of the library. I tried to keep things pythonic.

import ledwall.components as comp

# Create a new display instance. Using a SerialSender to
# send the color data to the arduino.
# Setting the desired framerate is 15
s = comp.SerialSender(portName='/dev/ttyACM0', baudrate=1000000)
d = comp.Display(16,32, s, framerate=15)

# Defining a few basic colors
red   = comp.RGBColor.fromIntValues(255,0,0)
green = comp.RGBColor.fromIntValues(0,255,0)



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ledwall, version 1.0.12
Filename, size File type Python version Upload date Hashes
Filename, size ledwall-1.0.12-py3-none-any.whl (54.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ledwall-1.0.12.tar.gz (31.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page