IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 嵌入式 -> STM32 LCD12864使用教程 -> 正文阅读

[嵌入式]STM32 LCD12864使用教程

一、LCD12864简介

  • 带中文字库的128X64 是一种具有4 位/8 位并行、2 线或3 线串行多种接口方式
  • 显示分辨率为128×64, 内置8192 个1616 点汉字,和128 个168 点ASCII 字符集
    在这里插入图片描述

二、引脚介绍

1、LCD12864引脚

LCD12864有16脚和20脚两种,但引脚功能都差不多,重要的也就那几个引脚,下图是20引脚的LCD12864的引脚描述:
在这里插入图片描述
模块有串行和并行两种方式,由于我用的是串行方式,所以下面的介绍都是串行方式的。

2、串行控制引脚

在这里插入图片描述

  • 引脚
  • 1 VSS 电源负极
  • 2 VDD 电源正极
  • 4 CS 片选引脚 高电位可接受数据,低电位锁存
  • 5 SID 串行数据输入端
  • 6 CLK 串行同步时钟
  • 可选引脚
  • 3 V0 调节屏幕亮度
  • 15 PSB 低电平有效 其中低电平为串口方式 ,如果只用串口通信模式 可以将PSB引脚飞线与地线相连 即固定低电平
    -17 RESET 复位引脚 低电平可使LCD复位
  • 19 A LCD背光源的电源
  • 20 K LCD背光源的地,如果需要背光,可以将19引脚与LCD2引脚电源正极相连,20引脚与LCD1引脚电源地相连
    在这里插入图片描述
    通过时序图即可知道串口模式下控制LCD12864的步骤。

三、CubeIDE配置

使用的是STM32F407ZET6芯片,通过CubeIDE对其进行配置,配置过程如下:

1、新建工程选择对应的芯片,CubeIDE新建工程和系统配置的教程网上太多了,我就不再介绍。

2、引脚配置

在这里插入图片描述
只需要配置这几个I/O口就可以了,其他时钟配置就不在这里介绍。

四、程序

1、LCD12864.h

/*
 * lcd12864.h
 *
 *  Created on: Aug 13, 2021
 *      Author: along
 */
/*
 * 注:显示屏正面朝上,排针那一侧靠近自己,右侧第一个为Pin1,左侧第一个为Pin16
 * Pin7:SCLK
 * Pin8:SDA
 * Pin9:VCC(3.3V)
 * Pin10:GND
 * Pin11:背光电压正极(3.3V)
 * Pin12:片选信号CS(低有效)
 * Pin13:复位脚RESET
 * Pin14:命令或数据切换RS
 *
 * 									LCD12864-->STM32F407ZET6     User Label
 * 		 								  CS-->PA1				   LCD_CS
 * 		 								  RS-->PA2				   LCD_RS
 * 	  								   RESET-->PA3				  LCD_RESET
 * 	   								    SCLK-->PB10				  LCD_SCLK
 * 										 SDA-->PB11				   LCD_SDA
 */


#ifndef INC_LCD12864_H_
#define INC_LCD12864_H_

#include "gpio.h"


#define CS_0 HAL_GPIO_WritePin(GPIOA, LCD_CS_Pin, GPIO_PIN_RESET)
#define CS_1 HAL_GPIO_WritePin(GPIOA, LCD_CS_Pin, GPIO_PIN_SET)
#define RS_0 HAL_GPIO_WritePin(GPIOA, LCD_RS_Pin, GPIO_PIN_RESET)
#define RS_1 HAL_GPIO_WritePin(GPIOA, LCD_RS_Pin, GPIO_PIN_SET)
#define RESET_0 HAL_GPIO_WritePin(GPIOA, LCD_RESET_Pin, GPIO_PIN_RESET)
#define RESET_1 HAL_GPIO_WritePin(GPIOA, LCD_RESET_Pin, GPIO_PIN_SET)
#define SCLK_0 HAL_GPIO_WritePin(GPIOB, LCD_SCLK_Pin, GPIO_PIN_RESET)
#define SCLK_1 HAL_GPIO_WritePin(GPIOB, LCD_SCLK_Pin, GPIO_PIN_SET)
#define SDA_0 HAL_GPIO_WritePin(GPIOB, LCD_SDA_Pin, GPIO_PIN_RESET)
#define SDA_1 HAL_GPIO_WritePin(GPIOB, LCD_SDA_Pin, GPIO_PIN_SET)


