grove.py icon indicating copy to clipboard operation
grove.py copied to clipboard

Strip Led is not working

Open kabcasa opened this issue 4 years ago • 6 comments

using GROVE BASE HAT RPI with Grove - RGB Led ring (16-WS2813 Mini) On Rpi 3B Buster version The Led are on PWM slot . i can't get the leds switch on and no error message is given

code : from grove.i2c import Bus from rpi_ws281x import PixelStrip from time import time, sleep from grove.gpio import GPIO from RPi import GPIO as io

def light_led(led, pix, r, g, b): for pixel in range(pix): led.setPixelColorRGB(pixel, r, g, b)

print("led mode {} {} {}".format(str(r),str(g),str(b)))
led.show()

led20 = PixelStrip(16, 12) # Grove RGB led connected to grove PWM led20.begin()

light_led(led20, 16, 55, 0,0) sleep(5) light_led(led20, 16, 0, 55, 0) sleep(5) led20._cleanup()

kabcasa avatar Dec 18 '20 18:12 kabcasa

in grove.py there's an example grove_ws2813_rgb_led_strip.py, does this one work?

tang295 avatar Feb 03 '21 11:02 tang295

i test it also it's the same the led doesn't switch on

kabcasa avatar Feb 03 '21 12:02 kabcasa

Can this help you

Chunchun-tian avatar Apr 09 '21 03:04 Chunchun-tian

https://wiki.seeedstudio.com/Grove-LED_ring/

Chunchun-tian avatar Apr 09 '21 03:04 Chunchun-tian

Same, Im trying to work out with the LED Strip. 1. Which Grove Port do you plug into? Why does it mention PIN when it's using a Grove Shield.

bradnielsen2981 avatar Aug 30 '21 11:08 bradnielsen2981