Class encapsulating the raw HT16K33 controller device.
More...
#include <Adafruit_LEDBackpack.h>
|
Adafruit_I2CDevice * | i2c_dev = NULL |
| Pointer to I2C bus interface.
|
|
Class encapsulating the raw HT16K33 controller device.
◆ begin()
bool Adafruit_LEDBackpack::begin |
( |
uint8_t |
_addr = 0x70 , |
|
|
TwoWire * |
theWire = &Wire |
|
) |
| |
Start I2C and initialize display state (blink off, full brightness).
- Parameters
-
_addr | I2C address. |
theWire | TwoWire bus reference to use. |
- Returns
- true if successful, otherwise false
◆ setDisplayState()
void Adafruit_LEDBackpack::setDisplayState |
( |
bool |
state | ) |
|
Turn display on or off.
- Parameters
-
state | State: true = on, false = off |
◆ setBrightness()
void Adafruit_LEDBackpack::setBrightness |
( |
uint8_t |
b | ) |
|
Set display brightness.
- Parameters
-
b | Brightness: 0 (min) to 15 (max). |
◆ blinkRate()
void Adafruit_LEDBackpack::blinkRate |
( |
uint8_t |
b | ) |
|
Set display blink rate.
- Parameters
-
b | One 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: