Programming Reference for the TM1637 Clock LED Driver
Seven Segment Font
They are called 7-segment displays as there are 7 LEDs for each digit (segment).
One byte (7 lower bits) for each segment. The 8th bit (MSB) is for the colon and only on the 2nd segment.
| A
---
F | | B *
-G- H (on 2nd segment)
E | | C *
---
D
HGFEDCBA
0b01101101 = 0x6D = 109 = show "5"
|
Display |
Bin |
Hex |
Dec |
0 |
0b00111111 |
0x3F |
63 |
1 |
0b00000110 |
0x06 |
6 |
2 |
0b01011011 |
0x5B |
91 |
3 |
0b01001111 |
0x4F |
79 |
4 |
0b01100110 |
0x66 |
102 |
5 |
0b01101101 |
0x6D |
109 |
6 |
0b01111101 |
0x7D |
125 |
7 |
0b00000111 |
0x07 |
7 |
8 |
0b01111111 |
0x7F |
127 |
9 |
0b01101111 |
0x6F |
111 |
A |
0b01110111 |
0x77 |
119 |
b |
0b01111100 |
0x7C |
124 |
C |
0b00111001 |
0x39 |
57 |
d |
0b01011110 |
0x5E |
94 |
E |
0b01111001 |
0x79 |
121 |
F |
0b01110001 |
0x71 |
113 |
G |
0b00111101 |
0x3D |
61 |
H |
0b01110110 |
0x76 |
118 |
I |
0b00000110 |
0x06 |
6 |
J |
0b00011110 |
0x1E |
30 |
K |
0b01110110 |
0x76 |
118 |
L |
0b00111000 |
0x38 |
56 |
M |
0b01010101 |
0x55 |
85 |
n |
0b01010100 |
0x54 |
84 |
O |
0b00111111 |
0x3F |
63 |
P |
0b01110011 |
0x73 |
115 |
q |
0b01100111 |
0x67 |
103 |
r |
0b01010000 |
0x50 |
80 |
S |
0b01101101 |
0x6D |
109 |
t |
0b01111000 |
0x78 |
120 |
U |
0b00111110 |
0x3E |
62 |
v |
0b00011100 |
0x1C |
28 |
W |
0b00101010 |
0x2A |
42 |
X |
0b01110110 |
0x76 |
118 |
y |
0b01101110 |
0x6E |
110 |
Z |
0b01011011 |
0x5B |
91 |
blank |
0b00000000 |
0x00 |
0 |
- |
0b01000000 |
0x40 |
64 |
* |
0b01100011 |
0x63 |
99 |
Methods
Set Brightneww
Get or set brightness.
Write Segments
Write one or more segments at a given offset.
Write Two Numbers and Colon
Write Two Numbers and Colon
| numbers(num1, num2, colon=True):
|