Adafruit-WS2801-Library icon indicating copy to clipboard operation
Adafruit-WS2801-Library copied to clipboard

WS2801 ledstrip with RBG-order

Open Ericvf opened this issue 8 years ago • 1 comments

I have a WS2801 ledstrip (5v, 32 led per meter) which uses the RBG order. Unfortunately the library doesn't support this order.

Ericvf avatar Dec 10 '16 18:12 Ericvf

The library works perfectly with RBG, but you cant set it, you have to overwrite the function Adafruit_WS2801.RGB_to_color

with:

def RGB_to_color(r,g,b):
  # reversed order for rbg strips
  return Adafruit_WS2801.RGB_to_color(r,b,g)

Then you can use the library without changing anything in the core core.

salami738 avatar Jan 28 '17 19:01 salami738