用51單片機控制lcd1602顯示中文字幕,求大神幫我寫個程序,順便幫我解析一下取摸了之后這個東西咋創建自己的lcd1602中文庫。謝謝了
// ------------------ 漢字字模的數據結構定義 ------------------------ //typedef struct typFNT_GB16 // 漢字字模數據結構
{
signed char Index[2]; // 漢字內碼索引
char Msk[32]; // 點陣碼數據
};
/////////////////////////////////////////////////////////////////////////
// 漢字字模表 //
// 漢字庫: 宋體16.dot,橫向取模左高位,數據排列:從左到右從上到下 //
/////////////////////////////////////////////////////////////////////////
struct typFNT_GB16 code GB_16[] = // 數據表
{
"藝", 0x04,0x40,0x04,0x40,0xFF,0xFE,0x04,0x40,
0x00,0x00,0x3F,0xC0,0x00,0x80,0x01,0x00,
0x02,0x00,0x04,0x00,0x08,0x00,0x10,0x00,
0x20,0x02,0x20,0x02,0x20,0x02,0x1F,0xFE,
"超", 0x10,0x08,0x13,0xFC,0x10,0x88,0x7C,0x88,
0x10,0x88,0x10,0xA8,0xFD,0x10,0x12,0x00,
0x51,0xF8,0x5D,0x08,0x51,0x08,0x51,0x08,
0x71,0xF8,0x48,0x06,0x87,0xFC,0x00,0x00,
"歡", 0x00,0x80,0x00,0x80,0xFC,0x80,0x04,0xFC,
0x45,0x04,0x46,0x48,0x28,0x40,0x28,0x40,
0x10,0x40,0x28,0x40,0x24,0xA0,0x44,0xA0,
0x81,0x10,0x01,0x08,0x02,0x0E,0x0C,0x04,
"迎", 0x00,0x00,0x41,0x84,0x26,0x7E,0x14,0x44,
0x04,0x44,0x04,0x44,0xF4,0x44,0x14,0xC4,
0x15,0x44,0x16,0x54,0x14,0x48,0x10,0x40,
0x10,0x40,0x28,0x46,0x47,0xFC,0x00,0x00,
"你", 0x11,0x00,0x11,0x00,0x11,0x00,0x23,0xFC,
0x22,0x04,0x64,0x08,0xA8,0x40,0x20,0x40,
0x21,0x50,0x21,0x48,0x22,0x4C,0x24,0x44,
0x20,0x40,0x20,0x40,0x21,0x40,0x20,0x80
};
// 漢字表:
// 藝超歡迎你
|