资源简介

LCD12864(KS0108) C51程序,经过测试不存在任何问题。采用AT89S52单片机编写,非常好用,对于没有字库的LCD12864都可以参考写法

资源截图

代码片段和文件信息

// ------------------  汉字字模的数据结构定义 ------------------------ //
typedef struct typFNT_GB16 // 汉字字模数据结构
{
       unsigned char Index[2]; // 汉字内码索引
       unsigned char Msk[32]; // 点阵码数据
};


/////////////////////////////////////////////////////////////////////////
// 汉字字模表                                                          //
// 汉字库: 宋体16.dot 纵向取模下高位数据排列:从左到右从上到下         //
/////////////////////////////////////////////////////////////////////////
struct typFNT_GB16 code GB_16[] =          // 数据表
{
“我“ 0x200x240x240x240xFE0x230x220x200xFF0x200x220xAC0x200x300x200x00
      0x000x080x480x840x7F0x020x210x100x090x060x1A0x610x800xE00x000x00

“爱“ 0x400xB00x920x960x9A0x920xF20x9E0x920x910x990x950x910x500x300x00
      0x000x000x400x300x8C0x830x460x2A0x120x2A0x260x420xC00x400x000x00

“你“ 0x400x200xF80x070x400x200x180x0F0x080xC80x080x080x280x180x000x00
      0x000x000xFF0x000x000x080x040x430x800x7F0x000x010x060x0C0x000x00

“知“ 0x400x200x1F0x080xF80x080x0C0x880x000xF80x080x080x080xFC0x080x00
      0x810x410x210x190x070x090x310x010x010x7F0x200x200x200x7F0x000x00

“吗“ 0x000xFC0x040x040xFE0x040x020xFA0x020x020x020xFF0x020x800x000x00
      0x000x1F0x080x080x1F0x080x080x090x090x090x0D0x490x810x7F0x010x00

“道“ 0x400x420x440xCC0x000x040xE50xB60xAC0xA40xA40xA60xF50x240x000x00
      0x000x400x200x1F0x200x400xBF0xA40xA40xA40xA40xA40xBF0xC00x400x00

“,“ 0x000x000x000x000x000x000x000x000x000x000x000x000x000x000x000x00
      0x000x000x000x460x2F0x1F0x060x000x000x000x000x000x000x000x000x00
};
#define GB_16_num sizeof(GB_16) / 34 //汉字个数
// 汉字表:
// 我爱你,知道吗

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      31771  2009-05-25 16:28  LCD12864(KS0108)测试\图形函数\动画\Font_code.C

     文件      33065  2009-08-07 15:50  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_Demo

     文件      10832  2009-05-26 21:22  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_Demo.C

     文件       1551  2009-08-07 15:50  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_Demo.Opt

     文件       2024  2009-05-24 20:52  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_Demo.Uv2

     文件      11965  2009-08-07 15:49  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_V3.C

     文件       7219  2009-08-07 16:18  LCD12864(KS0108)测试\图形函数\动画\LCD128X64_V3.H

     文件       8024  2009-05-20 10:16  LCD12864(KS0108)测试\图形函数\动画\取码设置.png

     文件      31771  2009-05-25 16:28  LCD12864(KS0108)测试\图形函数\方圆\Font_code.C

     文件      32149  2009-08-07 15:51  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo

     文件      10571  2009-05-26 20:24  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo.C

     文件       1362  2010-03-09 12:53  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo.Opt

     文件        223  2010-03-09 12:49  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo.plg

     文件       2143  2010-03-09 12:53  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo.Uv2

     文件       1551  2009-08-07 15:51  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo_Opt.Bak

     文件       2024  2009-05-24 20:52  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_Demo_Uv2.Bak

     文件      11964  2009-08-07 15:50  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_V3.C

     文件       7219  2009-08-07 16:18  LCD12864(KS0108)测试\图形函数\方圆\LCD128X64_V3.H

     文件       8024  2009-05-20 10:16  LCD12864(KS0108)测试\图形函数\方圆\取码设置.png

     文件      31771  2009-05-25 16:28  LCD12864(KS0108)测试\图形函数\测试\Font_code.C

     文件      32260  2009-08-07 15:50  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo

     文件      10565  2009-05-26 15:39  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo.C

     文件       1359  2010-03-09 13:12  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo.Opt

     文件        223  2010-03-09 13:08  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo.plg

     文件       2143  2010-03-09 13:12  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo.Uv2

     文件       1551  2009-08-07 15:50  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo_Opt.Bak

     文件       2024  2009-05-24 20:52  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_Demo_Uv2.Bak

     文件      11965  2009-08-07 15:48  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_V3.C

     文件       7219  2009-08-07 16:17  LCD12864(KS0108)测试\图形函数\测试\LCD128X64_V3.H

     文件       8024  2009-05-20 10:16  LCD12864(KS0108)测试\图形函数\测试\取码设置.png

............此处省略115个文件信息

评论

共有 条评论