Skip to content

Commit

Permalink
Merge pull request Aircoookie#591 from tpmodding/patch-1
Browse files Browse the repository at this point in the history
WS2801 Color Order Fix
  • Loading branch information
Aircoookie authored May 11, 2020
2 parents ef1f835 + a769ab6 commit 30c4f50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wled00/NpbWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@
#define PIXELFEATURE4 DotStarLbgrFeature
#elif defined(USE_LPD8806)
#define PIXELFEATURE3 Lpd8806GrbFeature
#define PIXELFEATURE4 Lpd8806GrbFeature
#elif defined(USE_WS2801)
#define PIXELFEATURE3 NeoRbgFeature
#define PIXELFEATURE4 NeoRbgFeature
#elif defined(USE_TM1814)
#define PIXELFEATURE3 NeoWrgbTm1814Feature
#define PIXELFEATURE4 NeoWrgbTm1814Feature
Expand Down Expand Up @@ -276,7 +278,7 @@ class NeoPixelWrapper
}
break;
case NeoPixelType_Grbw: {
#ifdef USE_LPD8806
#if defined(USE_LPD8806) || defined(USE_WS2801)
_pGrbw->SetPixelColor(indexPixel, RgbColor(color.R,color.G,color.B));
#else
_pGrbw->SetPixelColor(indexPixel, color);
Expand Down

0 comments on commit 30c4f50

Please sign in to comment.