29 template <u
int8_t V_IC_1, u
int8_t V_IC_2, u
int8_t V_IC_3>
51 color555 = ((*p++) << 8);
62 const uint8_t* p =
getPixelAddress((
const uint8_t*)pPixels, indexPixel);
66 color555 = (pgm_read_byte(p++) << 8);
67 color555 |= pgm_read_byte(p);
78 ((color[V_IC_1] & 0xf8) << 7) |
79 ((color[V_IC_2] & 0xf8) << 2) |
80 ((color[V_IC_3] & 0xf8) >> 3));
85 (*color)[V_IC_2] = (color555 >> 2) & 0xf8;
86 (*color)[V_IC_3] = (color555 << 3) & 0xf8;
87 (*color)[V_IC_1] = (color555 >> 7) & 0xf8;
#define PGM_VOID_P
Definition: NeoUtil.h:42
Definition: Neo2Byte555Feature.h:32
static void encodePixel(uint16_t *color555, const ColorObject &color)
Definition: Neo2Byte555Feature.h:75
static ColorObject retrievePixelColor(const uint8_t *pPixels, uint16_t indexPixel)
Definition: Neo2Byte555Feature.h:44
static ColorObject retrievePixelColor_P(PGM_VOID_P pPixels, uint16_t indexPixel)
Definition: Neo2Byte555Feature.h:59
static void applyPixelColor(uint8_t *pPixels, uint16_t indexPixel, ColorObject color)
Definition: Neo2Byte555Feature.h:34
static void decodePixel(ColorObject *color, uint16_t color555)
Definition: Neo2Byte555Feature.h:83
Definition: NeoByteElements.h:101
static uint8_t * getPixelAddress(uint8_t *pPixels, uint16_t indexPixel)
Definition: NeoByteElements.h:43
T_COLOR_OBJECT ColorObject
Definition: NeoByteElements.h:41