当前位置:   article > 正文

Proteus仿真:MSP430_professional能仿真msp430f5529吗

professional能仿真msp430f5529吗

一、环境

Proteus版本:
在这里插入图片描述
IAR版本:
在这里插入图片描述

二、OLED显示

1.Proteus仿真部分

全局概览:
在这里插入图片描述
局部:
在这里插入图片描述
在这里插入图片描述

2.代码部分

在这里插入图片描述

main.c

#include "msp430x24x.h"
#include "OLED_I2C_MONI.h"
#include "stdlib.h"
#define uint unsigned int
#define uchar unsigned char
/**************定义接口************************/
#define LCDIO     P1OUT
#define LCD1602_RS_1  P2OUT|=1  
#define LCD1602_RS_0  P2OUT&=~1 
#define LCD1602_RW_1  P2OUT|=2
#define LCD1602_RW_0  P2OUT&=~2 
#define LCD1602_EN_1   P2OUT|=4
#define LCD1602_EN_0   P2OUT&=~4
#define KEY1_I  (P3IN & BIT0)//按键1输入
#define KEY2_I  (P3IN & BIT1)//按键1输入
#define KEY3_I  (P3IN & BIT2)//按键1输入
#define KEY4_I  (P3IN & BIT3)//按键1输入
uchar Led1[]="0123456789"; //不带小数点编码
uint x;
uchar Disbuf[5],Disbuf1[5];
uchar set_yanwu=130;
uchar yanwu=0;
uchar set_SaO2 = 232;
/**************定义函数************************/
void delay();
void delay_nms(unsigned int n);//延时函数
/********************************************/
void delayms(uint t)
{
    uint i;
    while(t--)
      for(i=1330;i>0;i--);//进过参数的调整 
}

/***********************************************/
/********** 延时**********************/
void delay_nms(unsigned int n)      
{
       unsigned int i=0,j=0;
       for (i=n;i>0;i--)
       for (j=0;j<10;j++);  
}
/**************************************/

void delay(void)
{
  uint m;
  for(m=1000;m>0;m--);
}
void main() 
{
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;
  OLED_GPIOInit();
  OLED_Init();
  OLED_Clear();
  OLED_Bmp(1);//反白显示图片
  OLED_8_16_ASCII(2,27,4,"TEST",1);
  OLED_6_8_ASCII(4,2,13,"wieslav",1);
  OLED_4_8_Number(5,20,2,1);
  OLED_4_8_Number(5,25,0,1);
  OLED_4_8_Number(5,30,2,1);
  OLED_4_8_Number(5,35,2,1);
  OLED_4_8_Number(5,45,0,1);
  OLED_4_8_Number(5,50,4,1);
  OLED_4_8_Number(5,60,0,1);
  OLED_4_8_Number(5,65,5,1);

  P3SEL &= ~BIT0;//设置P1.0IO口为普通I/O模式
  P3DIR &= ~BIT0;//设置P1.0IO口方向为输入
  P3SEL &= ~BIT1;//设置P1.0IO口为普通I/O模式
  P3DIR &= ~BIT1;//设置P1.0IO口方向为输入
  P3SEL &= ~BIT2;//设置P1.0IO口为普通I/O模式
  P3DIR &= ~BIT2;//设置P1.0IO口方向为输入
  P3SEL &= ~BIT3;//设置P1.0IO口为普通I/O模式
  P3DIR &= ~BIT3;//设置P1.0IO口方向为输入
//  P4DIR |= BIT0+BIT1;
  OLED_Clear();
  while(1)
  {
    if(KEY1_I==0){set_yanwu++;delay_nms(5000);}
    if(KEY2_I==0){set_yanwu--;delay_nms(5000);}
    OLED_6_8_ASCII(2,2,3,"HR:",0);
    OLED_4_8_Number(3,20,(set_yanwu/1000)%10,0);
    OLED_4_8_Number(3,25,(set_yanwu/100)%10,0);
    OLED_4_8_Number(3,30,(set_yanwu/10)%10,0);
    OLED_4_8_Number(3,35,set_yanwu%10,0);
    OLED_6_8_ASCII(5,2,5,"SaO2:",0);
    OLED_4_8_Number(6,20,(set_SaO2/1000)%10,0);
    OLED_4_8_Number(6,25,(set_SaO2/100)%10,0);
    OLED_4_8_Number(6,30,(set_SaO2/10)%10,0);
    OLED_4_8_Number(6,35,set_SaO2%10,0);
  }
}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95

