你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

[复制链接]
ddllxxrr 提问时间:2009-5-2 07:59 /
大家好!好久不发是因为我出差了哈,过几天还出,慢慢来吧
有智林板的可以把所有文件考到一个目录下边,工程非常简单只包括三个文件
main.C//主文件
TFT018.c//显示有关文件
STM32F10XR.LIB//这个文件在MDK目录下边很好找
智林STM32开发板的汉显很简便实用用一个取模软件取模,然后用指针找字模
然后显示出来,哈哈......也实用的
希望大家多上我的店来坐坐,http://shop35738797.taobao.com/
很好的买家,合作非常愉快,希望再次惠顾小店,若白天不在晚上一定在的,大家着急请拍下,
付款发货的
以下是智林板的汉字字模文件:
// ------------------  汉字字模的数据结构定义 ------------------------ //
struct typFNT_GB16                 // 汉字字模数据结构
{
       unsigned char Index[3];               // 汉字内码索引
       char Msk[32];                       // 点阵码数据
};
/////////////////////////////////////////////////////////////////////////
// 汉字字模表                                                          //
// 汉字库: 宋体16.dot,横向取模左高位,数据排列:从左到右从上到下         //
/////////////////////////////////////////////////////////////////////////
const struct typFNT_GB16 codeGB_16[] =          // 数据表
{
"智", 0x00,0x00,0x18,0x00,0x11,0x22,0x1F,0xBF,0x64,0x22,0x05,0x22,0x7F,0xA2,0x0A,0x3E,
      0x09,0xA2,0x10,0x80,0x6F,0xF8,0x08,0x08,0x0F,0xF8,0x08,0x08,0x0F,0xF8,0x08,0x08,
"林", 0x00,0x00,0x0C,0x18,0x08,0x10,0x0A,0x12,0x7F,0x7F,0x08,0x10,0x18,0x30,0x18,0x58,
      0x2C,0x54,0x2A,0x54,0x4A,0x92,0x08,0x91,0x09,0x10,0x08,0x10,0x08,0x10,0x08,0x10,
"测", 0x00,0x00,0x20,0x02,0x1B,0xE2,0x0A,0x2A,0x02,0xAA,0x42,0xAA,0x2A,0xAA,0x2A,0xAA,
      0x0A,0xAA,0x12,0xAA,0x12,0xAA,0x72,0xAA,0x10,0x82,0x11,0x42,0x12,0x2A,0x14,0x24,
"控", 0x00,0x00,0x18,0x30,0x11,0x22,0x11,0xFF,0x7D,0x52,0x12,0x54,0x10,0x91,0x14,0x8F,
      0x19,0x00,0x70,0x04,0x51,0xFE,0x10,0x20,0x10,0x20,0x10,0x22,0x73,0xFF,0x20,0x00,
"技", 0x00,0x00,0x18,0x30,0x10,0x20,0x10,0x22,0x7D,0xFF,0x10,0x20,0x10,0x24,0x15,0xFE,
      0x18,0x84,0x70,0x44,0x50,0x48,0x10,0x30,0x10,0x10,0x10,0x28,0x70,0x44,0x21,0x83,
"术", 0x00,0x00,0x00,0xC0,0x00,0x90,0x00,0x88,0x00,0x8A,0x3F,0xFF,0x01,0xC0,0x01,0xA0,
      0x02,0xA0,0x02,0x90,0x04,0x90,0x08,0x88,0x10,0x84,0x60,0x83,0x00,0x80,0x00,0x80,
"研", 0x00,0x00,0x08,0x42,0x7D,0xEF,0x10,0x44,0x10,0x44,0x10,0x44,0x24,0x44,0x3E,0x54,
      0x64,0x6F,0x25,0xC4,0x25,0x44,0x3C,0x44,0x24,0x44,0x20,0x84,0x00,0x84,0x01,0x04,
"究", 0x00,0x00,0x01,0x80,0x21,0x04,0x3F,0xFE,0x20,0x04,0x4C,0x69,0x08,0x41,0x10,0x3F,
      0x63,0x00,0x02,0x20,0x3F,0xF0,0x04,0x20,0x04,0x22,0x08,0x22,0x10,0x23,0x60,0x1E,
"所", 0x00,0x00,0x27,0x4E,0x38,0x70,0x20,0x40,0x21,0x40,0x3F,0x42,0x21,0x7F,0x21,0x44,
      0x21,0x44,0x3F,0x44,0x21,0x44,0x20,0x44,0x20,0x84,0x40,0x84,0x40,0x84,0x41,0x04,
"开", 0x00,0x00,0x00,0x04,0x3F,0xFE,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x12,
      0x7F,0xFF,0x04,0x10,0x04,0x10,0x04,0x10,0x08,0x10,0x08,0x10,0x10,0x10,0x20,0x10,
"发", 0x00,0x00,0x01,0x00,0x11,0x10,0x11,0x08,0x21,0x02,0x3F,0xFF,0x02,0x00,0x02,0x08,
      0x03,0xFC,0x06,0x08,0x0A,0x10,0x11,0x20,0x20,0xC0,0x41,0x30,0x06,0x0F,0x38,0x02,
"板", 0x00,0x00,0x0C,0x82,0x08,0xFF,0x08,0x80,0x7E,0x80,0x18,0x82,0x18,0xFF,0x2C,0xA2,
      0x2A,0xA2,0x2A,0x92,0x48,0x94,0x08,0x88,0x09,0x14,0x09,0x14,0x09,0x22,0x0A,0x41,
"电", 0x02,0x00,0x02,0x00,0x02,0x10,0x7F,0xF8,0x42,0x10,0x42,0x10,0x7F,0xF0,0x42,0x10,
      0x42,0x10,0x7F,0xF0,0x42,0x10,0x02,0x00,0x02,0x04,0x02,0x04,0x01,0xFC,0x00,0x00,
"压", 0x00,0x08,0x3F,0xFC,0x20,0x80,0x20,0x80,0x20,0x80,0x20,0x80,0x20,0x88,0x2F,0xFC,
      0x20,0x80,0x20,0xA0,0x20,0x98,0x20,0x88,0x40,0x80,0x40,0x84,0x9F,0xFE,0x00,0x00,
};

