/*
Patryk Szpejankowski 2008
Fill free to drop a message through 8052.com if you found these fonts useful.
ASCII fonts for 7-segment display.
Numbers in table: active high segments, (bit0,bit1..bit6,bit7) correspond to
segments (a,b..g,h). Many fonts are defined as three horizontal bars to indicate
that I had no idea how to define them on 7-segment display :-)
Text samples:
HELLO!
Error
donE
StArt
StOP
run
PLAY
YES
no
no diSC
CAnCEL
ECHO
bASS
trEbLE
StorE
*/
code const unsigned char Font_tbl[128] =
{
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*/
0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49, 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
/* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*/
0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49, 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
/* _ _ _ _ _ _ _ _ _
| | | _ _ _ _ | _ _ _ _ _ _ _|
2 . _ _ _ _ _ _ _ _ _ . |
' ' ! " # $ % & ' ( ) * + , - . / */
0x00,0x82,0x22,0x49,0x49,0x49,0x49,0x02, 0x49,0x49,0x49,0x49,0x49,0x40,0x80,0x52,
/* _ _ _ _ _ _ _ _ _ _ _ _ _
| | | _| _| |_| |_ |_ | |_| |_| _ _ _ _ _ _|
3 |_| | |_ _| | _| |_| | |_| _| _ _ _ _ _ |
0 1 2 3 4 5 6 7 8 9 : ; < = > ? */
0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07, 0x7F,0x6F,0x49,0x49,0x49,0x48,0x49,0x53,
/* _ _ _ _ _ _ _ _ _ _ _ _
|_| |_| _ | _ |_ |_ |_ |_| | | _ | _ | | | |
4 |_ | | _ |_ _ |_ | |_| | | | _| _ |_ _ | | |_|
@ A B C D E F G H I J K L M N O */
0x7B,0x77,0x49,0x39,0x49,0x79,0x71,0x7D, 0x76,0x06,0x0E,0x49,0x38,0x49,0x37,0x3F,
/* _ _ _ _ _ _ _ _ _ _ _ _
|_| _ _ |_ _ | | _ _ _ |_| _| | |_ | | |
5 | _ _ _| _ |_| _ _ _ _| |_ |_ | _| _
P Q R S T U V W X Y Z [ \ ] ^ _ */
0x73,0x49,0x49,0x6D,0x49,0x3E,0x49,0x49, 0x49,0x6E,0x5B,0x39,0x64,0x0F,0x23,0x08,
/* _ _ _ _ _ _
| _| |_ _ _| |_| |_ |_| |_ | _ | _ _ _
6 |_| |_| |_ |_| |_ | _| | | | _| _ | _ | | |_|
` a b c d e f g h i j k l m n o */
0x20,0x5F,0x7C,0x58,0x5E,0x7B,0x71,0x6F, 0x74,0x04,0x0E,0x49,0x06,0x49,0x54,0x5C,
/* _ _ _ _ _ _ _ _ _
|_| |_| _ |_ |_ _ _ _ |_| _| _| | |_ _
7 | | | _| |_ |_| _ _ _ _| |_ | | | _
p q r s t u v w x y z { | } ~ DEL */
0x73,0x67,0x50,0x6D,0x78,0x1C,0x49,0x49, 0x49,0x6E,0x5B,0x46,0x30,0x70,0x01,0x49
};
/* "Blank" template - suitable to define custom fonts.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_|
0 |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_|
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49, 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
*/