Hello everyone
I just got myself a W2812B Led Strip for a personal project and hooked it up to a Raspberry Pi Zero.
After some hours of fiddeling i finally got them to work and now they can display a solid color, yay.
I'm using the "rpi_ws281x" package and code in IDLE.
My coding skills are very limited though so that's what i came up with by following a tutorial.
![[Image: NIkGRUu.png]](https://i.imgur.com/NIkGRUu.png)
I want a fairly easy effect to run on my Led Strip, but i'm not really capable of programming it:
1. All Led's glow with 70% brightness
2. One after another lights up with its max brightness until the end of the strip is reached.
3. short pause
I even animated it xD
![[Image: VLeDp6I.gif]](https://i.imgur.com/VLeDp6I.gif)
щ(ಥДಥщ)Im pretty shure that the code for this is quite easy but i just cant get it to work. pls help
thanks in advance, Philipp
Here's the code in written form:
from rpi_ws281x import *
# LED strip configuration:
LED_COUNT = 300 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!).
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 10 # DMA channel to use for generating signal (try 10)
LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift)
LED_CHANNEL = 0 # set to '1' for GPIOs 13, 19, 41, 45 or 53
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ,LED_DMA,LED_INVERT,LED_BRIGHTNESS,LED_CHANNEL)
strip.begin()
for x in range(0,LED_COUNT):
strip.setPixelColor(x,Color(255,0,0))
strip.show()
I just got myself a W2812B Led Strip for a personal project and hooked it up to a Raspberry Pi Zero.
After some hours of fiddeling i finally got them to work and now they can display a solid color, yay.

I'm using the "rpi_ws281x" package and code in IDLE.
My coding skills are very limited though so that's what i came up with by following a tutorial.
![[Image: NIkGRUu.png]](https://i.imgur.com/NIkGRUu.png)
I want a fairly easy effect to run on my Led Strip, but i'm not really capable of programming it:
1. All Led's glow with 70% brightness
2. One after another lights up with its max brightness until the end of the strip is reached.
3. short pause
I even animated it xD
![[Image: VLeDp6I.gif]](https://i.imgur.com/VLeDp6I.gif)
щ(ಥДಥщ)Im pretty shure that the code for this is quite easy but i just cant get it to work. pls help
thanks in advance, Philipp
Here's the code in written form:
from rpi_ws281x import *
# LED strip configuration:
LED_COUNT = 300 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!).
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 10 # DMA channel to use for generating signal (try 10)
LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift)
LED_CHANNEL = 0 # set to '1' for GPIOs 13, 19, 41, 45 or 53
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ,LED_DMA,LED_INVERT,LED_BRIGHTNESS,LED_CHANNEL)
strip.begin()
for x in range(0,LED_COUNT):
strip.setPixelColor(x,Color(255,0,0))
strip.show()