BSFEMA / RPi_WS2812

Controlling WS2812 LED-strip from Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPi_WS2812

NeoPixel library extended example

Author: BSFEMA

I followed this example to hook my Raspberry Pi 3 to a strip of WS2812B (60 LED per meter):

I started with the example code provided from the "WS281X Library":

and added the various functions from this Arduino tutorial:

as well as some of my own things.

Here is an example video of the various functions:

My Raspberry Pi setup is just the 'Raspbian Stretch With Desktop':

I ran "sudo apt-get install xrdp" so I could remote into it to from my computer edit the python files and run it from a terminal.

I also enabled SSH.

To run it, I start a terminal, navigate to the folder with the files, and use the command: sudo python main.py

Note: This was my first Raspberry Pi + GPIO project, my frist time with Python, and my first contribution to GitHub.

About

Controlling WS2812 LED-strip from Raspberry Pi


Languages

Language:Python 100.0%