blaz-r / pi_pico_neopixel

Pi Pico library for NeoPixel led-strip written in MicroPython. Works with ws2812b (RGB) and sk6812 (RGBW).
MIT License
254 stars 54 forks source link

RGB shows as GRB #1

Closed Franz888 closed 3 years ago

Franz888 commented 3 years ago

Running the library on my computer in "RGB": RED = (0,10,0) instead of (10,0,0)

Franz888 commented 3 years ago

Solved. Did not read the instructions carefully.

blaz-r commented 3 years ago

Yeah, you need to specify the order. Usually with these leds it's GRB not even RGB, but the library supports any order.

Mind that order of color components in function arguments is always (R, G, B). The order setting is just used so the bits representing each color are sent in right order from board to led-strip. This way functions work the same for any configuration.