A client for the DDP Distributed Display Protocol for CircuitPython, and testing utilities.
The Distributed Display Protocol is a way to send data to lighting displays. This library was written to send colors from a device running the latest version of the WLED software to a device that can only run CircuitPython. The receiving device behaves like an additional LED strip attached to the sending device.
ddp_receiver.pygoes on the device. It requires Adafruit'sneopixel.pytyping.pyjust definesTYPE_CHECKING=Falsein case CircuitPython doesn't have the typing module.sketch.pyshould be uploaded ascode.pyon the device. It demonstrates connecting the reciever to a 30-LED strip.
ddp_web_server.pyruns on your computer. It simulates a LED strip in the web browser. It listens on http://localhost:8000/ddp_sender_demo.pyalso runs on your computer. It sends colors toddp_web_server.py, and the browser displays them in real time. It can be edited to send colors to a real device.
Written by Daniel Holth dholth@gmail.com, AI assisted.
MIT license.