oled_i2c_moni.h

#ifndef __OLED_I2C_MONI_H__
#define __OLED_I2C_MONI_H__
//------------------------------------------------------------------------------
#include "msp430x24x.h"
//------------------------------------------------------------------------------
typedef unsigned char u8;
typedef unsigned int u16;
#define OLED_ADDRESS    0x78    //OLED 的 I2C 地址,按照实际修改
#define OLED_SDA_1 P4OUT|=BIT6
#define OLED_SDA_0 P4OUT&=~BIT6
#define OLED_SCL_1 P4OUT|=BIT7
#define OLED_SCL_0 P4OUT&=~BIT7
//------------------------------------------------------------------------------
extern const u8 Code_bmp[1024];
//------------------------------------------------------------------------------
#define OLED_Bmp(negation)     OLED_EasyBmp(0,0,8,128,Code_bmp,negation)
#define OLED_Clear()    OLED_RepetitionByte(0,0,8,128,0x00)
//------------------------------------------------------------------------------
void OLED_GPIOInit();/**********************************************************
函 数 名: OLED_GPIOInit
输入参数: 无
输出参数: 无
函数功能: 定义I2C管脚。
*******************************************************************************/
void OLED_Init();/**************************************************************
函 数 名: OLED_Init
输入参数: 无
输出参数: 无
函数功能: 对OLED模块进行初始化,具体参数在.c文件最后部分的InitCmd数组中查看。
*******************************************************************************/
void OLED_RepetitionByte(u8 page,u8 row,u8 page_amount,u8 row_amount,u8 byte);/*
函 数 名: OLED_RepetitionByte
输入参数: page 显示开始的页
           row 显示开始的列
           page_amount 使字节在页地址重复的数量
           row_amount 使字节在列地址重复的数量
           byte 重复的字节参数
输出参数: 无
函数功能: 在OLED模块上重复点亮字节,常用于画表。在OLED_Clear()定义中就是重复显
           示0x00,每页显示128次,重复显示8页。
*******************************************************************************/
void OLED_EasyBmp(u8 page,u8 row,u8 page_amount,u8 row_amount,const u8 *point,u8 negation);/*
函 数 名: OLED_EasyBmp
输入参数: page 显示开始的页
           row 显示开始的列
           page_amount 图片占页的数量
           row_amount 图片占列的数量
           *point 图片模地址
           negation 1~255取反显示       0正常显示
输出参数: 无
函数功能: 在OLED模块上显示“页格式”的图片。(页格式指高度为8的倍数)
           如:在OLED_Bmp() 的定义中就是在0页0列为基点显示8页128列的图片。
*******************************************************************************/
void OLED_4_8_Number(u8 page,u8 row,u8 number,u8 negation);/********************
函 数 名: OLED_4_8_Number
输入参数: page 显示开始的页
           row 显示开始的列
           number 要显示的数字
           negation 1~255取反显示       0正常显示
输出参数: 无
函数功能: 在OLED模块上显示一位4*8像素的数字,范围0~F(16进制)。
*******************************************************************************/
void OLED_6_8_ASCII(u8 page,u8 row,u8 amount,u8 *ascii,u8 negation);/***********
函 数 名: OLED_6_8_ASCII
输入参数: page 显示开始的页
           row 显示开始的列
           amount 要显示字符串长度
           negation 1~255取反显示       0正常显示
输出参数: 无
函数功能: 在OLED模块上显示6*8像素的字符串。
*******************************************************************************/
void OLED_8_16_Number(u8 page,u8 row,u8 number,u8 negation);/*******************
函 数 名: OLED_8_16_Number
输入参数: page 显示开始的页
           row 显示开始的列
           number 要显示的数字
           negation 1~255取反显示       0正常显示
输出参数: 无
函数功能: 在OLED模块上显示一位8*16像素的数字,范围0~9。
*******************************************************************************/
void OLED_8_16_ASCII(u8 page,u8 row,u8 amount,u8 *ascii,u8 negation);/**********
函 数 名: OLED_8_16_ASCII
输入参数: page 显示开始的页
           row 显示开始的列
           amount 要显示字符串长度
           negation 1~255取反显示       0正常显示
输出参数: 无
函数功能: 在OLED模块上显示8*16像素的字符串。
*******************************************************************************/
void OLED_SetContrastRatio(u8 value);/******************************************
函 数 名: OLED_SetContrastRatio
输入参数: value 0~0xff亮度递增
输出参数: 无
函数功能: 设置OLED的对比度。(可在今后的GUI开发中使用)
*******************************************************************************/
void OLED_SetNegation(u8 data);/******************************************
函 数 名: OLED_SetNegation
输入参数: data A6正常显示      A7反白显示
输出参数: 无
函数功能: 设置OLED的正常/反白显示。(可在今后的GUI开发中使用)
*******************************************************************************/
//------------------------------------------------------------------------------
#endif
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103

