Adafruit IS31FL3741 Library
Public Member Functions | List of all members
Adafruit_EyeLights_Ring_buffered Class Reference

Class for buffered EyeLights LED ring, left or right. More...

#include <Adafruit_IS31FL3741.h>

Inheritance diagram for Adafruit_EyeLights_Ring_buffered:
Adafruit_EyeLights_Ring_Base

Public Member Functions

 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...
 
- Public Member Functions inherited from Adafruit_EyeLights_Ring_Base
 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...
 

Additional Inherited Members

- Protected Attributes inherited from Adafruit_EyeLights_Ring_Base
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.
 

Detailed Description

Class for buffered EyeLights LED ring, left or right.

Constructor & Destructor Documentation

◆ 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
parentPointer to parent Adafruit_EyeLights_buffered object.
isRighttrue = right ring, false = left ring.

Member Function Documentation

◆ 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
nIndex of pixel to set (0-23).
colorRGB888 (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
nIndex of pixel to set (0-23).
rRed component (0-255) of color, a la NeoPixel.
gGreen component (0-255) of color, a la NeoPixel.
bBlue 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
colorRGB888 (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
rRed component (0-255) of color, a la NeoPixel.
gGreen component (0-255) of color, a la NeoPixel.
bBlue component (0-255) of color, a la NeoPixel.

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