以下是主程序文件:

int main(void)
{
#ifdef DEBUG
  debug();
#endif
  /* System Clocks Configuration */
  RCC_Configuration();
  /* NVIC Configuration */
  NVIC_Configuration();
  
  /* GPIO Configuration */
  GPIO_Configuration();

  /* Time base configuration */
  TIM_TimeBaseStructure.TIM_Period = 0x5000;         
  TIM_TimeBaseStructure.TIM_Prescaler = 0x00;      
  TIM_TimeBaseStructure.TIM_ClockDivision = 0x0;   
  TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;
  
  TIM_TimeBaseInit(TIM2, &TIM_TimeBaseStructure);
  /* Output Compare Toggle Mode configuration: Channel1 */
  TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_PWM1;
  TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
  TIM_OCInitStructure.TIM_Pulse =CCR3_Val ;
  TIM_OC3Init(TIM2, &TIM_OCInitStructure);
   
  /* TIM enable counter */
  TIM_Cmd(TIM2, ENABLE);
  LCD_Init();
  LCD_Clear_Screen(Blue);
  
  while(1)
  {
   
  for(;;) {
   
          Font = 0;
    LCD_PutString(30,10,"STM32F 开发板",Cyan,Blue);
    LCD_PutString(12,30,"STM32F EVAL BOARD",Blue2,Blue);
    Font = 1;
    LCD_PutString(38,46,"Version 1.0",Green,Blue);
    Font = 0;
    LCD_PutString(10,60,"智林测控技术研究所",Yellow,Blue);
    LCD_PutString(30,80,"ZERO Research",Yellow,Blue);
    LCD_PutString(36,100,"www.the0.net",Magenta,Blue);
   }   
  }  
}


为了方便有智林板的客户:我特意打了包,到时一起考到一个目录,建一下工程就可以了,HEX文件是编译好的,可以直接下
zl8.rar (279.32 KB, 下载次数: 70)
收藏 评论7 发布时间:2009-5-2 07:59

举报

7个回答
ddllxxrr 回答时间:2009-5-2 08:00:46

RE:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

智林板是自主开发的无产权之争的国产STM32开发板,请大家支持下国货
mc2mc2mc2 回答时间:2009-5-23 09:20:20

回复:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

顶一下,我也正在学习STM32!
lucky-92214 回答时间:2009-5-27 12:04:46

RE:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

智林板是不错,全力支持!
zhaohuoc 回答时间:2010-7-7 15:47:25

RE:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

顶一下,多谢楼主!
luoqizhu-173640 回答时间:2011-8-15 10:28:06

回复:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

luoqizhu谢谢
LguoF 回答时间:2012-5-5 20:29:31

回复:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

支持国货!
zhanghulingfeng 回答时间:2012-5-24 11:37:20

回复:用最新库玩转智林STM32开发板(之八)------在真彩屏上显示汉字

支持国货!

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版