Class for Adafruit LED Glasses (ring portion). 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 (Adafruit_IS31FL3741 *controller, bool isRight) |
| Constructor for 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 glasses ring. More...
|
|
void | fill (uint32_t color) |
| Fill all pixels of one glasses ring to same color. 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). 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()
Adafruit_IS31FL3741_GlassesRing::Adafruit_IS31FL3741_GlassesRing |
( |
Adafruit_IS31FL3741 * |
controller, |
|
|
bool |
isRight |
|
) |
| |
Constructor for glasses LED ring. Not invoked by user code; use one of the subsequent subclasses for that.
- Parameters
-
- Note
- Delcared here rather than in .h because it references static tables in this code.
◆ setPixelColor()
void Adafruit_IS31FL3741_GlassesRing::setPixelColor |
( |
int16_t |
n, |
|
|
uint32_t |
color |
|
) |
| |
Set color of one pixel of one glasses ring.
- Parameters
-
n | Index of pixel to set (0-23). |
color | RGB888 (24-bit) color, a la NeoPixel. |
◆ fill()
void Adafruit_IS31FL3741_GlassesRing::fill |
( |
uint32_t |
color | ) |
|
Fill all pixels of one glasses ring to same color.
- Parameters
-
color | RGB888 (24-bit) color, a la NeoPixel. |
◆ numPixels()
uint8_t Adafruit_IS31FL3741_GlassesRing::numPixels |
( |
void |
| ) |
const |
|
inline |
Return number of LEDs in ring (a la NeoPixel)
- Returns
- int Always 24.
◆ setBrightness()
void Adafruit_IS31FL3741_GlassesRing::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: