3#include "Adafruit_NeoPixel.h"
13 : neopixel_(neopixel), led_idx_(led_idx) {}
17 neopixel_.setPixelColor(led_idx_, color.
r(), color.
g(), color.
b());
22 Adafruit_NeoPixel& neopixel_;
Simple 24-bit RGB color value.
uint8_t r() const
Returns the red component.
uint8_t b() const
Returns the blue component.
uint8_t g() const
Returns the green component.
RGB LED backed by an Adafruit_NeoPixel instance.
void setColor(Color color) override
Sets the color and immediately updates the strip.
NeoPixelLed(Adafruit_NeoPixel &neopixel, int led_idx=0)
Creates a wrapper for a specific NeoPixel index.
Abstract interface representing an RGB LED.