void Delay(unsigned short tick);
void InitLCD(void);
void WriteToLCD(unsigned char data, unsigned char flg);
void ClearScreen(void);
void LCDAddr(unsigned char page,unsigned char column);
void DisplayStr(unsigned short page,unsigned short column,char *text);
void DisplayChinese(unsigned char page,unsigned char column,unsigned char no);


#endif /* INC_LCD12864_H_ */

2、LCD12864.c

/*
 * lcd12864.c
 *
 *  Created on: Aug 13, 2021
 *      Author: along
 */
#include "lcd12864.h"
#include "codelib.h"



void Delay(unsigned short tick)
{
	uint8_t j,k;
	for(j=0;j<tick;j++)
	for(k=0;k<110;k++);
}

/*********************************************************************************************************
** 函数名称: InitLCD
** 功能描述: 初始化LCD模块
** 输   入: 无
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void InitLCD(void)
{
	Delay(20);
	RESET_0;
	Delay(5);
	RESET_1;

	WriteToLCD(0xE2, 1);
	Delay(5);
	WriteToLCD(0x2c, 1);		/*升压步聚1*/
	Delay(5);
	WriteToLCD(0x2e, 1);		/*升压步聚2*/
	Delay(5);
	WriteToLCD(0x2f, 1);		/*升压步聚3*/
	Delay(5);
	WriteToLCD(0x25, 1);		/*粗调对比度,可设置范围20~27*/
	WriteToLCD(0x81, 1);		/*微调对比度*/
	WriteToLCD(0x1a, 1);		/*微调对比度的值,可设置范围0~63  1f*/
	WriteToLCD(0xa2, 1);		/*1/9偏压比(bias)*/
	WriteToLCD(0xc8, 1);		/*行扫描顺序:从上到下*/
	WriteToLCD(0xa0, 1);		/*列扫描顺序:从左到右*/
	WriteToLCD(0x40, 1);		/*起始行:从第一行开始*/
	ClearScreen();
	WriteToLCD(0xaf, 1);		/*开显示*/
}

/*********************************************************************************************************
** 函数名称: WriteToLCD
** 功能描述: 写数据进LCD
** 输   入: data:写数据
**			 flg:标识。(0,数据)(1,命令)
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void WriteToLCD(unsigned char data, unsigned char flg)
{
	unsigned char i;
	CS_0;
	if(flg)
	{RS_0;}
	else{RS_1;}
	for(i=0;i<8;i++)
	{
		SCLK_0;
		if(flg)Delay(2);
		if(data&0x80)
		{SDA_1;}
		else
		{SDA_0;}
		SCLK_1;
		data <<= 1;
	}
}

/*********************************************************************************************************
** 函数名称: ClearScreen
** 功能描述: 清除屏幕
** 输   入: 无
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void ClearScreen(void)
{
	unsigned char i,j;
	for(i=0;i<9;i++)
	{
		CS_0;
		WriteToLCD(0xb0+i,1);
		WriteToLCD(0x10,1);
		WriteToLCD(0x00,1);
		for(j=0;j<132;j++)
		{
			WriteToLCD(0x00,0);
		}
	}
}

/*********************************************************************************************************
** 函数名称: LCDAddr
** 功能描述: LCD地址偏移,内部使用
** 输   入: page:页,column:列
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void LCDAddr(unsigned char page,unsigned char column)
{
	CS_0;
	column--;
	page--;
	WriteToLCD(0xb0+page,1);
	WriteToLCD(((column>>4)&0x0f)+0x10,1);
	WriteToLCD(column&0x0f,1);
}

/*********************************************************************************************************
** 函数名称: DisplayStr
** 功能描述: 显示字符串
** 输   入: page:页,column:列,text:文本指针
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void DisplayStr(unsigned short page,unsigned short column,char *text)
{
  unsigned short i=0,j,k,n;
  CS_0;
  while(text[i]>0x00)
  {
    if((text[i]>=0x20)&&(text[i]<=0x7e))
    {
      j=text[i]-0x20;
      for(n=0;n<2;n++)
      {
        LCDAddr(page+n,column);
        for(k=0;k<8;k++)
        {
          WriteToLCD(ascii_table_8x16[j][k+8*n],0);
        }
      }
      i++;
      column+=8;
    }
    else
	{
		i++;
	}
  }
	CS_1;
}

/*********************************************************************************************************
** 函数名称: DisplayChinese
** 功能描述: 显示汉字
** 输   入: page:页,column:列,no:汉字序号
** 输   出: 无
** 全局变量: 无
** 调用模块: 无
********************************************************************************************************/
void DisplayChinese(unsigned char page,unsigned char column,unsigned char no)
{
  unsigned char i,j;
  CS_0;
  for(j=0;j<2;j++)
  {
	LCDAddr(page+j,column);
	for (i=0;i<16;i++)
	{
		WriteToLCD(Hzk[2*no+j][i],0);    //写数据到 LCD,每写完一个 8 位的数据后列地址自动加 1
	}
  }
  CS_1;
}

