Merge pull request #591 from tpmodding/patch-1

WS2801 Color Order Fix
This commit is contained in:
Aircoookie 2020-05-11 10:57:54 +02:00 committed by GitHub
commit 30c4f501fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,9 @@
#define PIXELFEATURE4 DotStarLbgrFeature #define PIXELFEATURE4 DotStarLbgrFeature
#elif defined(USE_LPD8806) #elif defined(USE_LPD8806)
#define PIXELFEATURE3 Lpd8806GrbFeature #define PIXELFEATURE3 Lpd8806GrbFeature
#define PIXELFEATURE4 Lpd8806GrbFeature #elif defined(USE_WS2801)
#define PIXELFEATURE3 NeoRbgFeature
#define PIXELFEATURE4 NeoRbgFeature
#elif defined(USE_TM1814) #elif defined(USE_TM1814)
#define PIXELFEATURE3 NeoWrgbTm1814Feature #define PIXELFEATURE3 NeoWrgbTm1814Feature
#define PIXELFEATURE4 NeoWrgbTm1814Feature #define PIXELFEATURE4 NeoWrgbTm1814Feature
@ -276,7 +278,7 @@ public:
} }
break; break;
case NeoPixelType_Grbw: { case NeoPixelType_Grbw: {
#ifdef USE_LPD8806 #if defined(USE_LPD8806) || defined(USE_WS2801)
_pGrbw->SetPixelColor(indexPixel, RgbColor(color.R,color.G,color.B)); _pGrbw->SetPixelColor(indexPixel, RgbColor(color.R,color.G,color.B));
#else #else
_pGrbw->SetPixelColor(indexPixel, color); _pGrbw->SetPixelColor(indexPixel, color);