29 template <u
int8_t V_IC_1, u
int8_t V_IC_2, u
int8_t V_IC_3, u
int8_t V_IC_4>
39 *p++ = color[V_IC_1] >> 8;
40 *p++ = color[V_IC_1] & 0xff;
41 *p++ = color[V_IC_2] >> 8;
42 *p++ = color[V_IC_2] & 0xff;
43 *p++ = color[V_IC_3] >> 8;
44 *p++ = color[V_IC_3] & 0xff;
45 *p++ = color[V_IC_4] >> 8;
46 *p = color[V_IC_4] & 0xff;
55 color[V_IC_1] = (
static_cast<uint16_t
>(*p++) << 8);
56 color[V_IC_1] |= *p++;
57 color[V_IC_2] = (
static_cast<uint16_t
>(*p++) << 8);
58 color[V_IC_2] |= *p++;
59 color[V_IC_3] = (
static_cast<uint16_t
>(*p++) << 8);
60 color[V_IC_3] |= *p++;
61 color[V_IC_4] = (
static_cast<uint16_t
>(*p++) << 8);
70 const uint16_t* p =
reinterpret_cast<const uint16_t*
>(
getPixelAddress(
reinterpret_cast<const uint8_t*
>(pPixels), indexPixel));
74 color[V_IC_1] = pgm_read_word(p++);
75 color[V_IC_2] = pgm_read_word(p++);
76 color[V_IC_3] = pgm_read_word(p++);
77 color[V_IC_4] = pgm_read_word(p);
#define PGM_VOID_P
Definition: NeoUtil.h:42
Definition: Neo4WordFeature.h:32
static void applyPixelColor(uint8_t *pPixels, uint16_t indexPixel, ColorObject color)
Definition: Neo4WordFeature.h:34
static ColorObject retrievePixelColor_P(PGM_VOID_P pPixels, uint16_t indexPixel)
Definition: Neo4WordFeature.h:67
static ColorObject retrievePixelColor(const uint8_t *pPixels, uint16_t indexPixel)
Definition: Neo4WordFeature.h:49
static uint8_t * getPixelAddress(uint8_t *pPixels, uint16_t indexPixel)
Definition: NeoByteElements.h:43
T_COLOR_OBJECT ColorObject
Definition: NeoByteElements.h:41
Definition: NeoByteElements.h:123