Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.27 KB

Drive Neo pixel strip (x8) from Raspberry Pi

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.

Run the sample

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

Breadboard layout for WS2812b

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.

Raspberry Pi Breadboard diagram

Breadboard layout for WS2808

It uses the GND, 5V, MOSI and SCLK pins on the Raspberry Pi.

Raspberry Pi Breadboard diagram

Hardware elements

The following elements are used in this sample: