Class for direct (unbuffered) EyeLights LED ring, left or right.
More...
#include <Adafruit_IS31FL3741.h>
|
| Adafruit_EyeLights_Ring (void *parent, bool isRight) |
| Constructor for one of the EyeLights ring objects (direct, unbuffered). Used internally by the library, not user code. More...
|
|
void | setPixelColor (int16_t n, uint32_t color) |
| Set color of one pixel of one direct (unbuffered) EyeLights ring, from a single packed RGB value. More...
|
|
void | setPixelColor (int16_t n, uint8_t t, uint8_t g, uint8_t b) |
| Set color of one pixel of one direct (unbuffered) EyeLights ring, from separate R,G,B values. More...
|
|
void | fill (uint32_t color) |
| Fill all pixels of one direct (unbuffered) EyeLights ring to same color, from a single packed value. More...
|
|
void | fill (uint8_t r, uint8_t g, uint8_t b) |
| Fill all pixels of one direct (unbuffered) EyeLights ring to same color, from separate R,G,B values. More...
|
|
| Adafruit_EyeLights_Ring_Base (void *parent, bool isRight) |
| Constructor for EyeLights LED ring. This is a base class used by both the direct and buffered variants. Not invoked by user code. More...
|
|
uint8_t | numPixels (void) const |
| Return number of LEDs in ring (a la NeoPixel) More...
|
|
void | setBrightness (uint8_t b) |
| Set brightness of LED ring. This is a mathematical brightness scale applied to setPixel() colors when setting ring pixels, distinct from any value passed to setLEDscaling() functions, because matrix and rings share pixels. More...
|
|
|
uint16_t | _brightness = 256 |
| Internally 1-256 for math.
|
|
void * | parent |
| Pointer back to EyeLights object.
|
|
const uint16_t * | ring_map |
| Pointer to LED index lookup table.
|
|
Class for direct (unbuffered) EyeLights LED ring, left or right.
◆ Adafruit_EyeLights_Ring()
Adafruit_EyeLights_Ring::Adafruit_EyeLights_Ring |
( |
void * |
parent, |
|
|
bool |
isRight |
|
) |
| |
|
inline |
Constructor for one of the EyeLights ring objects (direct, unbuffered). Used internally by the library, not user code.
- Parameters
-
parent | Pointer to parent Adafruit_EyeLights object. |
isRight | true = right ring, false = left ring. |
◆ setPixelColor() [1/2]
void Adafruit_EyeLights_Ring::setPixelColor |
( |
int16_t |
n, |
|
|
uint32_t |
color |
|
) |
| |
Set color of one pixel of one direct (unbuffered) EyeLights ring, from a single packed RGB value.
- Parameters
-
n | Index of pixel to set (0-23). |
color | RGB888 (24-bit) color, a la NeoPixel. |
◆ setPixelColor() [2/2]
void Adafruit_EyeLights_Ring::setPixelColor |
( |
int16_t |
n, |
|
|
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Set color of one pixel of one direct (unbuffered) EyeLights ring, from separate R,G,B values.
- Parameters
-
n | Index of pixel to set (0-23). |
r | Red component (0-255) of color, a la NeoPixel. |
g | Green component (0-255) of color, a la NeoPixel. |
b | Blue component (0-255) of color, a la NeoPixel. |
◆ fill() [1/2]
void Adafruit_EyeLights_Ring::fill |
( |
uint32_t |
color | ) |
|
Fill all pixels of one direct (unbuffered) EyeLights ring to same color, from a single packed value.
- Parameters
-
color | RGB888 (24-bit) color, a la NeoPixel. |
◆ fill() [2/2]
void Adafruit_EyeLights_Ring::fill |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Fill all pixels of one direct (unbuffered) EyeLights ring to same color, from separate R,G,B values.
- Parameters
-
r | Red component (0-255) of color, a la NeoPixel. |
g | Green component (0-255) of color, a la NeoPixel. |
b | Blue component (0-255) of color, a la NeoPixel. |
The documentation for this class was generated from the following files: