1.4 KiB
HT16K33
Arduino Library for HT16K33 I2C 4x7segment display
Description
This library is for the Adafruit 4x7segment display with HT16K33 driver, http://www.adafruit.com/products/1002
This library is functionally less capable than Adafruits especially it has no support for negative numbers. However it is much faster for writing an int / hex to the display.
Test on UNO, I2C.setClock(100000); // version 0.1.2 0-9999 integers 3.960 sec 0-65535 hexadecimal 23.685 sec
Test on UNO, I2C.setClock(800000); // version 0.1.2 0-9999 integers 1.223 sec 0-65535 hexadecimal 6.350 sec
Substantial part of this performance gain is due to an internal cache of the digits displayed, so other tests and real live usage may result in different gain.
Release notes
-
0.1.3 suppressLeadingZeroPlaces(val) replaces leading zero with space. Works only correctly for integers (for now). If you have two (or multiple) displays to display long integers you can suppress 4 zero's in the left display and 3 zero's in the right display.
-
0.1.4 displayRaw(ar[4]) added, to be able to display any pattern possible displayVULeft(val) and displayVURight(val) added, shows 0..8 vertical bars, uses displayRaw().
-
0.1.5 refactor added minus sign in the char map.
-
0.2.0 fix brightness bug ESP32 support
-
0.2.1 fix decimal point in printFloat()
Operation
See examples