Adafruit IS31FL3741 Library
Public Member Functions | Protected Attributes | List of all members
Adafruit_IS31FL3741_GlassesMatrix_buffered Class Reference

Class for Adafruit LED Glasses (matrix portion) with LED data being buffered on the microcontroller and sent only when show() is called. More...

#include <Adafruit_IS31FL3741.h>

Inheritance diagram for Adafruit_IS31FL3741_GlassesMatrix_buffered:

Public Member Functions

 Adafruit_IS31FL3741_GlassesMatrix_buffered (Adafruit_IS31FL3741_buffered *controller=NULL, bool withCanvas=false)
 Constructor for buffered LED glasses (matrix portion, 18x5 LEDs) More...
 
void drawPixel (int16_t x, int16_t y, uint16_t color)
 Adafruit GFX low level accessor for buffered glasses matrix - sets an RGB pixel value, handles rotation and pixel arrangement. No immediate effect on LEDs; must follow up with show(). More...
 
void scale ()
 Scales associated canvas (if one was requested via constructor) 1:3 with antialiasing & gamma correction. No immediate effect on LEDs; must follow up with show(). Note that this overwrites ALL pixels within the matrix area, including those shared with the rings. This is different than using normal drawing operations directly to the low-resolution matrix, where these ops are "transparent" and empty pixels don't overwrite the rings.
 
GFXcanvas16 * getCanvas (void) const
 Get pointer to GFX canvas for smooth drawing. More...
 

Protected Attributes

Adafruit_IS31FL3741_buffered_is31
 Pointer to core object.
 
GFXcanvas16 * canvas = NULL
 Pointer to GFX canvas.
 

Detailed Description

Class for Adafruit LED Glasses (matrix portion) with LED data being buffered on the microcontroller and sent only when show() is called.

Note
This class is deprecated but provided for compatibility. New code should use the Adafruit_EyeLights classes.

Constructor & Destructor Documentation

◆ Adafruit_IS31FL3741_GlassesMatrix_buffered()

Adafruit_IS31FL3741_GlassesMatrix_buffered::Adafruit_IS31FL3741_GlassesMatrix_buffered ( Adafruit_IS31FL3741_buffered controller = NULL,
bool  withCanvas = false 
)

Constructor for buffered LED glasses (matrix portion, 18x5 LEDs)

Parameters
controllerPointer to Adafruit_IS31FL3741_buffered object.
withCanvasIf true, allocate an additional GFXcanvas16 object that's 3X the size of the LED matrix – using the scale() function, anything drawn to the canvas can be smoothly downsampled to the matrix resolution. Good for scrolling things.

Member Function Documentation

◆ drawPixel()

void Adafruit_IS31FL3741_GlassesMatrix_buffered::drawPixel ( int16_t  x,
int16_t  y,
uint16_t  color 
)

Adafruit GFX low level accessor for buffered glasses matrix - sets an RGB pixel value, handles rotation and pixel arrangement. No immediate effect on LEDs; must follow up with show().

Parameters
xX position, starting with 0 for left-most side
yY position, starting with 0 for top-most side
color16-bit RGB565 packed color (expands to 888 for LEDs).

◆ getCanvas()

GFXcanvas16* Adafruit_IS31FL3741_GlassesMatrix_buffered::getCanvas ( void  ) const
inline

Get pointer to GFX canvas for smooth drawing.

Returns
GFXcanvas16* Pointer to GFXcanvas16 object, or NULL.

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