grantHarris / raspberrypi-e131-led

Accepts multiple E1.31 universes for mapping on to a single LED string connected to a raspberry pi
MIT License
2 stars 2 forks source link

raspberrypi-e131-led

RPi e1.31 bridge to WS2811 or APA102 strips

Basic Usage

sudo ./e131bridge

Config location, logging, and stats

sudo ./e131bridge --config=../config/config-sample.yml --verbosity=info --stats=true

Mapping

Because a e131 universe can only support 512 bytes (channels) of data we must use multiple universes to assmeble any signficant amount of LED's. This software supports mapping from multiple e131 universes to a single strip. The mapping configuration is defined in as yml file.

Only Used for WS2811 Strip

gpionum - Gpio pin number used as an output for WS2811 strip

---
gpionum: 21
led_count: 680
brightness: 255
strip_type: WS2811_STRIP_GRB
mapping:
  1:
  - input:
      start_address: 1
      total_rgb_channels: 170
    output:
      start_address: 0
  2:
  - input:
      start_address: 1
      total_rgb_channels: 170
    output:
      start_address: 169
  3:
  - input:
      start_address: 1
      total_rgb_channels: 170
    output:
      start_address: 336
  4:
  - input:
      start_address: 1
      total_rgb_channels: 170
    output:
      start_address: 509

Flags

Build Debug

mkdir Debug
cd Debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

Build Release

mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Libraries

If you find rthis helpful

If you do something cool with this software please share it