12864程序无字库(国外英文资料).doc
文本预览下载声明
12864程序无字库(国外英文资料)
# include reg51. H
# include intrins. H
# define uint unsigned int
# define uchar unsigned char
# define Port P0 / / LCD12864 data line
Sbit RS = P2 ^ 2; / / data \ instruction selection
Sbit RW = P2 ^ 1; / / read/write selection
Sbit EN = P2 ^ 0; / / read/write to enable
Sbit cs1 = P2 ^ 4; / / one piece
Sbit cs2 = P2 ^ 3; / / choose 2
* * * * * * * * * * * * * *
/ * define Chinese word library * /
* * * * * * * * * * * * * *
Uchar code
/ * -- words: each -- * /
/ * -- song body 12; The corresponding points in this font are: wide x height = 16x16 - * /
0x20, 0x20, 0x20, 0x10, 0x08, 0x8F, 0xB4, 0x44, 0x44, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x02, 0x02, 0x01, 0x01, 0x7F, 0x42, 0x42, 0x42, 0x42, 0x42, 0x7F, 0x01, 0x01, 0x01, 0x01,
/ * -- text: bit -- * /
/ * -- song body 12; The corresponding points in this font are: wide x height = 16x16 - * /
0x00, 0xC0, 0x30, 0x30, 0xEC, 0x03, 0x2A, 0xC8, 0x09, 0x0A, 0x0E, 0x08, 0xE8, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x7F, 0x20, 0x20, 0x20, 0x27, 0x20, 0x30, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
/ * -- text: single -- * /
/ * -- song body 12; The corresponding points in this font are: wide x height = 16x16 - * /
0x00, 0x00, 0xF8, 0x28, 0x29, 0x2E, 0x2A, 0x2C, 0x2C, 0x2A, 0x00, 0x00, 0x00, 0x00,
0x08, 0x08, 0x0B, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x08, 0x08, 0x08, 0x08, 0x08,
/ * -- text: machine -- * /
/ * -- song body 12; The corresponding points in this font are: wide x height = 16x16 - * /
0x08, 0x08, 0xC8, 0xFF, 0x48, 0x88, 0x08, 0x00, 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x0, 0x30, 0x0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/ * -- words: love -- * /
/ * -- song body 12; The corresponding points in this font are: wide x height = 16x16 - * /
0x00, 0x40, 0xB2, 0x9A, 0x9A, 0x9A, 0x9A, 0x9A, 0x91, 0x97, 0x97, 0x97, 0x90, 0x90, 0x30, 0x00,
0x40, 0x20, 0xA0, 0x90, 0x4C,
显示全部