19 #ifndef ADAFRUIT_NEOPIXEL_H
20 #define ADAFRUIT_NEOPIXEL_H
26 #include <pins_arduino.h>
54 #define NEO_RGB ((0 << 6) | (0 << 4) | (1 << 2) | (2))
55 #define NEO_RBG ((0 << 6) | (0 << 4) | (2 << 2) | (1))
56 #define NEO_GRB ((1 << 6) | (1 << 4) | (0 << 2) | (2))
57 #define NEO_GBR ((2 << 6) | (2 << 4) | (0 << 2) | (1))
58 #define NEO_BRG ((1 << 6) | (1 << 4) | (2 << 2) | (0))
59 #define NEO_BGR ((2 << 6) | (2 << 4) | (1 << 2) | (0))
63 #define NEO_WRGB ((0 << 6) | (1 << 4) | (2 << 2) | (3))
64 #define NEO_WRBG ((0 << 6) | (1 << 4) | (3 << 2) | (2))
65 #define NEO_WGRB ((0 << 6) | (2 << 4) | (1 << 2) | (3))
66 #define NEO_WGBR ((0 << 6) | (3 << 4) | (1 << 2) | (2))
67 #define NEO_WBRG ((0 << 6) | (2 << 4) | (3 << 2) | (1))
68 #define NEO_WBGR ((0 << 6) | (3 << 4) | (2 << 2) | (1))
70 #define NEO_RWGB ((1 << 6) | (0 << 4) | (2 << 2) | (3))
71 #define NEO_RWBG ((1 << 6) | (0 << 4) | (3 << 2) | (2))
72 #define NEO_RGWB ((2 << 6) | (0 << 4) | (1 << 2) | (3))
73 #define NEO_RGBW ((3 << 6) | (0 << 4) | (1 << 2) | (2))
74 #define NEO_RBWG ((2 << 6) | (0 << 4) | (3 << 2) | (1))
75 #define NEO_RBGW ((3 << 6) | (0 << 4) | (2 << 2) | (1))
77 #define NEO_GWRB ((1 << 6) | (2 << 4) | (0 << 2) | (3))
78 #define NEO_GWBR ((1 << 6) | (3 << 4) | (0 << 2) | (2))
79 #define NEO_GRWB ((2 << 6) | (1 << 4) | (0 << 2) | (3))
80 #define NEO_GRBW ((3 << 6) | (1 << 4) | (0 << 2) | (2))
81 #define NEO_GBWR ((2 << 6) | (3 << 4) | (0 << 2) | (1))
82 #define NEO_GBRW ((3 << 6) | (2 << 4) | (0 << 2) | (1))
84 #define NEO_BWRG ((1 << 6) | (2 << 4) | (3 << 2) | (0))
85 #define NEO_BWGR ((1 << 6) | (3 << 4) | (2 << 2) | (0))
86 #define NEO_BRWG ((2 << 6) | (1 << 4) | (3 << 2) | (0))
87 #define NEO_BRGW ((3 << 6) | (1 << 4) | (2 << 2) | (0))
88 #define NEO_BGWR ((2 << 6) | (3 << 4) | (1 << 2) | (0))
89 #define NEO_BGRW ((3 << 6) | (2 << 4) | (1 << 2) | (0))
100 #define NEO_KHZ800 0x0000 // 800 KHz datastream
101 #ifndef __AVR_ATtiny85__
102 #define NEO_KHZ400 0x0100 // 400 KHz datastream
130 setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b, uint8_t w),
142 Color(uint8_t r, uint8_t g, uint8_t b),
143 Color(uint8_t r, uint8_t g, uint8_t b, uint8_t w);
147 canShow(
void) {
return (micros() - endTime) >= 50L; }
152 #ifdef NEO_KHZ400 // If 400 KHz NeoPixel support enabled...
179 #endif // ADAFRUIT_NEOPIXEL_H