This program demonstrates how to use the Neo pixel binding to drive an 8 Neo Pixel stick from a Raspberry Pi.
It shows how to set the colors of each LED using SetPixel
and Update
. Then it shows how to fade in one of the LEDs in a loop.
Please build the samples project with configuration key depending on connected devices:
For WS2812b connection you don't have to use any configuration keys. Example:
dotnet publish -o C:\DeviceTester -r linux-arm
For WS2808 driver use WS2808 key. Example:
dotnet publish -c WS2808 -o C:\DeviceTester -r linux-arm
The following fritzing diagram demonstrates how you should wire your device in order to run the program. It uses the GND, 5V and MOSI pins on the Raspberry Pi.
It uses the GND, 5V, MOSI and SCLK pins on the Raspberry Pi.
The following elements are used in this sample: