Adafruit LED Backpack Library
|
#include "WProgram.h"
#include <Adafruit_I2CDevice.h>
#include "Adafruit_GFX.h"
Go to the source code of this file.
Classes | |
class | Adafruit_LEDBackpack |
Class encapsulating the raw HT16K33 controller device. More... | |
class | Adafruit_24bargraph |
Class for 24-element bargraph displays. More... | |
class | Adafruit_8x16matrix |
Class for 8x16 pixel single-color matrices. More... | |
class | Adafruit_8x16minimatrix |
Class for 8x16 pixel single-color mini matrices. More... | |
class | Adafruit_8x8matrix |
Class for 8x8 pixel single-color matrices. More... | |
class | Adafruit_BicolorMatrix |
Class for bi-color matrices. More... | |
class | Adafruit_7segment |
Class for 7-segment numeric displays. More... | |
class | Adafruit_AlphaNum4 |
Class for four-digit alphanumeric displays. More... | |
Macros | |
#define | LED_ON 1 |
GFX color of lit LED segments (single-color displays) | |
#define | LED_OFF 0 |
GFX color of unlit LED segments (single-color displays) | |
#define | LED_RED 1 |
GFX color for red LED segments (bi-color displays) | |
#define | LED_YELLOW 2 |
GFX color for yellow LED segments (bi-color displays) | |
#define | LED_GREEN 3 |
GFX color for green LED segments (bi-color displays) | |
#define | HT16K33_BLINK_CMD 0x80 |
I2C register for BLINK setting. | |
#define | HT16K33_BLINK_DISPLAYON 0x01 |
I2C value for steady on. | |
#define | HT16K33_BLINK_OFF 0 |
I2C value for steady off. | |
#define | HT16K33_BLINK_2HZ 1 |
I2C value for 2 Hz blink. | |
#define | HT16K33_BLINK_1HZ 2 |
I2C value for 1 Hz blink. | |
#define | HT16K33_BLINK_HALFHZ 3 |
I2C value for 0.5 Hz blink. | |
#define | HT16K33_CMD_BRIGHTNESS 0xE0 |
I2C register for BRIGHTNESS setting. | |
#define | SEVENSEG_DIGITS 5 |
Digits in 7-seg displays, plus NUL end | |
#define | ALPHANUM_SEG_A 0b0000000000000001 |
Alphanumeric segment A. | |
#define | ALPHANUM_SEG_B 0b0000000000000010 |
Alphanumeric segment B. | |
#define | ALPHANUM_SEG_C 0b0000000000000100 |
Alphanumeric segment C. | |
#define | ALPHANUM_SEG_D 0b0000000000001000 |
Alphanumeric segment D. | |
#define | ALPHANUM_SEG_E 0b0000000000010000 |
Alphanumeric segment E. | |
#define | ALPHANUM_SEG_F 0b0000000000100000 |
Alphanumeric segment F. | |
#define | ALPHANUM_SEG_G1 0b0000000001000000 |
Alphanumeric segment G1. | |
#define | ALPHANUM_SEG_G2 0b0000000010000000 |
Alphanumeric segment G2. | |
#define | ALPHANUM_SEG_H 0b0000000100000000 |
Alphanumeric segment H. | |
#define | ALPHANUM_SEG_J 0b0000001000000000 |
Alphanumeric segment J. | |
#define | ALPHANUM_SEG_K 0b0000010000000000 |
Alphanumeric segment K. | |
#define | ALPHANUM_SEG_L 0b0000100000000000 |
Alphanumeric segment L. | |
#define | ALPHANUM_SEG_M 0b0001000000000000 |
Alphanumeric segment M. | |
#define | ALPHANUM_SEG_N 0b0010000000000000 |
Alphanumeric segment N. | |
#define | ALPHANUM_SEG_DP 0b0100000000000000 |
Alphanumeric segment DP. | |
#define | RAW_BITS 0 |
Issue 7-segment data as raw bits. | |
Part of Adafruit's Arduino library for our I2C LED Backpacks: -—> http://www.adafruit.com/products/ -—> http://www.adafruit.com/products/
These displays use I2C to communicate, 2 pins are required to interface. There are multiple selectable I2C addresses. For backpacks with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks with 3 Address Select pins: 0x70 thru 0x77
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included in any redistribution