3、codelib.h(字库)

/*
 * codelib.h
 *
 *  Created on: Aug 13, 2021
 *      Author: along
 */

#ifndef INC_CODELIB_H_
#define INC_CODELIB_H_


unsigned char static ascii_table_8x16[95][16]={

/*--  文字:     --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  !  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00,

/*--  文字:  "  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  #  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00,

/*--  文字:  $  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00,

/*--  文字:  %  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00,

/*--  文字:  &  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10,

/*--  文字:  '  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  (  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00,

/*--  文字:  )  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00,

/*--  文字:  *  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00,

/*--  文字:  +  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00,

/*--  文字:  ,  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  -  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

/*--  文字:  .  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  /  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00,

/*--  文字:  0  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,

/*--  文字:  1  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

/*--  文字:  2  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,

/*--  文字:  3  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/

0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  4  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,

/*--  文字:  5  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  6  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  7  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  8  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,

/*--  文字:  9  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,

/*--  文字:  :  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,

/*--  文字:  ;  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00,

/*--  文字:  <  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00,

/*--  文字:  =  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,

/*--  文字:  >  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00,

/*--  文字:  ?  --*/

/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00,

/*--  文字:  @  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00,

/*--  文字:  A  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20,

/*--  文字:  B  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  C  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00,

/*--  文字:  D  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00,

/*--  文字:  E  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00,

/*--  文字:  F  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00,

/*--  文字:  G  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00,

/*--  文字:  H  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20,

/*--  文字:  I  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

/*--  文字:  J  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00,


/*--  文字:  K  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00,

/*--  文字:  L  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00,

/*--  文字:  M  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00,

/*--  文字:  N  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00,

/*--  文字:  O  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00,

/*--  文字:  P  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00,

/*--  文字:  Q  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00,

/*--  文字:  R  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20,

/*--  文字:  S  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00,

/*--  文字:  T  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,

/*--  文字:  U  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,

/*--  文字:  V  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00,
/*--  文字:  W  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00,

/*--  文字:  X  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20,

/*--  文字:  Y  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,

/*--  文字:  Z  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00,

/*--  文字:  [  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00,

/*--  文字:  \  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00,

/*--  文字:  ]  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,

/*--  文字:  ^  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  _  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,

/*--  文字:  `  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  a  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20,

/*--  文字:  b  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/


0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  c  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00,

/*--  文字:  d  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20,

/*--  文字:  e  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00,

/*--  文字:  f  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

/*--  文字:  g  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00,

/*--  文字:  h  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,

/*--  文字:  i  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

/*--  文字:  j  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,

/*--  文字:  k  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00,

/*--  文字:  l  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

/*--  文字:  m  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F,

/*--  文字:  n  --*/

/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,

/*--  文字:  o  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,

/*--  文字:  p  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00,

/*--  文字:  q  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80,

/*--  文字:  r  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00,

/*--  文字:  s  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00,

/*--  文字:  t  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00,

/*--  文字:  u  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20,

/*--  文字:  v  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00,

/*--  文字:  w  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00,

/*--  文字:  x  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00,

/*--  文字:  y  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00,

/*--  文字:  z  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00,

/*--  文字:  {  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40,

/*--  文字:  |  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,

/*--  文字:  }  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  ~  --*/
/*--  Comic Sans MS12;  此字体下对应的点阵为:宽 x 高=8x16   --*/
0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

};

