Class for Adafruit LED Glasses (ring portion) with LED data being buffered on the microcontroller and sent only when show() is called. Not used by user code directly, the left and right classes below create distinct subclasses for that.
More...
#include <Adafruit_IS31FL3741.h>
|
| Adafruit_IS31FL3741_GlassesRing_buffered (Adafruit_IS31FL3741_buffered *controller, bool isRight) |
| Constructor for buffered glasses LED ring. Not invoked by user code; use one of the subsequent subclasses for that. More...
|
|
void | setPixelColor (int16_t n, uint32_t color) |
| Set color of one pixel of one buffered glasses ring. No immediate effect on LEDs; must follow up with show(). More...
|
|
void | fill (uint32_t color) |
| Fill all pixels of one glasses ring to same color. No immediate effect on LEDs; must follow up with show(). 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...
|
|
Class for Adafruit LED Glasses (ring portion) with LED data being buffered on the microcontroller and sent only when show() is called. Not used by user code directly, the left and right classes below create distinct subclasses for that.
- Note
- This class is deprecated but provided for compatibility. New code should use the Adafruit_EyeLights classes.
◆ Adafruit_IS31FL3741_GlassesRing_buffered()
Adafruit_IS31FL3741_GlassesRing_buffered::Adafruit_IS31FL3741_GlassesRing_buffered |
( |
Adafruit_IS31FL3741_buffered * |
controller, |
|
|
bool |
isRight |
|
) |
| |
Constructor for buffered glasses LED ring. Not invoked by user code; use one of the subsequent subclasses for that.
- Parameters
-
◆ setPixelColor()
void Adafruit_IS31FL3741_GlassesRing_buffered::setPixelColor |
( |
int16_t |
n, |
|
|
uint32_t |
color |
|
) |
| |
Set color of one pixel of one buffered glasses ring. 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. |
◆ fill()
void Adafruit_IS31FL3741_GlassesRing_buffered::fill |
( |
uint32_t |
color | ) |
|
Fill all pixels of one glasses ring to same color. No immediate effect on LEDs; must follow up with show().
- Parameters
-
color | RGB888 (24-bit) color, a la NeoPixel. |
◆ numPixels()
uint8_t Adafruit_IS31FL3741_GlassesRing_buffered::numPixels |
( |
void |
| ) |
const |
|
inline |
Return number of LEDs in ring (a la NeoPixel)
- Returns
- int Always 24.
◆ setBrightness()
void Adafruit_IS31FL3741_GlassesRing_buffered::setBrightness |
( |
uint8_t |
b | ) |
|
|
inline |
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.
- Parameters
-
b | Brightness from 0 (off) to 255 (max). |
The documentation for this class was generated from the following files: