roo_blink
API Documentation for roo_blink
Loading...
Searching...
No Matches
roo_blink::NeoPixelLed Class Reference

RGB LED backed by an Adafruit_NeoPixel instance. More...

#include <adafruit_neopixel_led.h>

Inheritance diagram for roo_blink::NeoPixelLed:
[legend]
Collaboration diagram for roo_blink::NeoPixelLed:
[legend]

Public Member Functions

 NeoPixelLed (Adafruit_NeoPixel &neopixel, int led_idx=0)
 Creates a wrapper for a specific NeoPixel index.
 
void setColor (Color color) override
 Sets the color and immediately updates the strip.
 

Detailed Description

RGB LED backed by an Adafruit_NeoPixel instance.

Definition at line 9 of file adafruit_neopixel_led.h.

Constructor & Destructor Documentation

◆ NeoPixelLed()

roo_blink::NeoPixelLed::NeoPixelLed ( Adafruit_NeoPixel &  neopixel,
int  led_idx = 0 
)
inline

Creates a wrapper for a specific NeoPixel index.

Definition at line 12 of file adafruit_neopixel_led.h.

Member Function Documentation

◆ setColor()

void roo_blink::NeoPixelLed::setColor ( Color  color)
inlineoverridevirtual

Sets the color and immediately updates the strip.

Reimplemented from roo_blink::RgbLed.

Definition at line 16 of file adafruit_neopixel_led.h.

References roo_blink::Color::b(), roo_blink::Color::g(), and roo_blink::Color::r().


The documentation for this class was generated from the following file: