Class for buffered EyeLights LED ring, left or right.
More...
#include <Adafruit_IS31FL3741.h>
|
| | Adafruit_EyeLights_Ring_buffered (void *parent, bool isRight) |
| | Constructor for one of the EyeLights ring objects (buffered). Used internally by the library, not user code. More...
|
| |
| void | setPixelColor (int16_t n, uint32_t color) |
| | Set color of one pixel of one buffered EyeLights ring, from a single packed RGB value. No immediate effect on LEDs; must follow up with show(). More...
|
| |
| void | setPixelColor (int16_t n, uint8_t r, uint8_t g, uint8_t b) |
| | Set color of one pixel of one buffered EyeLights ring, from separate R,G,B values. No immediate effect on LEDs; must follow up with show(). More...
|
| |
| void | fill (uint32_t color) |
| | Fill all pixels of one buffered EyeLights ring to same color, from a single packed R,G,B value. No immediate effect on LEDs; must follow up with show(). More...
|
| |
| void | fill (uint8_t r, uint8_t g, uint8_t b) |
| | Fill all pixels of one buffered EyeLights ring to same color, from separate R,G,B values. No immediate effect on LEDs; must follow up with show(). 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 buffered EyeLights LED ring, left or right.
◆ Adafruit_EyeLights_Ring_buffered()
| Adafruit_EyeLights_Ring_buffered::Adafruit_EyeLights_Ring_buffered |
( |
void * |
parent, |
|
|
bool |
isRight |
|
) |
| |
|
inline |
Constructor for one of the EyeLights ring objects (buffered). Used internally by the library, not user code.
- Parameters
-
◆ setPixelColor() [1/2]
| void Adafruit_EyeLights_Ring_buffered::setPixelColor |
( |
int16_t |
n, |
|
|
uint32_t |
color |
|
) |
| |
Set color of one pixel of one buffered EyeLights ring, from a single packed RGB value. No immediate effect on LEDs; must follow up with show().
- Parameters
-
| n | Index of pixel to set (0-23). |
| color | RGB888 (24-bit) color, a la NeoPixel. |
◆ setPixelColor() [2/2]
| void Adafruit_EyeLights_Ring_buffered::setPixelColor |
( |
int16_t |
n, |
|
|
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Set color of one pixel of one buffered EyeLights ring, from separate R,G,B values. No immediate effect on LEDs; must follow up with show().
- 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_buffered::fill |
( |
uint32_t |
color | ) |
|
Fill all pixels of one buffered EyeLights ring to same color, from a single packed R,G,B value. No immediate effect on LEDs; must follow up with show().
- Parameters
-
| color | RGB888 (24-bit) color, a la NeoPixel. |
◆ fill() [2/2]
| void Adafruit_EyeLights_Ring_buffered::fill |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Fill all pixels of one buffered EyeLights ring to same color, from separate R,G,B values. No immediate effect on LEDs; must follow up with show().
- 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: