|
|
|
|
|
|
|
|
uint16_t numPixels() { |
|
|
uint16_t numPixels() { |
|
|
return numled; |
|
|
return numled; |
|
|
} |
|
|
} |
|
|
|
|
|
// Functions for compatibility with Adafruit_NeoPixel |
|
|
|
|
|
void setPixelColor(uint16_t num, uint32_t color) { |
|
|
|
|
|
setPixel(num, color); |
|
|
|
|
|
} |
|
|
|
|
|
void setPixelColor(uint16_t num, uint8_t red, uint8_t green, uint8_t blue) { |
|
|
|
|
|
setPixel(num, red, green, blue); |
|
|
|
|
|
} |
|
|
|
|
|
uint32_t Color(uint8_t red, uint8_t green, uint8_t blue) { |
|
|
|
|
|
return (red << 16) | (green << 8) | blue; |
|
|
|
|
|
} |
|
|
private: |
|
|
private: |
|
|
const uint16_t numled; |
|
|
const uint16_t numled; |
|
|
const uint8_t pin; |
|
|
const uint8_t pin; |