Adafruit LED Backpack Library
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Adafruit_LEDBackpack Class Reference

Class encapsulating the raw HT16K33 controller device. More...

#include <Adafruit_LEDBackpack.h>

Inheritance diagram for Adafruit_LEDBackpack:
Adafruit_24bargraph Adafruit_7segment Adafruit_8x16matrix Adafruit_8x16minimatrix Adafruit_8x8matrix Adafruit_AlphaNum4 Adafruit_BicolorMatrix

Public Member Functions

 Adafruit_LEDBackpack (void)
 Constructor for HT16K33 devices.
 
bool begin (uint8_t _addr=0x70, TwoWire *theWire=&Wire)
 Start I2C and initialize display state (blink off, full brightness). More...
 
void setDisplayState (bool state)
 Turn display on or off. More...
 
void setBrightness (uint8_t b)
 Set display brightness. More...
 
void blinkRate (uint8_t b)
 Set display blink rate. More...
 
void writeDisplay (void)
 Issue buffered data in RAM to display.
 
void clear (void)
 Clear display.
 

Public Attributes

uint16_t displaybuffer [8]
 Raw display data.
 

Protected Attributes

Adafruit_I2CDevice * i2c_dev = NULL
 Pointer to I2C bus interface.
 

Detailed Description

Class encapsulating the raw HT16K33 controller device.

Member Function Documentation

◆ begin()

bool Adafruit_LEDBackpack::begin ( uint8_t  _addr = 0x70,
TwoWire *  theWire = &Wire 
)

Start I2C and initialize display state (blink off, full brightness).

Parameters
_addrI2C address.
theWireTwoWire bus reference to use.
Returns
true if successful, otherwise false

◆ setDisplayState()

void Adafruit_LEDBackpack::setDisplayState ( bool  state)

Turn display on or off.

Parameters
stateState: true = on, false = off

◆ setBrightness()

void Adafruit_LEDBackpack::setBrightness ( uint8_t  b)

Set display brightness.

Parameters
bBrightness: 0 (min) to 15 (max).

◆ blinkRate()

void Adafruit_LEDBackpack::blinkRate ( uint8_t  b)

Set display blink rate.

Parameters
bOne of: HT16K33_BLINK_OFF = no blinking HT16K33_BLINK_2HZ = 2 Hz blink HT16K33_BLINK_1HZ = 1 Hz blink HT16K33_BLINK_HALFHZ = 0.5 Hz blink

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