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>
|
| 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...
|
|
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.
◆ 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
-
controller | Pointer to Adafruit_IS31FL3741_buffered object. |
withCanvas | If 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. |
◆ 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
-
x | X position, starting with 0 for left-most side |
y | Y position, starting with 0 for top-most side |
color | 16-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: