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

Base class for EyeLights LED glasses. Holds a few items that are common to direct or buffered instances. More...

#include <Adafruit_IS31FL3741.h>

Inheritance diagram for Adafruit_EyeLights_Base:
Adafruit_EyeLights Adafruit_EyeLights_buffered

Public Member Functions

 Adafruit_EyeLights_Base (bool withCanvas)
 Constructor for Adafruit_EyeLights_Base object. This is used internally by the library, not user code. More...
 
GFXcanvas16 * getCanvas (void) const
 Get pointer to GFX canvas for smooth drawing. More...
 

Protected Attributes

GFXcanvas16 * canvas = NULL
 Pointer to GFX canvas.
 

Detailed Description

Base class for EyeLights LED glasses. Holds a few items that are common to direct or buffered instances.

Constructor & Destructor Documentation

◆ Adafruit_EyeLights_Base()

Adafruit_EyeLights_Base::Adafruit_EyeLights_Base ( bool  withCanvas)
inline

Constructor for Adafruit_EyeLights_Base object. This is used internally by the library, not user code.

Parameters
withCanvastrue to also allocate a 3X size GFXcanvas16 object (can be used for antialiasing via the smooth() function), false for normal direct-to-matrix drawing.

Member Function Documentation

◆ getCanvas()

GFXcanvas16* Adafruit_EyeLights_Base::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 file: