mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
|
|
This library is for the Adafruit 4x 7segment display with HT16K33 driver,
|
|
http://www.adafruit.com/products/1002
|
|
|
|
This library is functionally less capable than Adafruits e.g. it has no support for negative numbers. However it is 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.
|
|
|
|
|
|
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().
|