User manual

[ 0x00, 0x06, 0x01, 0x06, 0x20, 0x06, 0x06, 0x05, 0x06, 0x02, 0x06, 0x03], #8
[ 0x00, 0x06, 0x01, 0x02, 0x04, 0x06, 0x20, 0x20, 0x06, 0x20, 0x20, 0x06] #9
]
0x00 indicates the first symbol (a lower-right triangle), 0x01 indicates the second (a lower-
left triangle), and so on. 0x20 is a blank. The 12 symbols in each digit are ordered from
top-left to lower-right.
To display a digit, take its list of 12 symbols and display them in a 3x4 matrix:
def ShowBigDigit(symbol,startCol):
#displays a 4-row-high digit at specified column
for row in range(4):
GotoXY(row,startCol)
for col in range(3):
index = row*3 + col
SendByte(symbol[index],True)
Time display involves getting the time digits and displaying them once a second. In the time
module there is a function strftime which lets us format the time. By calling with the
parameter ("%I%M%S"), a time of 12:23:56 will returned as a string ‘122356’.
def BigClock():
#displays large-digit time in hh:mm:ss on 20x4 LCD
LoadSymbolBlock(digits)
posn = [0,3,7,10,14,17] #column position for each digit
ClearDisplay()
ShowColon(6)
ShowColon(13)
while (True): #CONTINOUS LOOP!
tStr = time.strftime("%I%M%S") #time in HHMMSS format
for i in range(len(tStr)): #FOR EACH DIGIT ---
value = int(tStr[i]) #convert char to int
symbols = bigDigit[value] #get symbol list
ShowBigDigit(symbols,posn[i]) #display digit on LCD
time.sleep(1) #update clock each second
BigClock runs a continuous loop, so you will need to Ctrl-C from the keyboard to stop it
running. Enjoy!
The numeral ‘2’ begins with a lower-right triangle (0x00)
in the top left corner, followed by a solid block (0x06) and
a lower-left triangle (0x01). The complete sequence is
[0x00, 0x06, 0x01, 0x20, 0x00, 0x03, 0x00, 0x03, 0x20,
0x06, 0x06, 0x06]