
3-6. Sample application program
#define UCH_NUM 10 /* number of defined characters( single byte equivalent) */
/* Character pattern */
unsigned char pattern[ UCH_NUM * CHAR_SIZE_14 ] = {
0x00,0x3F,0x02,0x02,0x02,0x3F,0x22,0x22, /* 0x4100 */
0x22,0x22,0x22,0x3F,0x02,0x02,0x02,0x7F,
0x00,0xFE,0x20,0x20,0x20,0xFE,0x22,0x22, /* 0x4101 */
0x22,0x22,0x22,0xFE,0x20,0x20,0x20,0xFF,
0x00,0x01,0x3C,0x24,0x24,0x25,0x25,0x25, /* 0x4102 */
0x25,0x25,0x25,0x25,0x3C,0x00,0x00,0x03,
0x00,0xFE,0x48,0x48,0x48,0xCE,0x02,0x02, /* 0x4103 */
0x02,0x02,0x02,0xCE,0x48,0x48,0x48,0xFF,
0x10,0x10,0x10,0x7E,0x12,0x12,0x12,0x22, /* 0x4104 */
0x22,0x24,0x24,0x14,0x08,0x14,0x22,0x41,
0x10,0x10,0x10,0xFE,0x10,0x10,0x10,0xFF, /* 0x4105 */
0x00,0x10,0x10,0xFE,0x10,0x10,0x10,0xFF,
0x00,0x3E,0x22,0x22,0x24,0x24,0x28,0x24, /* 0x4106 */
0x22,0x22,0x22,0x22,0x3C,0x20,0x20,0x20,
0x00,0xFF,0x02,0x02,0x02,0xFA,0x8A,0x8A, /* 0x4107 */
0x8A,0x8A,0x8A,0xFA,0x02,0x02,0x02,0x0E,
0x00,0x00,0x7F,0x00,0x1F,0x10,0x10,0x10, /* 0x4108 */
0x1F,0x02,0x04,0x1C,0x64,0x04,0x07,0x1C,
0x80,0x80,0xFF,0x00,0xFC,0x04,0x04,0x04, /* 0x4109 */
0xFC,0x80,0x44,0x48,0x30,0x10,0x8C,0x03,
} ;
/* Registering the Character pattern */
crt_reguserchar( UCH_NUM, pattern ) ;
/* Assigning character code */
crt_mapuch( 0xEBA0, 0x4100 ) ; /* 2-byte character */
crt_mapuch( 0xEBA1, 0x4102 ) ; /* 2-byte character */
crt_mapuch( 0xEBA2, 0x4104 ) ; /* 2-byte character */
crt_mapuch( 0x41, 0x4106 ) ; /* single byte character */
crt_mapuch( 0x42, 0x4107 ) ; /* single byte character */
crt_mapuch( 0x43, 0x4108 ) ; /* single byte character */
crt_mapuch( 0x44, 0x4109 ) ; /* single byte character */
/* display user defined character */
printf( "¥xEB¥xA0¥xEB¥xA1¥xEB¥xA2" ) ; /* 2-byte character */
printf( "¥033(8ABCD¥033(4" ) ; /* single byte character */