forked from Makuna/NeoPixelBus
Color feature refactor (#716)
* refactor color order design within a color feature using a template to reduce duplicate code making it easier to add similar features with different order * fix warnings
This commit is contained in:
1 parent
dcf4b9ac53
commit
567faa6c02
44 files changed
+718
-1653
No files matched your search
@@ -104,7 +104,7 @@ public:
|
||||
static void movePixelsInc_P(uint8_t* pPixelDest, PGM_VOID_P pPixelSrc, uint16_t count)
|
||||
{
|
||||
uint8_t* pEnd = pPixelDest + (count * NeoElementsBase<V_PIXEL_SIZE, T_COLOR_OBJECT, T_COPY>::PixelSize);
|
||||
const uint8_t* pSrc = (const uint8_t*)pPixelSrc;
|
||||
const uint8_t* pSrc = reinterpret_cast<const uint8_t*>(pPixelSrc);
|
||||
|
||||
while (pPixelDest < pEnd)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user