Wled: 2 Pins connection pinout

Created on 28 Dec 2019  路  7Comments  路  Source: Aircoookie/WLED

What are the pinout on nodemcu to connect the ws2081 2 pins (clock CI and data DI)?

question

Most helpful comment

561 was also just opened. I'm just going to add all the color combinations at this point :)

All 7 comments

Hi!
For APA102 2 pin LEDs, the default pins are 0 for clock and 2 for data.
WS2801 are unfortunately not supported right now, see https://github.com/Aircoookie/WLED/issues/178
Hopefully I will make some progress on that soon :)

Hi,
I added support for the WS2801 to the Neopixelbus Library and NpbWrapper.h.
I will attach the changend files in this post.
The NpbWrapper.h Part is a bit ugly because the WS2801 only supports RGB and not RGBW.
Maybe you find a better solution. It is working pretty nice with my LED Strips and also the Strings.
I also had to change

void WS2812FX::setPixelColor(uint16_t i, byte r, byte g, byte b, byte w)
{
  i = i * (_disableNLeds+1);
  if (_locked[i] && !_modeUsesLock) return;
  if (IS_REVERSE) i = SEGMENT.stop -1 -i + SEGMENT.start; //reverse just individual segment
  byte tmpg = g;
  switch (colorOrder) //0 = Grb, default
  {
    case 0: break;                  //0 = Grb, default
    case 1: g = r; r = tmpg; break; //1 = Rgb, common for WS2811
    case 2: g = b; b = tmpg; break; //2 = Brg
    case 3: g = r; r = b; b = tmpg; //3 = Rbg
//    case 3: g = b; b = r; r = tmpg; //3 = Rbg
  }

in FX_fcn.cpp for my Strips witch are RBG.
The Strings are RGB and working fine without the change.

ws2801.zip

The case structure seem to be okay this way.
In the current code the option '3' will result in "BGR" and not - as written in the comments - in "RGB".
So maybe we need to extend the values by one to get GRB, RGB, BRG, BGR and RBG.

Or extend by two values. This should cover every possible combination.
RGB
RBG
GRB
GBR
BRG
BGR

came here trying to find an answer to why "GBR" color sequence isn't supported in the WLED UI. (The post above this was the only reference to that sequence I could find).

It is an Alitove WS2811 (SM16703) LED strip that requires this GBR sequence.

561 was also just opened. I'm just going to add all the color combinations at this point :)

Added all the color orders to master!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

exeljb picture exeljb  路  4Comments

vigne picture vigne  路  3Comments

PKCubed picture PKCubed  路  4Comments

BugsBunny1403 picture BugsBunny1403  路  3Comments

fribse picture fribse  路  4Comments