|
Text display on a Cricket LED bus module.
Use letters on the 7-segment LED number display bus module for the Handy Cricket.
|
|
|
|
 |
|
| inventionDB |
#2862 |
| posted by |
Ryan Tucker
|
| entered |
August 30, 2007 |
| website |
http://www.handyboard.com/cricket/bus/4digit.shtml |
Description: 
This table can be used to display letters on the 4 digit LED display connected to the Handy Cricket bus port.
Letter Hex code
A $77
B $7C
C $58
D $5E
E $7B
F $71
G $3D
H $74
I $30
J $1E
K $76
L $38
M $79
N $54
O $5C
P $73
Q $67
R $50
S $6D
T $78
U $1C
V $1C
W $4F
X $76
Y $6E
Z $5B
The sample code below was modified from the reference code at http://www.handyboard.com/cricket/bus/4digit.shtml
;; Ryan Tucker's code to display the alphabet
;; on a 4 digit LED dispay with 7 lines for
;; each character.
;;
;; This code will display the alphabet 4 letters
;; at a time.
to main
display-bits $77 $7c $58 $5e
wait 50
display-bits $7b $71 $3d $74
wait 50
display-bits $30 $1e $76 $38
wait 50
display-bits $79 $54 $5c $73
wait 50
display-bits $67 $50 $6d $78
wait 50
display-bits $1c $1c $4f $76
wait 50
display-bits $6e $5b $00 $00
end
to display-bits :d1 :d2 :d3 :d4
bsend $110
bsend 64
bsend low-byte :d1
bsend low-byte :d2
bsend low-byte :d3
bsend low-byte :d4
end
|
|
|
|