Library
Library
Documentation
Release 1.0
Radomir Dopieralski
1 Dependencies 3
3 Usage Example 7
4 Contributing 9
5 Documentation 11
6 Table of Contents 13
6.1 Simple test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.2 adafruit_ht16k33.ht16k33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.3 Matrix Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.4 Segment Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Index 23
i
ii
Adafruit HT16K33 Library Documentation, Release 1.0
This is a library for using the I2 C-based LED matrices with the HT16K33 chip. It supports both 16x8 and 8x8 matrices,
as well as 7- and 14-segment displays.
• Notes
1. This library is intended for Adafruit CircuitPython’s API. For a library compatible with MicroPython
machine API see this library.
2. This library does not work with the Trellis 4x4 LED+Keypad board. For that product use: CircuitPython
Trellis Library
Contents 1
Adafruit HT16K33 Library Documentation, Release 1.0
2 Contents
CHAPTER 1
Dependencies
3
Adafruit HT16K33 Library Documentation, Release 1.0
4 Chapter 1. Dependencies
CHAPTER 2
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for
current user:
5
Adafruit HT16K33 Library Documentation, Release 1.0
Usage Example
7
Adafruit HT16K33 Library Documentation, Release 1.0
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
9
Adafruit HT16K33 Library Documentation, Release 1.0
10 Chapter 4. Contributing
CHAPTER 5
Documentation
For information on building library documentation, please check out this guide.
11
Adafruit HT16K33 Library Documentation, Release 1.0
12 Chapter 5. Documentation
CHAPTER 6
Table of Contents
Listing 1: examples/ht16k33_matrix_simpletest.py
1 # Basic example of clearing and drawing a pixel on a LED matrix display.
2 # This example and library is meant to work with Adafruit CircuitPython API.
3 # Author: Tony DiCola
4 # License: Public Domain
5
13
13
Adafruit HT16K33 Library Documentation, Release 1.0
Listing 2: examples/ht16k33_segments_simpletest.py
1 # Basic example of setting digits on a LED segment display.
2 # This example and library is meant to work with Adafruit CircuitPython API.
3 # Author: Tony DiCola
4 # License: Public Domain
5
6 import time
7
15
Listing 3: examples/ht16k33_bicolor24_simpletest.py
1 # Basic example of using the Bi-color 24 segment bargraph display.
2 # This example and library is meant to work with Adafruit CircuitPython API.
3 # Author: Carter Nelson
4 # License: Public Domain
5
6 import time
7
26 time.sleep(2)
27
37 time.sleep(1)
38
6.2 adafruit_ht16k33.ht16k33
6.2. adafruit_ht16k33.ht16k33 15
Adafruit HT16K33 Library Documentation, Release 1.0
auto_write
Auto write updates to the display.
blink_rate
The blink rate. Range 0-3.
brightness
The brightness. Range 0-15.
fill(color)
Fill the whole display with the given color.
show()
Refresh the display and show the changes.
• genindex
• modindex
• search
19
Adafruit HT16K33 Library Documentation, Release 1.0
a
adafruit_ht16k33.ht16k33, 15
adafruit_ht16k33.matrix, 16
adafruit_ht16k33.segments, 16
21
Adafruit HT16K33 Library Documentation, Release 1.0
A pixel() (adafruit_ht16k33.matrix.Matrix8x8x2
adafruit_ht16k33.ht16k33 (module), 15 method), 16
adafruit_ht16k33.matrix (module), 16 print() (adafruit_ht16k33.segments.Seg14x4 method),
adafruit_ht16k33.segments (module), 16 16
ampm (adafruit_ht16k33.segments.BigSeg7x4 attribute),
16
S
auto_write (adafruit_ht16k33.ht16k33.HT16K33 at- scroll() (adafruit_ht16k33.segments.Seg14x4
tribute), 15 method), 16
scroll() (adafruit_ht16k33.segments.Seg7x4 method),
B 17
BigSeg7x4 (class in adafruit_ht16k33.segments), 16 Seg14x4 (class in adafruit_ht16k33.segments), 16
blink_rate (adafruit_ht16k33.ht16k33.HT16K33 at- Seg7x4 (class in adafruit_ht16k33.segments), 16
tribute), 16 show() (adafruit_ht16k33.ht16k33.HT16K33 method),
brightness (adafruit_ht16k33.ht16k33.HT16K33 at- 16
tribute), 16
C
Colon (class in adafruit_ht16k33.segments), 16
F
fill() (adafruit_ht16k33.ht16k33.HT16K33 method),
16
fill() (adafruit_ht16k33.matrix.Matrix8x8x2
method), 16
H
HT16K33 (class in adafruit_ht16k33.ht16k33), 15
M
Matrix16x8 (class in adafruit_ht16k33.matrix), 16
Matrix8x8 (class in adafruit_ht16k33.matrix), 16
Matrix8x8x2 (class in adafruit_ht16k33.matrix), 16
P
pixel() (adafruit_ht16k33.matrix.Matrix16x8
method), 16
pixel() (adafruit_ht16k33.matrix.Matrix8x8 method),
16
23