forked from Makuna/NeoPixelBus
removed use of macro
This commit is contained in:
1 parent
2568f60f4c
commit
532a1f5e4d
2 files changed
+3
-3
No files matched your search
@@ -208,7 +208,7 @@ public:
|
||||
{
|
||||
uint8_t* p = getPixelAddress(pPixels, indexPixel);
|
||||
|
||||
*p++ = 0xE0 | min(color.W, 31); // upper three bits are always 111
|
||||
*p++ = 0xE0 | (color.W < 31 ? color.W : 31); // upper three bits are always 111
|
||||
*p++ = color.B;
|
||||
*p++ = color.G;
|
||||
*p = color.R;
|
||||
@@ -290,7 +290,7 @@ public:
|
||||
{
|
||||
uint8_t* p = getPixelAddress(pPixels, indexPixel);
|
||||
|
||||
*p++ = 0xE0 | min(color.W, 31); // upper three bits are always 111
|
||||
*p++ = 0xE0 | (color.W < 31 ? color.W : 31); // upper three bits are always 111
|
||||
*p++ = color.G;
|
||||
*p++ = color.R;
|
||||
*p = color.B;
|
||||
|
||||
Reference in new issue
Block a user