This repo provides Python drivers for the Holtek HT16K33 controller chip and various display devices based upon it, such as the Adafruit 0.8-inch 8x16 LED Matrix FeatherWing and the Raspberry Pi Pico.
The drivers supports both CircuitPython and MicroPython applications. They communicate using I²C.
The driver package comprises a parent generic HT16K33 class and child classes for various displays themselves. All your code needs to do is import
the latter. For example:
from ht16k33segment import HT16K33Segment
You can then instantiate the driver object. This requires a configured I2C bus object.
You will need both the display driver file and ht16k33.py
in your project folder.
Adding the driver code may prove too much for certain CircuitPython devices which have limited amounts of memory. To overcome this, run the mpy-cross
compiler. This will compile the raw Python into a highly compact form in a .mpy
file. Copy ht16k33.mpy
and the device-specific .mpy
file to your device in place of the .py
versions.
The repo’s mpy
directory contains pre-compiled versions for CircuitPython applications.
Further drivers may be added in due course.
You can find documentation for all of the drivers at smittytone.net.
- 3.3.0 5 August 2022
- Add
rotate()
method to HT16K33Segment.
- Add
- 3.2.0 26 July 2022
- Support the Adafruit 0.54in Alphanumeric Display via
ht16k33segment14.py
. - Bug fixes.
- Support the Adafruit 0.54in Alphanumeric Display via
- 3.2.0 16 February 2022
- Add
ht16k33segment14.py
to support the SparkFun Qwiic Alphanumeric Display.
- Add
- 3.0.2 23 November 2020
- Refactor out some
ht16k33matrix.py
code.
- Refactor out some
- 3.0.1 7 November 2020
- Correct variable name in
ht16k33matrix.py
.
- Correct variable name in
- 3.0.0 6 November 2020
- Initial public release.
This repository’s source code and documentation is copyright 2022, Tony Smith (@smittytone).
The HTK16K33 driver and subsidiary display drivers are licensed under the MIT License.