scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.7k stars 642 forks source link

Add ArtNet (DMX-over-IP) support. #288

Open DatanoiseTV opened 4 years ago

DatanoiseTV commented 4 years ago

This is an initial step at adding ArtNet support. I've successfully tested 128 LEDs (RGBW) via IP running at 100 FPS. Message packing could be done in a nicer way, but this works for me and any cleanup is welcome.

To be done: A DMX ArtNet Universe supports 512 Bytes. For RGBW LEDs, this means 128 LEDs. In order to use more than 128 LEDs, the ArtNet Universe ID should be incremented which each segment exceeding 512 bytes and "wrap" to support more LEDs.