oled_i2c_moni.c

#include "OLED_I2C_MONI.h"

const u8 Code_8_16ASCII[1520],Code_6_8ASCII[570],Code_4_8number[64],Code_Bmp[1024];
const u8 InitCmd[31];
void OLED_GPIOInit()
{
  P4DIR |= BIT6+BIT7;
  P4OUT |= BIT6+BIT7;
}
void OLED_Byte(u8 byte)/********************************************************
函 数 名: OLED_Byte
输入参数: byte 要发送的数据
输出参数: 无
函数功能: 模拟发送I2C协议的一个字节(不算起始/结束位)。
*******************************************************************************/
{
  u8 i;
  for(i=9;i;i--)
  {
    OLED_SCL_0;
    if(byte&0x80)
      OLED_SDA_1;
    else
      OLED_SDA_0;
    OLED_SCL_1;
    byte <<= 1;
  }
}
void OLED_Data(u8 amount,const u8 *data,u8 negation)/***************************
函 数 名: OLED_Data
输入参数: amount 数据数量
           *data 数据起始地址
           negation 1~255数据取反发送   0数据正常发送
输出参数: 无
函数功能: 发送多位数据。
*******************************************************************************/
{
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_Byte(OLED_ADDRESS);
  OLED_Byte(0x40);
  if(negation)
    for(;amount;amount--)
      OLED_Byte(~*data++);
  else
    for(;amount;amount--)
      OLED_Byte(*data++);
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_SCL_1;
  OLED_SDA_1;
}
void OLED_AdrCmd(u8 page,u8 row_MSB,u8 row_LSB)/********************************
函 数 名: OLED_AdrCmd
输入参数: page 页地址
           row_MSB 列高地址
           row_LSB 列低地址
输出参数: 无
函数功能: 发送显示地址指令。
*******************************************************************************/
{
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_Byte(OLED_ADDRESS);
  OLED_Byte(0x00);
  OLED_Byte(page);
  OLED_Byte(row_MSB);
  OLED_Byte(row_LSB);
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_SCL_1;
  OLED_SDA_1;
}
void OLED_SetContrastRatio(u8 value)
{
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_Byte(OLED_ADDRESS);
  OLED_Byte(0x00);
  OLED_Byte(0x81);//设置对比度指令
  OLED_Byte(value);
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_SCL_1;
  OLED_SDA_1;
}
void OLED_SetNegation(u8 data)
{
  
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_Byte(OLED_ADDRESS);
  OLED_Byte(0x00);
  OLED_Byte(data);//A6正常显示      A7反白显示
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_SCL_1;
  OLED_SDA_1;
}
void OLED_Init()
{
  u8 i;
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_Byte(OLED_ADDRESS);
  OLED_Byte(0x00);
  for(i=0;i<31;i++)
    OLED_Byte(InitCmd[i]);
  OLED_SDA_0;
  OLED_SCL_0;
  OLED_SCL_1;
  OLED_SDA_1;
}
void OLED_RepetitionByte(u8 page,u8 row,u8 page_amount,u8 row_amount,u8 byte)
{
  u8 temp;
  for(;page_amount;page_amount--)
  {
    OLED_AdrCmd(0xb0+page++,(row>>4)|0x10,row&0x0f);
    OLED_SDA_0;
    OLED_SCL_0;
    OLED_Byte(OLED_ADDRESS);
    OLED_Byte(0x40);
    for(temp=row_amount;temp;temp--)
      OLED_Byte(byte);
    OLED_SDA_0;
    OLED_SCL_0;
    OLED_SCL_1;
    OLED_SDA_1;
  }
}
void OLED_EasyBmp(u8 page,u8 row,u8 page_amount,u8 row_amount,const u8 *point,u8 negation)
{
  for(;page_amount;page_amount--)
  {
    OLED_AdrCmd(0xb0+page++,(row>>4)|0x10,row&0x0f);
    OLED_Data(row_amount,point,negation);
    point+=row_amount;
  }
}
void OLED_4_8_Number(u8 page,u8 row,u8 number,u8 negation)
{
    OLED_EasyBmp(page,row,1,4,Code_4_8number+(number<<2),negation);
}
void OLED_6_8_ASCII(u8 page,u8 row,u8 amount,u8 *ascii,u8 negation)
{
  for(;amount;amount--)
  {
    OLED_EasyBmp(page,row,1,6,Code_6_8ASCII+((*ascii-0x20)*6),negation);
    ascii++;
    row+=6;
  }
}
void OLED_8_16_Number(u8 page,u8 row,u8 number,u8 negation)
{
    OLED_EasyBmp(page,row,2,8,Code_8_16ASCII+((number+0x10)<<4),negation);
}
void OLED_8_16_ASCII(u8 page,u8 row,u8 amount,u8 *ascii,u8 negation)
{
  for(;amount;amount--)
  {
    OLED_EasyBmp(page,row,2,8,Code_8_16ASCII+((*ascii-0x20)<<4),negation);
    ascii++;
    row+=8;
  }
}
const u8 Code_4_8number[]={
0x7C,0x82,0x82,0x7C,0x00,0x84,0xFE,0x80,0xC4,0xA2,0x92,0x8C,
0x44,0x92,0x92,0x6C,0x30,0xAC,0xFE,0xA0,0x4E,0x8A,0x8A,0x72,
0x7C,0x92,0x92,0x64,0x06,0xF2,0x0A,0x06,0x6C,0x92,0x92,0x6C,
0x4C,0x92,0x92,0x7C,0xFC,0x12,0x12,0xFC,0xFE,0x92,0x92,0x6C,
0x7C,0x82,0x82,0x44,0xFE,0x82,0x82,0x7C,0xFE,0x92,0x92,0x92,
0xFE,0x12,0x12,0x12};
const u8 Code_bmp[]={
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XC0,0XF8,0XFC,0XFE,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0X7F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFE,0XF8,0XE0,0X80,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X7F,0XFB,0XFF,0XFF,0XDF,0X3E,0X3F,0X3F,0X3F,0X5F,
0X7F,0XFF,0XFF,0X3F,0X33,0XE7,0XF7,0X1F,0X0F,0X1F,0X3F,0X3F,0XFF,0XFF,0XFF,0X3F,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XF8,0X00,0X00,0X04,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X30,0XFF,0XFF,0XFF,0X8B,0X00,0XC0,0XC0,
0XC0,0XC1,0X01,0X03,0X00,0X7F,0XFF,0X00,0X00,0X00,0XC0,0X70,0X77,0XF3,0XFC,0XFE,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0X7C,0XF8,0XE0,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0XC0,0X80,0X00,0XF0,0X7F,0X90,0X77,0X1F,0XFF,0XFF,0XFE,0XFC,0XF9,
0XF1,0XF0,0XF0,0XF8,0XF8,0XF8,0XFF,0XFF,0X7E,0X3F,0X0E,0X03,0X8F,0XDF,0XFF,0XFF,
0XFF,0X7F,0XBF,0XFF,0XFF,0XFF,0X7F,0XFF,0XFF,0XFF,0X30,0X1F,0X0F,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X0C,0XFC,0X2F,0X6E,0XDD,0X92,0X07,0X19,0X07,0X1B,0X06,0XF5,0XD7,0X15,0X8B,
0X17,0X0F,0X85,0X27,0XDA,0X07,0X07,0X3F,0X28,0X20,0X12,0X93,0X71,0X37,0X1F,0X19,
0X0A,0X17,0X0F,0X11,0X64,0X86,0X07,0X03,0X01,0X00,0X40,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0XFF,0X00,0X00,0X22,0XFD,0X00,0X00,0X00,0X00,0X20,0XCF,0XE0,0XF0,0XF8,
0XFC,0XFC,0XF3,0XF1,0XE0,0XE0,0XC0,0XC0,0XC0,0XF0,0X9E,0X81,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X03,0XFC,0X00,0X00,0X00,0X00,0X40,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X3F,0X80,0X00,0X00,0X00,0X0F,0X70,0X80,0X00,0X00,0X01,0X0F,0X3E,0XFF,
0XFF,0XC7,0XBF,0XDF,0XEF,0X7B,0XBE,0XFF,0XFB,0XFF,0XFB,0XFD,0XFB,0XBF,0XDE,0XFE,
0XFE,0XFE,0XFE,0XFE,0XFF,0XFF,0X7F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X03,0X0C,0X30,0X40,0X40,0X40,0X6F,0X3C,0X60,0X80,0X00,0X00,0X00,
0X01,0X07,0X0F,0X1F,0X3E,0X7F,0XFF,0XFF,0XFD,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0X3F,0X07,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00};
const u8 Code_8_16ASCII[]={
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*--  文字:  3  --*/
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*--  文字:  V  --*/
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00,

/*--  文字:  W  --*/
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00,

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

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

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

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

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

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

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

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

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

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

/*--  文字:  b  --*/
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*--  文字:  ~  --*/
/*--  宋体12;  此字体下对应的点阵为:宽x高=8x16   --*/
0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
const u8 Code_6_8ASCII[]={
0x00,0x00,0x00,0x00,0x00,0x00, // SP
0x00,0x00,0x4F,0x00,0x00,0x00, // !
0x00,0x07,0x00,0x07,0x00,0x00, // ”
0x14,0x7F,0x14,0x7F,0x14,0x00, // #
0x24,0x2A,0x7F,0x2A,0x12,0x00, // $
0x23,0x13,0x08,0x64,0x62,0x00, // %
0x36,0x49,0x55,0x22,0x50,0x00, // &
0x00,0x05,0x03,0x00,0x00,0x00, // ‘
0x00,0x1C,0x22,0x41,0x00,0x00, // (
0x00,0x41,0x22,0x1C,0x00,0x00, // )
0x14,0x08,0x3E,0x08,0x14,0x00, // *
0x08,0x08,0x3E,0x08,0x08,0x00, // +
0x00,0x50,0x30,0x00,0x00,0x00, // ,
0x08,0x08,0x08,0x08,0x08,0x00, // –
0x00,0x60,0x60,0x00,0x00,0x00, // .
0x20,0x10,0x08,0x04,0x02,0x00, // /

0x3E,0x51,0x49,0x45,0x3E,0x00, // 0
0x00,0x42,0x7F,0x40,0x00,0x00, // 1
0x42,0x61,0x51,0x49,0x46,0x00, // 2
0x21,0x41,0x45,0x4B,0x31,0x00, // 3
0x18,0x14,0x12,0x7F,0x10,0x00, // 4
0x27,0x45,0x45,0x45,0x39,0x00, // 5
0x3C,0x4A,0x49,0x49,0x30,0x00, // 6
0x01,0x71,0x09,0x05,0x03,0x00, // 7
0x36,0x49,0x49,0x49,0x36,0x00, // 8
0x06,0x49,0x49,0x29,0x1E,0x00, // 9

0x00,0x36,0x36,0x00,0x00,0x00, // :
0x00,0x56,0x36,0x00,0x00,0x00, // ;
0x08,0x14,0x22,0x41,0x00,0x00,// < 
0x14,0x14,0x14,0x14,0x14,0x00, // = 
0x41,0x22,0x14,0x08,0x00,0x00, // >
0x02,0x01,0x51,0x09,0x06,0x00, // ?

0x32,0x49,0x79,0x41,0x3E,0x00, //@
0x7E,0x11,0x11,0x11,0x7E,0x00, //A
0x7F,0x49,0x49,0x49,0x36,0x00, //B
0x3E,0x41,0x41,0x41,0x22,0x00, //C
0x7F,0x41,0x41,0x22,0x1C,0x00, //D
0x7F,0x49,0x49,0x49,0x41,0x00, //E
0x7F,0x09,0x09,0x09,0x01,0x00, //F
0x3E,0x41,0x49,0x49,0x7A,0x00, //G
0x7F,0x08,0x08,0x08,0x7F,0x00, //H
0x00,0x41,0x7F,0x41,0x00,0x00, //I
0x20,0x40,0x41,0x3F,0x01,0x00, //J
0x7F,0x08,0x14,0x22,0x41,0x00, //K
0x7F,0x40,0x40,0x40,0x40,0x00, //L
0x7F,0x02,0x0C,0x02,0x7F,0x00, //M
0x7F,0x04,0x08,0x10,0x7F,0x00, //N
0x3E,0x41,0x41,0x41,0x3E,0x00, //O

0x7F,0x09,0x09,0x09,0x06,0x00, //P
0x3E,0x41,0x51,0x21,0x5E,0x00, //Q
0x7F,0x09,0x19,0x29,0x46,0x00, //R
0x46,0x49,0x49,0x49,0x31,0x00, //S
0x01,0x01,0x7F,0x01,0x01,0x00, //T
0x3F,0x40,0x40,0x40,0x3F,0x00,//U
0x1F,0x20,0x40,0x20,0x1F,0x00, //V
0x3F,0x40,0x38,0x40,0x3F,0x00, //W
0x63,0x14,0x08,0x14,0x63,0x00, //X
0x03,0x04,0x78,0x04,0x03,0x00, //Y
0x61,0x51,0x49,0x45,0x43,0x00, //Z

0x00,0x7F,0x41,0x41,0x00,0x00, //[
0x02,0x04,0x08,0x10,0x20,0x00, /*\*/
0x00,0x41,0x41,0x7F,0x00,0x00, //]
0x04,0x02,0x01,0x02,0x04,0x00, //^
0x40,0x40,0x40,0x40,0x40,0x00, //_

0x00,0x01,0x02,0x04,0x00,0x00, //`
0x20,0x54,0x54,0x54,0x78,0x00, //a
0x7F,0x48,0x44,0x44,0x38,0x00, //b
0x38,0x44,0x44,0x44,0x20,0x00, //c
0x38,0x44,0x44,0x48,0x7F,0x00, //d
0x38,0x54,0x54,0x54,0x18,0x00, //e
0x08,0x7E,0x09,0x01,0x02,0x00, //f
0x08,0x54,0x54,0x54,0x3C,0x00,//g
0x7F,0x08,0x04,0x04,0x78,0x00, //h
0x00,0x48,0x7D,0x40,0x00,0x00, //i
0x20,0x40,0x44,0x3D,0x00,0x00, //j
0x7F,0x10,0x28,0x44,0x00,0x00, //k
0x00,0x41,0x7F,0x40,0x00,0x00, //l
0x7C,0x04,0x78,0x04,0x78,0x00, //m
0x7C,0x08,0x04,0x04,0x78,0x00, //n
0x38,0x44,0x44,0x44,0x38,0x00, //o

0x7C,0x14,0x14,0x14,0x08,0x00, //p
0x08,0x14,0x14,0x18,0x7C,0x00, //q
0x7C,0x08,0x04,0x04,0x08,0x00, //r
0x48,0x54,0x54,0x54,0x20,0x00,//s
0x04,0x3F,0x44,0x40,0x20,0x00, //t
0x3C,0x40,0x40,0x20,0x7C,0x00, //u
0x1C,0x20,0x40,0x20,0x1C,0x00, //v
0x3C,0x40,0x30,0x40,0x3C,0x00, //w
0x44,0x28,0x10,0x28,0x44,0x00, //x
0x0C,0x50,0x50,0x50,0x3C,0x00, //y
0x44,0x64,0x54,0x4C,0x44,0x00, //z

0x00,0x08,0x36,0x41,0x00,0x00, //{
0x00,0x00,0x7F,0x00,0x00,0x00, //|
0x00,0x41,0x36,0x08,0x00,0x00, //}
0x10,0x08,0x08,0x10,0x08,0x00  //~
};
const u8 InitCmd[]={
  0xAE,//AE关闭显示      AF开启显示
  0xA6,//A6正常显示      A7反白显示
  0xA4,//A4跟随RAM       A5点亮全部像素
  0x20,//开始设置寻址模式
  0x02,//x00水平寻址      x01垂直寻址    x02页寻址    x03无效
  0x81,//设置对比控制寄存器
  0xff,//对比度设置最高        0~0xff递增
  0x21,//设置列地址开始和结束
  0x00,//设置列开始
  0x7F,//设置列结束
  0x22,//设置页的开始结束
  0x00,//设置页的开始
  0x07,//设置页的结束
  0x40,//设置开始行
  0xA1,//写入顺序A0 0~127        A1 127~0//水平翻转
  0xA8,//多路复用率
  0x3F,
  0xC8,//C0正常显示      C8垂直翻转
  0xD3,//垂直行偏移量(0~64)
  0x00,
  0xDA,//设置端口硬件配置
  0x12,//0x12 0~128
  0xD5,//时钟分频系数
  0xF0,//
  0xD9,//预充电周期
  0x22,//
  0xDB,//设置电压
  0x20,//0x20 0.77*Vcc       0x30 0.83*Vcc
  0x8d,//DC-DC使能 电荷泵
  0x14,//
  0xAF //开显示
};
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/309417
推荐阅读
相关标签
  

闽ICP备14008679号