#### 3const unsigned char Hzk[][32]=
{
	{0x14,0x24,0x44,0x84,0x64,0x1C,0x20,0x18,0x0F,0xE8,0x08,0x08,0x28,0x18,0x08,0x00},
	{0x20,0x10,0x4C,0x43,0x43,0x2C,0x20,0x10,0x0C,0x03,0x06,0x18,0x30,0x60,0x20,0x00},/*"欢",0*/

	{0x40,0x41,0xCE,0x04,0x00,0xFC,0x04,0x02,0x02,0xFC,0x04,0x04,0x04,0xFC,0x00,0x00},
	{0x40,0x20,0x1F,0x20,0x40,0x47,0x42,0x41,0x40,0x5F,0x40,0x42,0x44,0x43,0x40,0x00},/*"迎",1*/
	/*--  文字:  使  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x20,0xF0,0x1C,0x07,0xF2,0x94,0x94,0x94,0xFF,0x94,0x94,0x94,0xF4,0x04,0x00},
	{0x00,0x00,0x7F,0x00,0x40,0x41,0x22,0x14,0x0C,0x13,0x10,0x30,0x20,0x61,0x20,0x00},/*"使",21*/
	/*--  文字:  用  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,0x00},
	{0x80,0x40,0x30,0x0F,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x42,0x82,0x7F,0x00,0x00},/*"用",3*/
	/*--  文字:  本  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x08,0x08,0x08,0x08,0x08,0xC8,0x38,0xFF,0x18,0x68,0x88,0x08,0x08,0x08,0x08,0x00},
	{0x08,0x08,0x04,0x02,0x05,0x04,0x04,0x7F,0x04,0x04,0x04,0x03,0x06,0x0C,0x04,0x00},/*"本",4*/
	/*--  文字:  产  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x04,0xE4,0x44,0x4C,0x74,0x54,0x45,0x46,0x64,0x54,0x4C,0x44,0x64,0x44,0x00},
	{0x40,0x30,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"产",5*/
	/*--  文字:  品  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0x00,0x00,0x7E,0x22,0x22,0x22,0x22,0x22,0x22,0x7E,0x00,0x00,0x00,0x00},
	{0x00,0x7F,0x21,0x21,0x21,0x21,0x7F,0x00,0x7F,0x21,0x21,0x21,0x21,0x7F,0x00,0x00},/*"品",6*/
	/*--  文字:  初  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x08,0x88,0xC9,0x2E,0x98,0x48,0x00,0x08,0x08,0xF8,0x08,0x08,0xFC,0x08,0x00},
	{0x02,0x01,0x00,0x7F,0x01,0x02,0x44,0x20,0x10,0x0C,0x03,0x20,0x40,0x3F,0x00,0x00},/*"初",7*/
	/*--  文字:  始  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x10,0x90,0x70,0x1F,0x12,0xF0,0x00,0x20,0x70,0x28,0x27,0x22,0x28,0x70,0x20,0x00},
	{0x40,0x21,0x12,0x0C,0x06,0x09,0x30,0x00,0x7F,0x21,0x21,0x21,0x21,0x7F,0x00,0x00},/*"始",8*/
	/*--  文字:  化  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x80,0x40,0x20,0xF8,0x07,0x02,0x00,0x00,0xFF,0xC0,0x60,0x30,0x1C,0x08,0x00,0x00},
	{0x00,0x00,0x00,0x7F,0x00,0x04,0x02,0x01,0x3F,0x40,0x40,0x40,0x40,0x78,0x00,0x00},/*"化",9*/
	/*--  文字:  完  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x90,0x8C,0xA4,0xA4,0xA4,0xA5,0xA6,0xA4,0xA4,0xA4,0xA4,0x94,0x8C,0x04,0x00},
	{0x00,0x80,0x40,0x20,0x18,0x07,0x00,0x00,0x00,0x3F,0x40,0x40,0x40,0x70,0x00,0x00},/*"完",10*/
	/*--  文字:  成  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0xF8,0x48,0x48,0x48,0xC8,0x08,0xFF,0x08,0x09,0x0A,0xC8,0x88,0x08,0x00},
	{0x40,0x30,0x0F,0x00,0x08,0x50,0x4F,0x20,0x10,0x0B,0x0C,0x12,0x21,0x40,0xF0,0x00},/*"成",11*/
	/*--  文字:  请  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x42,0x4C,0xC4,0x00,0x22,0xAA,0xAA,0xAA,0xBF,0xAA,0xAA,0xAA,0x22,0x20,0x00},
	{0x00,0x00,0x00,0x7F,0x20,0x10,0xFF,0x0A,0x0A,0x0A,0x4A,0x8A,0x7F,0x00,0x00,0x00},/*"请",12*/
	/*--  文字:  按  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x10,0x10,0x10,0xFF,0x90,0x50,0x98,0x88,0x88,0xE9,0x8E,0x88,0x88,0x98,0x88,0x00},
	{0x02,0x42,0x81,0x7F,0x00,0x40,0x40,0x26,0x25,0x18,0x08,0x16,0x31,0x60,0x20,0x00},/*"按",13*/
	/*--  文字:  启  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0x00,0xF8,0x48,0x48,0x48,0x49,0x4E,0x4A,0x48,0x48,0x48,0x78,0x00,0x00},
	{0x40,0x20,0x18,0x07,0x00,0x7E,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x7E,0x00,0x00},/*"启",14*/
	/*--  文字:  动  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x20,0x24,0x24,0xE4,0x24,0x24,0x24,0x20,0x10,0x10,0xFF,0x10,0x10,0xF0,0x00,0x00},
	{0x08,0x1C,0x0B,0x08,0x0C,0x05,0x4E,0x24,0x10,0x0C,0x03,0x20,0x40,0x3F,0x00,0x00},/*"动",15*/
	/*--  文字:  键  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x30,0xEF,0x28,0x28,0x44,0x64,0xDC,0x10,0x54,0xFF,0x54,0x54,0x7C,0x10,0x00},
	{0x01,0x01,0x7F,0x21,0x51,0x22,0x14,0x0F,0x14,0x25,0x3F,0x45,0x45,0x45,0x44,0x00},/*"键",16*/
	/*--  文字:  未  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x40,0x48,0x48,0x48,0x48,0xC8,0xFF,0x48,0x48,0x48,0x48,0x48,0x40,0x40,0x00},
	{0x20,0x20,0x10,0x10,0x08,0x06,0x01,0xFF,0x01,0x02,0x04,0x08,0x18,0x30,0x10,0x00},/*"未",17*/
	/*--  文字:  链  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x30,0xEF,0x24,0x24,0x00,0x44,0xD8,0x04,0x74,0x4F,0xF4,0x44,0x44,0x00,0x00},
	{0x01,0x01,0x7F,0x21,0x11,0x48,0x20,0x1F,0x22,0x42,0x42,0x5F,0x42,0x42,0x42,0x00},/*"链",18*/
	/*--  文字:  接  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x08,0x08,0x08,0xFF,0x88,0x68,0x24,0x2C,0xB4,0x25,0x26,0x34,0x2C,0x24,0x20,0x00},
	{0x02,0x42,0x81,0x7F,0x02,0x82,0x8A,0x4E,0x53,0x32,0x12,0x2E,0x42,0xC2,0x02,0x00},/*"接",19*/
	/*--  文字:  功  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x04,0x04,0x04,0xFC,0x04,0x14,0x14,0x10,0x90,0x7F,0x10,0x10,0xF0,0x00,0x00},
	{0x04,0x0C,0x04,0x04,0x03,0x42,0x22,0x11,0x0C,0x23,0x20,0x60,0x20,0x1F,0x00,0x00},/*"功",20*/
	/*--  文字:  等  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x90,0x88,0xA7,0xA2,0xA6,0xBA,0xA2,0xF8,0xA7,0xA2,0xA6,0xBA,0xA2,0x82,0x80,0x00},
	{0x00,0x04,0x04,0x04,0x04,0x0C,0x34,0x04,0x44,0x84,0x7F,0x04,0x04,0x04,0x00,0x00},/*"等",21*/
	/*--  文字:  待  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x20,0x10,0x08,0xC7,0x3A,0x50,0x44,0x44,0x44,0x7F,0x44,0xC4,0x44,0x44,0x40,0x00},
	{0x00,0x02,0x01,0xFF,0x00,0x02,0x02,0x1A,0x02,0x42,0x82,0x7F,0x02,0x02,0x02,0x00},/*"待",22*/
	/*--  文字:  数  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x10,0x92,0x54,0x38,0xFF,0x38,0x54,0x52,0x80,0xF0,0x1F,0x12,0x10,0xF0,0x10,0x00},
	{0x42,0x42,0x2A,0x2E,0x13,0x1A,0x26,0x02,0x40,0x20,0x13,0x0C,0x33,0x60,0x20,0x00},/*"数",23*/
	/*--  文字:  据  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x08,0x08,0x08,0xFF,0x88,0x40,0xFE,0x92,0x92,0x92,0xF2,0x92,0x92,0x9E,0x80,0x00},
	{0x02,0x42,0x81,0x7F,0x40,0x30,0x0F,0xFC,0x44,0x44,0x47,0x44,0x44,0xFC,0x00,0x00},/*"据",24*/
	/*--  文字:  传  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x20,0xF8,0x07,0x42,0x44,0x44,0x44,0xF4,0x4F,0x44,0x44,0x46,0x64,0x40,0x00},
	{0x00,0x00,0x7F,0x00,0x00,0x00,0x02,0x0B,0x12,0x22,0x52,0x0A,0x07,0x02,0x00,0x00},/*"传",25*/
	/*--  文字:  输  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x44,0xF4,0x4F,0xE4,0x44,0x64,0x90,0x98,0x94,0x93,0x14,0x98,0x08,0xD0,0x10,0x00},
	{0x04,0x04,0x04,0xFF,0x02,0x02,0xFF,0x4A,0x8A,0x7F,0x00,0x3F,0x80,0xFF,0x00,0x00},/*"输",26*/
	/*--  文字:  中  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0xFC,0x08,0x08,0x08,0x08,0xFF,0x08,0x08,0x08,0x08,0xFC,0x08,0x00,0x00},
	{0x00,0x00,0x07,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x02,0x02,0x07,0x00,0x00,0x00},/*"中",27*/
	/*--  文字:  设  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x41,0xCE,0x04,0x00,0x80,0x40,0xBE,0x82,0x82,0x82,0xBE,0xC0,0x40,0x40,0x00},
	{0x00,0x00,0x7F,0x20,0x90,0x80,0x40,0x43,0x2C,0x10,0x10,0x2C,0x43,0xC0,0x40,0x00},/*"设",28*/
	/*--  文字:  备  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x20,0x10,0x08,0x87,0x8A,0x52,0x22,0x22,0x52,0x8E,0x82,0x00,0x00,0x00,0x00},
	{0x02,0x02,0x01,0xFF,0x4A,0x4A,0x4A,0x7E,0x4A,0x4A,0x4A,0xFF,0x01,0x03,0x01,0x00},/*"备",29*/
	/*--  文字:  关  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x10,0x10,0x10,0x11,0x1E,0x14,0xF0,0x10,0x18,0x17,0x12,0x18,0x10,0x00,0x00},
	{0x01,0x81,0x41,0x21,0x11,0x09,0x05,0x03,0x05,0x09,0x31,0x61,0xC1,0x41,0x01,0x00},/*"关",30*/
	/*--  文字:  闭  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0xF9,0x02,0x46,0x40,0x42,0x42,0xFA,0x42,0x42,0x42,0x02,0xFE,0x00,0x00},
	{0x00,0x00,0xFF,0x00,0x04,0x04,0x12,0x21,0x1F,0x00,0x00,0x40,0x80,0x7F,0x00,0x00},/*"闲",31*/
	/*--  文字:  中  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0xFC,0x08,0x08,0x08,0x08,0xFF,0x08,0x08,0x08,0x08,0xFC,0x08,0x00,0x00},
	{0x00,0x00,0x07,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x02,0x02,0x07,0x00,0x00,0x00},/*"中",32*/
	/*--  文字:  电  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00},
	{0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00},/*"电",33*/
	/*--  文字:  量  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x40,0x40,0x40,0xDF,0x55,0x55,0x55,0xD5,0x55,0x55,0x55,0xDF,0x40,0x40,0x40,0x00},
	{0x40,0x40,0x40,0x57,0x55,0x55,0x55,0x7F,0x55,0x55,0x55,0x57,0x50,0x40,0x40,0x00},/*"量",34*/
	/*--  文字:  不  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x02,0x02,0x02,0x02,0x82,0x42,0xFE,0x06,0x42,0xC2,0x82,0x02,0x03,0x02,0x00},
	{0x00,0x08,0x04,0x02,0x01,0x00,0x00,0x7F,0x00,0x00,0x00,0x01,0x07,0x02,0x00,0x00},/*"不",35*/
	/*--  文字:  足  --*/
	/*--  宋体12;  此字体下对应的点阵为:宽x高=16x16   --*/
	{0x00,0x00,0x00,0x7E,0x22,0x22,0x22,0xE2,0x22,0x22,0x22,0x7E,0x00,0x00,0x00,0x00},
	{0x80,0x40,0x20,0x10,0x0F,0x10,0x20,0x3F,0x42,0x42,0x42,0x42,0x42,0x40,0x40,0x00},/*"足",36*/
};

