go get github.com/fresh4less/neopixel-display
go install
To build with Raspberry Pi neopixel support using the rpi_ws281x library:
- Ensure the ws281x header files
pwm.h
,rpihw.h
, andws2811.h
, are in/usr/include
- Ensure the ws281x library file
ws2811.a
is in/usr/lib
- Run
go install
The library also provides a command-line visualization to help develop on a machine that isn't connected to LEDs.
Build with go install -tags noled
.
To test with neopixels:
./neopixel-display
To test in 256 color terminal:
./neopixel-display -m console
You should see an animation transitioning between three different frames.