Home

Awesome

MicroPython ESP8266 Nokia 5110 Quad 7-segment

A MicroPython library for emulating a quad 7-segment LED display modules using a Nokia 5110 display with PCD8544 driver.

demo

The 84x48 PCD8544 buffer:

demo

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 decimal point.

      A
     ---
  F |   | B
     -G-
  E |   | C
     ---   * H
      D

  HGFEDCBA
0b01101101 = 0x6D = 109 = show "5"
DisplayBinHexDec
00b001111110x3F63
10b000001100x066
20b010110110x5B91
30b010011110x4F79
40b011001100x66102
50b011011010x6D109
60b011111010x7D125
70b000001110x077
80b011111110x7F127
90b011011110x6F111
A0b011101110x77119
b0b011111000x7C124
C0b001110010x3957
d0b010111100x5E94
E0b011110010x79121
F0b011100010x71113
G0b001111010x3D61
H0b011101100x76118
I0b000001100x066
J0b000111100x1E30
K0b011101100x76118
L0b001110000x3856
M0b010101010x5585
n0b010101000x5484
O0b001111110x3F63
P0b011100110x73115
q0b011001110x67103
r0b010100000x5080
S0b011011010x6D109
t0b011110000x78120
U0b001111100x3E62
v0b000111000x1C28
W0b001010100x2A42
X0b011101100x76118
y0b011011100x6E110
Z0b010110110x5B91
blank0b000000000x000
-0b010000000x4064
*0b011000110x6399

Parts

Connections

WeMos D1 MiniNokia 5110 PCD8544 LCD
D3 (GPIO0)0 RST
D4 (GPIO2)1 CE
D8 (GPIO15)2 DC
D7 (GPIO13)3 Din
D5 (GPIO14)4 Clk
3V35 Vcc
D6 (GPIO12)6 BL
G7 Gnd

Links

License

Licensed under the MIT License.