This is an example how to use the Spixels hardware with the PixelPusher protocol. Another popular implementation is the RGB Matrix.
To compile, retrieve this repository with the --recursive
option to get
all needed sub-modules.
git clone --recursive https://github.com/hzeller/spixels-pixelpusher
Then compile with make
. The resulting binary spixels-pixel-push
has the
following options.
usage: ./spixels-pixel-push <options>
Options:
-T <type> : One of APA102, LDP6803, WS2801; default: APA102
-c <clockspeed>: SPI clock-speed in Mhz [1..15]. Default: 4
-S <strips> : Number of connected LED strips (default: 16)
-L <len> : Length of LED strips (default: 144)
-i <iface> : network interface, such as eth0, wlan0. Default eth0
-G <group> : PixelPusher group (default: 0)
-C <controller> : PixelPusher controller (default: 0)
-a <artnet-universe,artnet-channel>: if used with artnet. Default 0,0
-u <udp-size> : Max UDP data/packet (default 1460)
Best use the maximum that works with your network (up to 65507).
You need to run this program as root so that the GPIO pins of the Raspberry Pi can be written to.