You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Skylten 205ccbce1d
Actual code
4 years ago
examples Actual code 4 years ago
ws2811 Actual code 4 years ago Actual code 4 years ago


This Go code is being phased out and replaced with

For issues and bugs with (or contributions to) the Go library, please see:

Run a demo

As this is just a Go wrapper for the library you must clone this into your $GOPATH as you would any other Go program. Your path to the project should be:


As listed in the ws2811.go file ensure to copy ws2811.h, rpihw.h, and pwm.h in a GCC include path (e.g. /usr/local/include) and libws2811.a in a GCC library path (e.g. /usr/local/lib).

To run the basic example run the following commands:

  cd golang/examples
  go build basic.go
  sudo ./basic

If everything worked you should see a basic color wipe for the first 16 LEDs on your strip.