#endif /* INC_CODELIB_H_ */

4、main.c

int main(void)
{
  /* USER CODE BEGIN 1 */

  /* USER CODE END 1 */

  /* MCU Configuration--------------------------------------------------------*/

  /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  HAL_Init();

  /* USER CODE BEGIN Init */

  /* USER CODE END Init */

  /* Configure the system clock */
  SystemClock_Config();

  /* USER CODE BEGIN SysInit */

  /* USER CODE END SysInit */

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  /* USER CODE BEGIN 2 */
  InitLCD();
  ClearScreen();
  /* USER CODE END 2 */

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */

    /* USER CODE BEGIN 3 */
	  DisplayStr(1,40,"welcome");
	  DisplayChinese(3,50,0);
	  DisplayChinese(3,66,1);
	  HAL_Delay(1000);
	  ClearScreen();
	  HAL_Delay(1000);
  }
  /* USER CODE END 3 */
}
  嵌入式 最新文章
基于高精度单片机开发红外测温仪方案
89C51单片机与DAC0832
基于51单片机宠物自动投料喂食器控制系统仿
《痞子衡嵌入式半月刊》 第 68 期
多思计组实验实验七 简单模型机实验
CSC7720
启明智显分享| ESP32学习笔记参考--PWM(脉冲
STM32初探
STM32 总结
【STM32】CubeMX例程四---定时器中断(附工
上一篇文章      下一篇文章      查看所有文章
加:2021-11-11 12:52:08  更:2021-11-11 12:54:37 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/26 9:32:45-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码