raspberrypi / pico-micropython-examples

Examples to accompany the "Raspberry Pi Pico Python SDK" book.
BSD 3-Clause "New" or "Revised" License
1.01k stars 228 forks source link

Example with neopixel_ring does not work correcty with RGBW #9

Open mjlongfl opened 3 years ago

mjlongfl commented 3 years ago

In order to get the example working correctly with RGBW rings, line 12 should be adjusted to use a pull_thresh=32 (instead of 24).

JoeHut commented 3 years ago

Hey @mjlongfl, did you get it running with only this change? I have a neopixel ring with 12 RGBW LEDs and it doesn't seem to work at all...

mjlongfl commented 3 years ago

@JoeHut Yes; I have a 16x RGBW ring, which matches the source. I wired it exactly as described in the wiring diagram.

As I am a software guy getting into hardware, I don't know if I have any particularly valuable insight. Maybe verify that lines 8-9 (NUM_LEDS and PIN_NUM) match your setup.

johannstark commented 1 year ago

Hey Guys! i manage to make it work as @mjlongfl said. Should we create a small PR to include a comment in the code or something?

aallan commented 1 year ago

We accept PRs!