// YC3121_PT26\Source\bsp
/******************************************************************************
版权所有: 深圳市。。科技有限公司
文件名: bsp_lcd.c
作者: wangdy
创建日期: 2021/06/2
描述: lcd初始化
其它:
修改历史: //修改历史记录列表,每条修改记录应包含修改日期、修改者及修改内容简述
序号 修改时间 修改人 修改内容
参考样式
******************************************************************************/
/************************************头文件************************************/
#include "bsp_lcd.h"
#include <string.h>
#include "yc_gpio.h"
/*************************************变量*************************************/
/*************************************函数*************************************/
/*******************************************************************************
* 名称: LCD_IIC_Delay
* 描述: LCD初始化
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static void LCD_IIC_Delay(void)
{
// uint32_t i = 3;
// while(i--);
__asm__("nop");
}
/*******************************************************************************
* 名称: LCD_GPIO_Init
* 描述: LCD初始化
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static void LCD_GPIO_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.GPIO_Pin = PIN_LCD_RST;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(PORT_LCD_RST, &GPIO_InitStruct);
GPIO_Config(PORT_LCD_RST, PIN_LCD_RST, OUTPUT_HIGH);
GPIO_InitStruct.GPIO_Pin = PIN_LCD_SCL;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(PORT_LCD_SCL, &GPIO_InitStruct);
GPIO_Config(PORT_LCD_SCL, PIN_LCD_SCL, OUTPUT_HIGH);
GPIO_InitStruct.GPIO_Pin = PIN_LCD_SDA;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(PORT_LCD_SDA, &GPIO_InitStruct);
GPIO_Config(PORT_LCD_SDA, PIN_LCD_SDA, OUTPUT_HIGH);
}
/*******************************************************************************
* 名称: LCD_IIC_Start
* 描述: iic起始信号
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static void LCD_IIC_Start(void)
{
LCD_SDA_HIGH;
LCD_SCL_HIGH;
LCD_IIC_Delay();
LCD_SDA_LOW;
LCD_IIC_Delay();
LCD_SCL_LOW;
}
/*******************************************************************************
* 名称: LCD_IIC_Stop
* 描述: iic停止信号
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static void LCD_IIC_Stop(void)
{
LCD_SCL_LOW;
LCD_SDA_LOW;
LCD_IIC_Delay();
LCD_SCL_HIGH;
LCD_IIC_Delay();
LCD_SDA_HIGH;
}
/*******************************************************************************
* 名称: LCD_IIC_CheckAck
* 描述: iic等待应答
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static bool LCD_IIC_CheckAck(void)
{
uint32_t retry_times = 1024*64;
uint8_t ack_value = 0;
bool ack_result = false;
LCD_SDA_HIGH;
LCD_SCL_HIGH;
LCD_IIC_Delay();
//切换到输入状态
LCD_SDA_INPUT;
//检测ACK
while(retry_times--)
{
if(0 == LCD_SDA_GET)
{
ack_result = true;
break;
}
else
{
LCD_IIC_Delay();
}
}
LCD_IIC_Delay();
LCD_SCL_LOW;
//切换到输出状态
LCD_SDA_OUTPUT;
return ack_result;
}
/*******************************************************************************
* 名称: LCD_IIC_SendByte
* 描述: iic发送单字节
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static bool LCD_IIC_SendByte(uint8_t byte)
{
uint8_t i = 0;
for(i=0; i<8; i++)
{
LCD_SCL_LOW;
if((byte&0x80) == 0x80)
{
LCD_SDA_HIGH;
}
else
{
LCD_SDA_LOW;
}
LCD_SCL_HIGH;
LCD_IIC_Delay();
byte = byte<<1;
}
LCD_SCL_LOW;
LCD_IIC_CheckAck();
}
/*******************************************************************************
* 名称: LCD_Write_Command
* 描述: 写命令字
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
static void LCD_Write_Command(uint8_t byte)
{
//LCD写寄存器
//LCD_IIC_Start();
//LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x80);//--Control byte
LCD_IIC_SendByte(byte);//byte
//LCD_IIC_Stop();
}
/*******************************************************************************
* 名称: Set_Column_Address
* 描述: 写列地址
* 输入参数: 无
* 输出参数: 无
* 其它: Set column address 0~128
*******************************************************************************/
static void LCD_Set_ColumnAddress(uint8_t addr)
{
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x80);
LCD_IIC_SendByte((0x10 | (addr >> 4)));
LCD_IIC_SendByte(0x80);
LCD_IIC_SendByte((0x0f & addr));
LCD_IIC_Stop();
}
/*******************************************************************************
* 名称: Set_Column_Address
* 描述: 写页地址
* 输入参数: 无
* 输出参数: 无
* 其它: Set page address 0~4
*******************************************************************************/
static void LCD_Set_PageAddress(uint8_t addr)
{
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x80);
LCD_IIC_SendByte((0xb0 | addr));
LCD_IIC_Delay();
}
/*******************************************************************************
* 名称: LCD_Init_inbsp
* 描述: LCD初始化
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
void LCD_Init_inbsp(void)
{
LCD_GPIO_Init();
//LCD复位
/*
LCD_RST_LOW;
LCD_DELAY_MS(5);
LCD_RST_HIGH;
LCD_DELAY_MS(5);
*/
Lcd_Reset_12832();
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS); //写地址
LCD_Write_Command(0xae);//--turn off oled panel
LCD_Write_Command(0xa8);//--set multiplex ratio(1 to 64)
LCD_Write_Command(0x1f);//--1/32 duty
LCD_Write_Command(0xd3);//-set display offset
LCD_Write_Command(0x00);//-not offset
LCD_Write_Command(0x40);//--set start line address
LCD_Write_Command(0xa1);//--set segment re-map 128 to 1
LCD_Write_Command(0xC0);//--Set COM Output Scan Direction 64 to 1
LCD_Write_Command(0x81);//--set contrast control register
LCD_Write_Command(CONTRAST_LEVEL);
LCD_Write_Command(0xd5);//--set display clock divide ratio/oscillator frequency
LCD_Write_Command(0x80);//--set divide ratio
LCD_Write_Command(0xd9);//--set pre-charge period
LCD_Write_Command(0x22);
LCD_Write_Command(0xda);//--set COM pins
LCD_Write_Command(0x12);
LCD_Write_Command(0xdb);//--set vcomh
LCD_Write_Command(0x20);
LCD_Write_Command(0x8d);//--set vcomh
LCD_Write_Command(0x14);
LCD_Write_Command(0xa6);//--set normal display
LCD_Write_Command(0xa4);//Disable Entire Display On
LCD_Write_Command(0xaf);//--turn on oled panel
LCD_IIC_Stop();
//清屏
LCD_Clear();
}
void Lcd_Reset_12832(void)
{
LCD_RST_LOW;
LCD_DELAY_MS(5);
LCD_RST_HIGH;
LCD_DELAY_MS(5);
}
/*******************************************************************************
* 名称: LCD_DisplayPicture
* 描述: LCD显示图像数据
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_DisplayPicture(uint8_t* pic)
{
uint8_t i,j,num=0;
for(i=0; i<4; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(0x00);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<0x80; j++) //128
{
LCD_IIC_SendByte(pic[i*0x80+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_10x10
* 描述: LCD显示10*10图标
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_Display_Icon_10x10(uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=0; i<2; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<10; j++) //128
{
LCD_IIC_SendByte(icon[i*10+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_20x10
* 描述: LCD显示20*10图标
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_Display_Icon_20x10_II(uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=0; i<2; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<20; j++) //128
{
LCD_IIC_SendByte(icon[i*20+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_12x12
* 描述: LCD显示12*12图标
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_Display_Icon_12x12(uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<12; j++) //128
{
LCD_IIC_SendByte(icon[i*12+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_20x10
* 描述: LCD显示20*10图标
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_Display_Icon_20x10(bool revese,uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=0; i<2; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<20; j++) //128
{
if(revese)
{
LCD_IIC_SendByte(~icon[i*20+j]);
}
else
{
LCD_IIC_SendByte(icon[i*20+j]);
}
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_16x16
* 描述: LCD显示16*16图标
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
void LCD_Display_Icon_16x16(uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<16; j++) //128
{
LCD_IIC_SendByte(icon[(i-y)*16+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_128x8
* 描述: LCD显示128*8图标
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
void LCD_Display_Icon_128x8(uint8_t x,uint8_t y,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+1); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<128; j++) //128
{
LCD_IIC_SendByte(icon[(i-y)*128+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Icon_32x32
* 描述: LCD显示32*32图标
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
void LCD_Display_Icon_32x32(bool revese,uint8_t x,uint8_t* icon)
{
uint8_t i,j,n,sum=0;
for(i=0; i<4; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<32; j++) //128
{
if(revese)
{
LCD_IIC_SendByte(~icon[(i)*32+j]);
}
else
{
LCD_IIC_SendByte(icon[(i)*32+j]);
}
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Chinese_16x16
* 描述: LCD显示汉字
* 输入参数: 无
* 输出参数: 无
* 其它: 16*16 共32byte
*******************************************************************************/
void LCD_Display_Chinese_16x16(uint8_t x,uint8_t y,uint8_t* chinese)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<16; j++) //16*16
{
LCD_IIC_SendByte(chinese[(i-y)*16+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Ascii_16x16
* 描述: LCD显示ascii
* 输入参数: 无
* 输出参数: 无
* 其它: 8*16 共16byte
*******************************************************************************/
void LCD_Display_Ascii_16x16(uint8_t x,uint8_t y,uint8_t* ascii)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<8; j++) //16*16
{
LCD_IIC_SendByte(ascii[(i-y)*8+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Ascii_12x12
* 描述: LCD显示ascii
* 输入参数: 无
* 输出参数: 无
* 其它: 6*2 共12byte
*******************************************************************************/
void LCD_Display_Ascii_12x12(uint8_t x,uint8_t y,uint8_t* ascii)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<6; j++) //16*16
{
LCD_IIC_SendByte(ascii[(i-y)*6+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Display_Chinese_12x12
* 描述: LCD显示汉字
* 输入参数: 无
* 输出参数: 无
* 其它: 12*12 共32byte
*******************************************************************************/
void LCD_Display_Chinese_12x12(uint8_t x,uint8_t y,uint8_t* chinese)
{
uint8_t i,j,n,sum=0;
for(i=y; i<(y+2); i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(x);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<12; j++) //16*16
{
LCD_IIC_SendByte(chinese[(i-y)*12+j]);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_Clear
* 描述: LCD清屏
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_Clear(void)
{
uint8_t i,j,num=0;
for(i=0; i<4; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(0x00);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<0x80; j++) //128
{
LCD_IIC_SendByte(0x00);
}
LCD_IIC_Stop();
}
}
/*******************************************************************************
* 名称: LCD_ShowAll
* 描述: LCD全显
* 输入参数: 无
* 输出参数: 无
* 其它: 128*32bit = 128*4 byte
*******************************************************************************/
void LCD_ShowAll(void)
{
uint8_t i,j,num=0;
for(i=0; i<4; i++)
{
LCD_Set_PageAddress(i);
LCD_Set_ColumnAddress(0x00);
LCD_IIC_Start();
LCD_IIC_SendByte(LCD_WRITE_ADDRESS);
LCD_IIC_SendByte(0x40);
for(j=0; j<0x80; j++) //128
{
LCD_IIC_SendByte(0xFF);
}
LCD_IIC_Stop();
}
}
/******************************************************************************
版权所有: 深圳。。科技有限公司
文件名: bsp_lcd.h
作者: wangdy
创建日期: 2021/6/2
描述: LED灯控制
其它:
修改历史: //修改历史记录列表,每条修改记录应包含修改日期、修改者及修改内容简述
序号 修改时间 修改人 修改内容
参考样式
******************************************************************************/
/*********************************防止多次编译*********************************/
#ifndef _BSP_LCD_H
#define _BSP_LCD_H
/************************************头文件************************************/
#include <stdint.h>
#include <stdbool.h>
#include "yc_timer.h"
/************************************宏定义************************************/
//LCD控制
#define PIN_LCD_RST GPIO_Pin_3
#define PORT_LCD_RST GPIOA
//LCD控制
#define PIN_LCD_SCL GPIO_Pin_4
#define PORT_LCD_SCL GPIOA
//LCD控制
#define PIN_LCD_SDA GPIO_Pin_5
#define PORT_LCD_SDA GPIOA
//INPUT OUTPUT
#define LCD_SDA_INPUT GPIO_Config(PORT_LCD_SDA,PIN_LCD_SDA,INPUT)
#define LCD_SDA_OUTPUT GPIO_Config(PORT_LCD_SDA,PIN_LCD_SDA,OUTPUT_HIGH)
#define LCD_SDA_GET GPIO_ReadInputDataBit(PORT_LCD_SDA,PIN_LCD_SDA)
//LED io
#define LCD_RST_HIGH (GPIO_SetBits(PORT_LCD_RST, PIN_LCD_RST))
#define LCD_RST_LOW (GPIO_ResetBits(PORT_LCD_RST, PIN_LCD_RST))
#define LCD_SCL_HIGH (GPIO_SetBits(PORT_LCD_SCL, PIN_LCD_SCL))
#define LCD_SCL_LOW (GPIO_ResetBits(PORT_LCD_SCL, PIN_LCD_SCL))
#define LCD_SDA_HIGH (GPIO_SetBits(PORT_LCD_SDA, PIN_LCD_SDA))
#define LCD_SDA_LOW (GPIO_ResetBits(PORT_LCD_SDA, PIN_LCD_SDA))
#define LCD_DELAY_MS(value) delay_ms(value)
//------------------------
#define LCD_WRITE_ADDRESS 0x78 /*slave addresses with write*/
#define LCD_READ_ADDRESS 0x79 /*slave addresses with read*/
#define CONTRAST_LEVEL 0x87
/************************************结构体************************************/
/**********************************可导出变量**********************************/
/***********************************函数实现***********************************/
void Lcd_Reset_12832(void);
void LCD_Init_inbsp(void); //LCD初始化
void LCD_Clear(void); //LCD清屏
void LCD_ShowAll(void); //全显
void LCD_DisplayPicture(uint8_t* pic); //LCD显示图片 全屏
void LCD_Display_Icon_10x10(uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_12x12(uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_20x10(bool revese,uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_20x10_II(uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_16x16(uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_128x8(uint8_t x,uint8_t y,uint8_t* icon);
void LCD_Display_Icon_32x32(bool revese,uint8_t x,uint8_t* icon);
void LCD_Display_Chinese_16x16(uint8_t x,uint8_t y,uint8_t* chinese);
void LCD_Display_Ascii_16x16(uint8_t x,uint8_t y,uint8_t* ascii);
void LCD_Display_Ascii_12x12(uint8_t x,uint8_t y,uint8_t* ascii);
void LCD_Display_Chinese_12x12(uint8_t x,uint8_t y,uint8_t* chinese);
#endif
/******************************************************************************
版权所有: 深圳市。。科技有限公司
文件名: api_font_img.c
作者: wangdy
创建日期: 2021/06/2
描述: 字模信息
其它:
修改历史: //修改历史记录列表,每条修改记录应包含修改日期、修改者及修改内容简述
序号 修改时间 修改人 修改内容
???? ????/??/?? ?????? 参考样式
提示: 取模软件:PCTOLCD2002 点阵格式:阴码 取模方式:列行式
取模走向:逆向
******************************************************************************/
/************************************头文件************************************/
#include "api_font_img.h"
//#include "printerConfig.h"
#include "yc_systick.h"
/*************************************宏定义*************************************/
/*************************************变量*************************************/
const uint8_t puty[512]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,
0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xE0,0xE0,0xC0,0x00,0x00,0x00,0xF0,
0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,
0xF0,0xF0,0x00,0x00,0xC0,0xC0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xE0,0xE0,
0xC0,0xC0,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF0,0xF0,
0xE0,0xE0,0xC0,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,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x81,0xC1,0xFF,0xFF,0xFF,0xFF,0x7F,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0x0F,0x0F,0x0F,0x0F,0x01,0x00,0x00,0x00,0x81,0xC1,0xFF,0xFF,
0xFF,0x7F,0x7F,0x00,0xF0,0xFE,0xFF,0xFF,0xFF,0xEF,0xE3,0xF1,0xF1,0xF1,0xF1,0xF3,
0xE7,0xEF,0xCF,0x8F,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,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,0xFF,0xFF,0xFF,0xFF,0x07,
0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x03,0x03,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xF8,0xFC,0x7E,0x3F,0x1F,0x07,0x03,0x01,
0x00,0x00,0x00,0x00,0x3F,0xFF,0xFF,0xFF,0xFF,0xE7,0x81,0x01,0x00,0x00,0x01,0x83,
0xE7,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x0F,0x0F,0x0F,0x0F,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x0F,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0E,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,
0x0E,0x0E,0x0E,0x00,0x00,0x01,0x03,0x07,0x0F,0x0F,0x0F,0x0F,0x0E,0x0E,0x0F,0x0F,
0x0F,0x0F,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};/*"未命名文件",0*/
//---------------------------------图标-----------------------------------------
//USB图标 10*10
const uint8_t img_usb_icon[20] =
{
0x70,0x70,0x20,0x30,0x6C,0xAC,0xA0,0xA0,0x70,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00
};
//蓝牙图标 10*10
const uint8_t img_bt_icon_conn[20] =
{
0x00,0x84,0x48,0x30,0xFF,0x31,0x4A,0x84,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x02,0x01,0x00,0x00,0x00
};
//蓝牙图标 10*10
const uint8_t img_bt_icon_disconn[20] =
{
0x02,0x84,0x48,0x30,0xFF,0x31,0x4A,0x84,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x02,0x01,0x00,0x01,0x02
};
//蓝牙已连接 10*10
const uint8_t img_data_bt_conn[20] =
{
0x78,0x84,0x0A,0xFD,0x01,0x01,0xFD,0x42,0x84,0x78,
0x00,0x00,0x01,0x02,0x02,0x02,0x02,0x01,0x00,0x00
};
//蓝牙未连接 10*10
const uint8_t img_data_bt_disconn[20] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//无纸 10*10
const uint8_t img_data_no_paper[20] =
{
0x00,0xFF,0x01,0x49,0x31,0x31,0xC9,0x81,0xFF,0x00,
0x00,0x03,0x02,0x02,0x02,0x02,0x03,0x01,0x00,0x00
};
//有纸 10*10
const uint8_t img_data_have_paper[20] =
{
0x00,0xFF,0x01,0x01,0x01,0x01,0x81,0x81,0xFF,0x00,
0x00,0x03,0x02,0x02,0x02,0x02,0x03,0x01,0x00,0x00
};
//省略号图标显示 10*10
const uint8_t img_data_ellipsis[20] =
{
0x00,0x00,0x00,0x30,0x78,0x78,0x30,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//充电图标显示 10*10
const uint8_t img_data_charge[20] =
{
0x00,0x3C,0x47,0x84,0xB4,0xB4,0x84,0x47,0x3C,0x00,
0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00
};
//省略号1个点
const uint8_t img_ellipsis_one_[40] =
{
0x00,0x00,0x30,0x78,0x78,0x30,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//省略号2个点
const uint8_t img_ellipsis_two_[40] =
{
0x00,0x00,0x30,0x78,0x78,0x30,0x00,0x00,0x30,0x78,
0x78,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//省略号3个点
const uint8_t img_ellipsis_three_[40] =
{
0x00,0x00,0x30,0x78,0x78,0x30,0x00,0x00,0x30,0x78,
0x78,0x30,0x00,0x00,0x30,0x78,0x78,0x30,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//空白图标 null
const uint8_t img_data_null_10x10[20] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//没电池 20*10
const uint8_t no_img_battery[40] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
//电池没电 20*10
const uint8_t img_battery_no_power[40] =
{
0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x78,0x78,
0x03,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x00,0x00,
};
//电池1格 20*10
const uint8_t img_battery_1_power[40] =
{
0xFF,0x01,0xFD,0xFD,0xFD,0xFD,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x78,0x78,
0x03,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x00,0x00
};
//电池2格 20*10
const uint8_t img_battery_2_power[40] =
{
0xFF,0x01,0xFD,0xFD,0xFD,0xFD,0x01,0xFD,0xFD,0xFD,
0xFD,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,0x78,0x78,
0x03,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x00,0x00
};
//电池3格 20*10
const uint8_t img_battery_3_power[40] =
{
0xFF,0x01,0xFD,0xFD,0xFD,0xFD,0x01,0xFD,0xFD,0xFD,
0xFD,0x01,0xFD,0xFD,0xFD,0xFD,0x01,0xFF,0x78,0x78,
0x03,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x00,0x00
};
//关机充电 32*32
const uint8_t img_poweroff_charge[128] =
{
0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xFF,0xFF,0xFF,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0xC3,0xE3,0xB3,
0x9B,0x83,0x83,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0x00,0xFF,0xFF,0xFF,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC1,0xC1,0xD9,
0xCD,0xC7,0xC3,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x0F,0x0C,0x0C,0x0C,0x3C,
0x3C,0x0C,0x0C,0x0C,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
//三角形感叹号:
const uint8_t img_exclamation_mark[32] =
{
0x00,0x00,0x00,0x80,0xE0,0xF8,0x1C,0xF6,0xF6,0x1C,0x78,0xE0,0x80,0x00,0x00,0x00,
0x70,0x78,0x7E,0x67,0x61,0x60,0x60,0x7F,0x7D,0x60,0x60,0x61,0x67,0x6E,0x7C,0x70
};
//警告 16*16
const uint8_t img_warning_paper[32] =
{
0x00,0x00,0x00,0x00,0xC0,0xF0,0x3C,0xCF,0xCF,0x3C,0xF0,0xC0,0x00,0x00,0x00,0x00,
0xE0,0xF0,0xDC,0xCF,0xC3,0xC0,0xC0,0xD7,0xD7,0xC0,0xC0,0xC3,0xCF,0xDC,0xF0,0xE0
};
//警告 没电 16*16
const uint8_t img_warning_no_electric[32] =
{
0x00,0x00,0xFC,0xFC,0xFC,0xFC,0xFF,0x0F,0x0F,0xFF,0xFC,0xFC,0xFC,0xFC,0x00,0x00,
0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xE8,0xE8,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00
};
//过温 16*16
const uint8_t img_overtemp[32] =
{
0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x02,0x02,0xFE,0x00,0x24,0x24,0x24,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x78,0x8F,0x84,0x84,0x8F,0x78,0x01,0x01,0x01,0x00,0x00
};
//升级 进度 128*8
const uint8_t img_update_progress_0_Persent[128] =
{
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_10_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_20_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_30_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_40_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_50_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_60_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_70_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_80_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_90_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
const uint8_t img_update_progress_100_Persent[128] =
{
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,
0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C
};
//16*8 adcii
const FontAscii_16X16_TypeDef FontAscii_16X16[] =
{
//0~9
{'0',{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00}},
{'1',{0x00,0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00}},
{'2',{0x00,0x70,0x08,0x08,0x08,0x08,0xF0,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00}},
{'3',{0x00,0x30,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x18,0x20,0x21,0x21,0x22,0x1C,0x00}},
{'4',{0x00,0x00,0x80,0x40,0x30,0xF8,0x00,0x00,0x00,0x06,0x05,0x24,0x24,0x3F,0x24,0x24}},
{'5',{0x00,0xF8,0x88,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x20,0x20,0x20,0x11,0x0E,0x00}},
{'6',{0x00,0xE0,0x10,0x88,0x88,0x90,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x20,0x1F,0x00}},
{'7',{0x00,0x18,0x08,0x08,0x88,0x68,0x18,0x00,0x00,0x00,0x00,0x3E,0x01,0x00,0x00,0x00}},
{'8',{0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00}},
{'9',{0x00,0xF0,0x08,0x08,0x08,0x10,0xE0,0x00,0x00,0x01,0x12,0x22,0x22,0x11,0x0F,0x00}},
//a~f
{'a',{0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x19,0x24,0x24,0x12,0x3F,0x20,0x00}},
{'b',{0x10,0xF0,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00}},
{'c',{0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00}},
{'d',{0x00,0x00,0x80,0x80,0x80,0x90,0xF0,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20}},
{'e',{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x24,0x24,0x24,0x24,0x17,0x00}},
{'f',{0x00,0x80,0x80,0xE0,0x90,0x90,0x20,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00}},
{'g',{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00}},
{'h',{0x10,0xF0,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20}},
{'i',{0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00}},
{'j',{0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00}},
{'k',{0x10,0xF0,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x06,0x29,0x30,0x20,0x00}},
{'l',{0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00}},
{'m',{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F}},
{'n',{0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20}},
{'o',{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00}},
{'p',{0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0x91,0x20,0x20,0x11,0x0E,0x00}},
{'q',{0x00,0x00,0x00,0x80,0x80,0x00,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0x91,0xFF,0x80}},
{'r',{0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00}},
{'s',{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00}},
{'t',{0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x10,0x00}},
{'u',{0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20}},
{'v',{0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x03,0x0C,0x30,0x0C,0x03,0x00,0x00}},
{'w',{0x80,0x80,0x00,0x80,0x80,0x00,0x80,0x80,0x01,0x0E,0x30,0x0C,0x07,0x38,0x06,0x01}},
{'x',{0x00,0x80,0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x20,0x31,0x0E,0x2E,0x31,0x20,0x00}},
{'y',{0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x81,0x86,0x78,0x18,0x06,0x01,0x00}},
{'z',{0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00}},
//A~Z
{'A',{0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20}},
{'B',{0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00}},
{'C',{0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00}},
{'D',{0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00}},
{'E',{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00}},
{'F',{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00}},
{'G',{0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00}},
{'H',{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20}},
{'I',{0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00}},
{'J',{0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00}},
{'K',{0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00}},
{'L',{0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00}},
{'M',{0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x01,0x3E,0x01,0x3F,0x20,0x00}},
{'N',{0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00}},
{'O',{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00}},
{'P',{0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00}},
{'Q',{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x28,0x28,0x30,0x50,0x4F,0x00}},
{'R',{0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20}},
{'S',{0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00}},
{'T',{0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00}},
{'U',{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00}},
{'V',{0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00}},
{'W',{0x08,0xF8,0x00,0xF8,0x00,0xF8,0x08,0x00,0x00,0x03,0x3E,0x01,0x3E,0x03,0x00,0x00}},
{'X',{0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20}},
{'Y',{0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00}},
{'Z',{0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00}},
//特殊符号
{'_',{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80}},
{'%',{0xF0,0x08,0xF0,0x80,0x60,0x18,0x00,0x00,0x00,0x31,0x0C,0x03,0x1E,0x21,0x1E,0x00}},
{' ',{0x00,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,0x30,0x00,0x00,0x00,0x00,0x00}},
};
//16*16 汉字
const FontChinese_16X16_TypeDef FontChinese_16X16[] =
{
{" ",{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
{"。",{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x18,0x24,0x24,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
{"地",{ 0x20,0x20,0x20,0xFF,0x20,0x20,0x80,0xF8,0x80,0x40,0xFF,0x20,0x10,0xF0,0x00,0x00,
0x10,0x30,0x10,0x0F,0x08,0x08,0x00,0x3F,0x40,0x40,0x5F,0x42,0x44,0x43,0x78,0x00}},
{"址",{0x20,0x20,0x20,0xFF,0x20,0x20,0x00,0xF8,0x00,0x00,0xFF,0x40,0x40,0x40,0x00,0x00,
0x10,0x30,0x10,0x0F,0x08,0x48,0x40,0x7F,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x00}},
{"固",{ 0x00,0xFE,0x02,0x12,0x92,0x92,0x92,0xFE,0x92,0x92,0x92,0x12,0x02,0xFE,0x00,0x00,
0x00,0xFF,0x40,0x40,0x5F,0x48,0x48,0x48,0x48,0x48,0x5F,0x40,0x40,0xFF,0x00,0x00}},
{"件",{0x00,0x80,0x60,0xF8,0x07,0x80,0x60,0x1C,0x10,0x10,0xFF,0x10,0x10,0x10,0x00,0x00,
0x01,0x00,0x00,0xFF,0x00,0x02,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x02,0x02,0x00}},
{"升",{0x80,0x80,0x84,0x84,0x84,0xFE,0x82,0x83,0x82,0x80,0xFF,0x80,0x80,0x80,0x80,0x00,
0x00,0x80,0x40,0x20,0x18,0x07,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00}},
{"级",{0x20,0x30,0xAC,0x63,0x30,0x00,0x02,0x02,0xFE,0x02,0x02,0x62,0x5A,0xC6,0x00,0x00,
0x22,0x67,0x22,0x12,0x12,0x40,0x30,0x8F,0x80,0x43,0x2C,0x10,0x2C,0x43,0x80,0x00}},
{"中",{0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0xF0,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x0F,0x00,0x00,0x00}},
{"电",{0x00,0x00,0xF8,0x88,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,
0x00,0x00,0x1F,0x08,0x08,0x08,0x08,0x7F,0x88,0x88,0x88,0x88,0x9F,0x80,0xF0,0x00}},
{"量",{0x20,0x20,0x20,0xBE,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xBE,0x20,0x20,0x20,0x00,
0x00,0x80,0x80,0xAF,0xAA,0xAA,0xAA,0xFF,0xAA,0xAA,0xAA,0xAF,0x80,0x80,0x00,0x00}},
{"过",{0x40,0x40,0x42,0xCC,0x00,0x08,0x48,0x88,0x08,0x08,0x08,0xFF,0x08,0x08,0x08,0x00,
0x00,0x40,0x20,0x1F,0x20,0x40,0x40,0x41,0x40,0x48,0x50,0x4F,0x40,0x40,0x40,0x00}},
{"低",{0x00,0x80,0x60,0xF8,0x07,0x00,0xFC,0x84,0x84,0x84,0xFE,0x82,0x83,0x82,0x80,0x00,
0x01,0x00,0x00,0xFF,0x00,0x00,0xFF,0x40,0x20,0x00,0x41,0x8E,0x30,0x40,0xF8,0x00}},
{"语",{0x40,0x42,0xCC,0x00,0x00,0x82,0x92,0x92,0xF2,0x9E,0x92,0x92,0xF2,0x82,0x80,0x00,
0x00,0x00,0x7F,0x20,0x10,0x00,0xFC,0x44,0x44,0x44,0x44,0x44,0xFC,0x00,0x00,0x00}},
{"言",{0x04,0x04,0x24,0x24,0x24,0x24,0x25,0x26,0x24,0x24,0x24,0x24,0x24,0x04,0x04,0x00,
0x00,0x00,0xF9,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0xF9,0x00,0x00,0x00}},
{"打",{0x10,0x10,0x10,0xFF,0x10,0x90,0x04,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x04,0x00,
0x04,0x44,0x82,0x7F,0x01,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00}},
{"打",{0x10,0x10,0x10,0xFF,0x10,0x90,0x04,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x04,0x00,
0x04,0x44,0x82,0x7F,0x01,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00}},
{"打",{0x10,0x10,0x10,0xFF,0x10,0x90,0x04,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x04,0x00,
0x04,0x44,0x82,0x7F,0x01,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00}},
{"打",{0x10,0x10,0x10,0xFF,0x10,0x90,0x04,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x04,0x00,
0x04,0x44,0x82,0x7F,0x01,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00}},
{"印",{0x00,0xFC,0x44,0x44,0x44,0x42,0x42,0x00,0xFC,0x04,0x04,0x04,0x04,0xFC,0x00,0x00,
0x00,0x1F,0x10,0x10,0x08,0x08,0x08,0x00,0xFF,0x00,0x08,0x10,0x08,0x07,0x00,0x00}},
{"中",{0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0xF0,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x0F,0x00,0x00,0x00}},
{"自",{0x00,0x00,0x00,0xF8,0x88,0x8C,0x8A,0x89,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0xFF,0x00,0x00,0x00,0x00}},
{"检",{0x10,0x10,0xD0,0xFF,0x90,0x50,0x20,0x50,0x4C,0x43,0x4C,0x50,0x20,0x40,0x40,0x00,
0x04,0x03,0x00,0xFF,0x00,0x41,0x44,0x58,0x41,0x4E,0x60,0x58,0x47,0x40,0x40,0x00,}},
{"动",{0x40,0x44,0xC4,0x44,0x44,0x44,0x40,0x10,0x10,0xFF,0x10,0x10,0x10,0xF0,0x00,0x00,
0x10,0x3C,0x13,0x10,0x14,0xB8,0x40,0x30,0x0E,0x01,0x40,0x80,0x40,0x3F,0x00,0x00}},
{"关",{0x00,0x00,0x10,0x11,0x16,0x10,0x10,0xF0,0x10,0x10,0x14,0x13,0x10,0x00,0x00,0x00,
0x81,0x81,0x41,0x41,0x21,0x11,0x0D,0x03,0x0D,0x11,0x21,0x41,0x41,0x81,0x81,0x00}},
{"机",{0x10,0x10,0xD0,0xFF,0x90,0x10,0x00,0xFE,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,
0x04,0x03,0x00,0xFF,0x00,0x83,0x60,0x1F,0x00,0x00,0x00,0x3F,0x40,0x40,0x78,0x00}},
{"模",{0x10,0x10,0xD0,0xFF,0x90,0x14,0xE4,0xAF,0xA4,0xA4,0xA4,0xAF,0xE4,0x04,0x00,0x00,
0x04,0x03,0x00,0xFF,0x00,0x89,0x4B,0x2A,0x1A,0x0E,0x1A,0x2A,0x4B,0x88,0x80,0x00}},
{"式",{0x10,0x10,0x90,0x90,0x90,0x90,0x90,0x10,0x10,0xFF,0x10,0x10,0x11,0x16,0x10,0x00,
0x00,0x20,0x60,0x20,0x3F,0x10,0x10,0x10,0x00,0x03,0x0C,0x10,0x20,0x40,0xF8,0x00}},
{"恢",{0x00,0xE0,0x00,0xFF,0x10,0x20,0x08,0x88,0x78,0x0F,0x08,0xE8,0x08,0x08,0x88,0x00,
0x01,0x00,0x00,0xFF,0x00,0x10,0x0C,0x83,0x44,0x23,0x18,0x07,0x18,0x62,0x81,0x00}},
{"复",{0x20,0x10,0x08,0xF7,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0xF4,0x04,0x04,0x00,0x00,
0x80,0x90,0x90,0x49,0x4D,0x57,0x25,0x25,0x25,0x55,0x4D,0x45,0x80,0x80,0x80,0x00}},
{"出",{0x00,0x00,0x7C,0x40,0x40,0x40,0x40,0xFF,0x40,0x40,0x40,0x40,0xFC,0x00,0x00,0x00,
0x00,0x7C,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0xFC,0x00,0x00}},
{"厂",{0x00,0x00,0xFE,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x00,
0x80,0x60,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
{"设",{0x40,0x40,0x42,0xCC,0x00,0x40,0xA0,0x9E,0x82,0x82,0x82,0x9E,0xA0,0x20,0x20,0x00,
0x00,0x00,0x00,0x3F,0x90,0x88,0x40,0x43,0x2C,0x10,0x28,0x46,0x41,0x80,0x80,0x00}},
{"置",{0x00,0x17,0x15,0xD5,0x55,0x57,0x55,0x7D,0x55,0x57,0x55,0xD5,0x15,0x17,0x00,0x00,
0x40,0x40,0x40,0x7F,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x7F,0x40,0x40,0x40,0x00}},
{"上",{0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00}},
{"盖",{0x00,0x04,0x24,0x24,0x25,0x26,0x24,0xFC,0x24,0x26,0x25,0x24,0x24,0x04,0x00,0x00,
0x81,0x81,0xF9,0x89,0x89,0xF9,0x89,0x89,0x89,0xF9,0x89,0x89,0xF9,0x81,0x81,0x00}},
{"已",{0x00,0x00,0xE2,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x78,0x00,0x00}},
{"开",{0x80,0x82,0x82,0x82,0xFE,0x82,0x82,0x82,0x82,0x82,0xFE,0x82,0x82,0x82,0x80,0x00,
0x00,0x80,0x40,0x30,0x0F,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00}},
{"数",{0x90,0x52,0x34,0x10,0xFF,0x10,0x34,0x52,0x80,0x70,0x8F,0x08,0x08,0xF8,0x08,0x00,
0x82,0x9A,0x56,0x63,0x22,0x52,0x8E,0x00,0x80,0x40,0x33,0x0C,0x33,0x40,0x80,0x00}},
{"据",{0x10,0x10,0xFF,0x10,0x90,0x00,0xFE,0x92,0x92,0x92,0xF2,0x92,0x92,0x9E,0x80,0x00,
0x42,0x82,0x7F,0x01,0x80,0x60,0x1F,0x00,0xFC,0x44,0x47,0x44,0x44,0xFC,0x00,0x00}},
{"传",{0x00,0x80,0x60,0xF8,0x07,0x40,0x48,0x48,0xE8,0x5F,0x48,0x48,0x48,0x40,0x40,0x00,
0x01,0x00,0x00,0xFF,0x00,0x00,0x02,0x0B,0x12,0x22,0xD2,0x0A,0x06,0x00,0x00,0x00}},
{"输",{0x88,0x68,0x1F,0xC8,0x08,0x10,0xC8,0x54,0x52,0xD1,0x12,0x94,0x08,0xD0,0x10,0x00,
0x09,0x19,0x09,0xFF,0x05,0x00,0xFF,0x12,0x92,0xFF,0x00,0x5F,0x80,0x7F,0x00,0x00}},
{"未",{0x80,0x80,0x88,0x88,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x88,0x88,0x80,0x80,0x00,
0x20,0x20,0x10,0x08,0x04,0x02,0x01,0xFF,0x01,0x02,0x04,0x08,0x10,0x20,0x20,0x00}},
{"测",{0x10,0x60,0x02,0x8C,0x00,0xFE,0x02,0xF2,0x02,0xFE,0x00,0xF8,0x00,0xFF,0x00,0x00,
0x04,0x04,0x7E,0x01,0x80,0x47,0x30,0x0F,0x10,0x27,0x00,0x47,0x80,0x7F,0x00,0x00}},
{"到",{0x42,0x62,0x52,0x4A,0xC6,0x42,0x52,0x62,0xC2,0x00,0xF8,0x00,0x00,0xFF,0x00,0x00,
0x40,0xC4,0x44,0x44,0x7F,0x24,0x24,0x24,0x20,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00}},
{"纸",{0x20,0x30,0xAC,0x63,0x30,0x00,0xFC,0x84,0x84,0x84,0xFE,0x82,0x83,0x82,0x80,0x00,
0x22,0x67,0x22,0x12,0x12,0x00,0xFF,0x40,0x20,0x00,0x01,0x0E,0x30,0x40,0xF8,0x00}},
{"张",{0x02,0xE2,0x22,0x22,0x3E,0x80,0x80,0xFF,0x80,0xA0,0x90,0x88,0x86,0x80,0x80,0x00,
0x00,0x43,0x82,0x42,0x3E,0x00,0x00,0xFF,0x40,0x21,0x06,0x08,0x10,0x20,0x40,0x00}},
{"耗",{0x88,0xA8,0xA8,0xFF,0xA8,0xA8,0x88,0x00,0x44,0x44,0xFC,0x22,0x23,0x22,0x00,0x00,
0x20,0x18,0x06,0xFF,0x02,0x0C,0x00,0x04,0x04,0x04,0x7F,0x82,0x82,0x82,0xF2,0x00}},
{"材",{0x10,0x10,0x10,0xD0,0xFF,0x90,0x10,0x00,0x10,0x10,0x10,0xD0,0xFF,0x10,0x10,0x00,
0x08,0x04,0x03,0x00,0xFF,0x00,0x03,0x00,0x08,0x04,0x43,0x80,0x7F,0x00,0x00,0x00}},
{"头",{0x00,0x00,0x10,0x60,0x04,0x18,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x81,0x81,0x41,0x41,0x21,0x11,0x09,0x07,0x01,0x05,0x09,0x11,0x21,0xC1,0x01,0x00}},
{"热",{0x08,0x08,0x88,0xFF,0x48,0x48,0x00,0x08,0x48,0xFF,0x08,0x08,0xF8,0x00,0x00,0x00,
0x81,0x65,0x08,0x07,0x20,0xC0,0x08,0x04,0x23,0xC0,0x03,0x00,0x23,0xC4,0x0F,0x00}},
{"类",{0x00,0x10,0x10,0x92,0x54,0x30,0x10,0xFF,0x10,0x30,0x54,0x92,0x10,0x10,0x00,0x00,
0x84,0x85,0x45,0x44,0x24,0x14,0x0C,0x06,0x0C,0x14,0x24,0x44,0x45,0x84,0x84,0x00}},
{"型",{0x20,0x22,0xA2,0x7E,0x22,0x22,0xFE,0x22,0x22,0x00,0x7C,0x00,0x00,0xFF,0x00,0x00,
0x44,0x42,0x49,0x48,0x48,0x48,0x49,0x7E,0x48,0x48,0x48,0x49,0x4A,0x41,0x40,0x00}},
{"定",{0x10,0x0C,0x44,0x44,0x44,0x44,0x45,0xC6,0x44,0x44,0x44,0x44,0x44,0x14,0x0C,0x00,
0x80,0x40,0x20,0x1E,0x20,0x40,0x40,0x7F,0x44,0x44,0x44,0x44,0x44,0x40,0x40,0x00}},
{"标",{0x10,0x10,0xD0,0xFF,0x90,0x10,0x20,0x22,0x22,0x22,0xE2,0x22,0x22,0x22,0x20,0x00,
0x04,0x03,0x00,0xFF,0x00,0x13,0x0C,0x03,0x40,0x80,0x7F,0x00,0x01,0x06,0x18,0x00}},
{"成",{0x00,0x00,0xF8,0x88,0x88,0x88,0x88,0x08,0x08,0xFF,0x08,0x09,0x0A,0xC8,0x08,0x00,
0x80,0x60,0x1F,0x00,0x10,0x20,0x1F,0x80,0x40,0x21,0x16,0x18,0x26,0x41,0xF8,0x00}},
{"功",{0x08,0x08,0x08,0xF8,0x08,0x08,0x08,0x10,0x10,0xFF,0x10,0x10,0x10,0xF0,0x00,0x00,
0x10,0x30,0x10,0x1F,0x08,0x88,0x48,0x30,0x0E,0x01,0x40,0x80,0x40,0x3F,0x00,0x00}},
{"失",{0x00,0x40,0x30,0x1E,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,
0x81,0x81,0x41,0x21,0x11,0x0D,0x03,0x01,0x03,0x0D,0x11,0x21,0x41,0x81,0x81,0x00}},
{"败",{0x00,0xFE,0x02,0xFA,0x02,0xFE,0x40,0x20,0xD8,0x17,0x10,0x10,0xF0,0x10,0x10,0x00,
0x80,0x47,0x30,0x0F,0x10,0x67,0x80,0x40,0x21,0x16,0x08,0x16,0x21,0x40,0x80,0x00}},
{"版",{0x00,0xFE,0x20,0x20,0x3F,0x20,0x00,0xFC,0x24,0xE4,0x24,0x22,0x23,0xE2,0x00,0x00,
0x80,0x7F,0x01,0x01,0xFF,0x80,0x60,0x1F,0x80,0x41,0x26,0x18,0x26,0x41,0x80,0x00}},
{"本",{0x00,0x10,0x10,0x10,0x10,0xD0,0x30,0xFF,0x30,0xD0,0x10,0x10,0x10,0x10,0x00,0x00,
0x10,0x08,0x04,0x02,0x09,0x08,0x08,0xFF,0x08,0x08,0x09,0x02,0x04,0x08,0x10,0x00}},
{"速",{0x40,0x40,0x42,0xCC,0x00,0x04,0xF4,0x94,0x94,0xFF,0x94,0x94,0xF4,0x04,0x00,0x00,
0x00,0x40,0x20,0x1F,0x20,0x48,0x44,0x42,0x41,0x5F,0x41,0x42,0x44,0x48,0x40,0x00}},
{"度",{0x00,0x00,0xFC,0x24,0x24,0x24,0xFC,0x25,0x26,0x24,0xFC,0x24,0x24,0x24,0x04,0x00,
0x40,0x30,0x8F,0x80,0x84,0x4C,0x55,0x25,0x25,0x25,0x55,0x4C,0x80,0x80,0x80,0x00}},
{"浓",{ 0x10,0x60,0x02,0x8C,0x20,0x18,0x08,0xC8,0x38,0xCF,0x08,0x08,0x28,0x98,0x00,0x00,
0x04,0x04,0x7E,0x01,0x04,0x02,0x01,0xFF,0x40,0x21,0x06,0x0A,0x11,0x20,0x40,0x00}},
{"淡",{ 0x10,0x60,0x02,0x8C,0x00,0x48,0x46,0x20,0x10,0x8F,0x10,0x20,0x48,0x86,0x00,0x00,
0x04,0x04,0x7E,0x01,0x80,0x88,0x46,0x20,0x10,0x0F,0x10,0x28,0x46,0x80,0x80,0x00}},
{"最",{ 0x40,0x40,0xC0,0x5F,0x55,0x55,0xD5,0x55,0x55,0x55,0x55,0x5F,0x40,0x40,0x40,0x00,
0x20,0x60,0x3F,0x25,0x15,0x15,0xFF,0x90,0x47,0x29,0x11,0x2D,0x43,0x80,0x80,0x00}},
{"较",{ 0xC8,0xB8,0x8F,0xE8,0x88,0x88,0x80,0x48,0x28,0x09,0x0E,0x08,0x28,0x48,0x88,0x00,
0x08,0x18,0x08,0xFF,0x04,0x04,0x80,0x80,0x43,0x2C,0x10,0x2C,0x43,0x80,0x80,0x00}},
{"快",{ 0x00,0xE0,0x00,0xFF,0x10,0x20,0x08,0x08,0x08,0xFF,0x08,0x08,0xF8,0x00,0x00,0x00,
0x01,0x00,0x00,0xFF,0x00,0x81,0x41,0x31,0x0D,0x03,0x0D,0x31,0x41,0x81,0x81,0x00}},
{"慢",{ 0xF0,0x00,0xFF,0x08,0x10,0xC0,0x5F,0x55,0xD5,0x55,0xD5,0x55,0x5F,0xC0,0x00,0x00,
0x00,0x00,0xFF,0x00,0x80,0x83,0x4A,0x5A,0x2B,0x2A,0x2B,0x5A,0x4A,0x83,0x80,0x00}},
{"正",{ 0x00,0x02,0x02,0xC2,0x02,0x02,0x02,0xFE,0x82,0x82,0x82,0x82,0x82,0x02,0x00,0x00,
0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00}},
{"常",{0x20,0x18,0x08,0xEA,0xAC,0xA8,0xA8,0xAF,0xA8,0xA8,0xAC,0xEA,0x08,0x28,0x18,0x00,
0x00,0x00,0x3E,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x12,0x22,0x1E,0x00,0x00,0x00}},
{"序",{0x00,0x00,0xFC,0x04,0x04,0x04,0x14,0x15,0x56,0x94,0x54,0x34,0x14,0x04,0x04,0x00,
0x40,0x30,0x0F,0x00,0x01,0x01,0x01,0x41,0x81,0x7F,0x01,0x01,0x01,0x05,0x03,0x00}},
{"列",{0x00,0x02,0xC2,0x32,0x1E,0x12,0x12,0xF2,0x02,0x00,0xF8,0x00,0x00,0xFF,0x00,0x00,
0x02,0x81,0x40,0x21,0x12,0x0C,0x03,0x00,0x00,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00}},
{"号",{0x80,0x80,0x80,0xBE,0xA2,0xA2,0xA2,0xA2,0xA2,0xA2,0xA2,0xBE,0x80,0x80,0x80,0x00,
0x00,0x00,0x00,0x06,0x05,0x04,0x04,0x04,0x44,0x84,0x44,0x3C,0x00,0x00,0x00,0x00}},
{"加",{0x10,0x10,0x10,0xFF,0x10,0x10,0xF0,0x00,0x00,0xF8,0x08,0x08,0x08,0xF8,0x00,0x00,
0x80,0x40,0x30,0x0F,0x40,0x80,0x7F,0x00,0x00,0x7F,0x20,0x20,0x20,0x7F,0x00,0x00}},
{"密",{0x10,0x8C,0x44,0x04,0xE4,0x04,0x95,0xA6,0x44,0x24,0x14,0x84,0x44,0x94,0x0C,0x00,
0x02,0x02,0x7A,0x41,0x41,0x43,0x42,0x7E,0x42,0x42,0x42,0x43,0xF8,0x00,0x00,0x00}},
{"芯",{0x04,0x04,0x04,0x04,0x1F,0x04,0x24,0x44,0x84,0x04,0x1F,0x04,0x04,0x04,0x04,0x00,
0x10,0x08,0x06,0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x40,0x70,0x01,0x02,0x0C,0x00}},
{"片",{0x00,0x00,0x00,0xFE,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x00,0x00,
0x00,0x80,0x60,0x1F,0x02,0x02,0x02,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x00}},
{"连",{0x40,0x40,0x42,0xCC,0x00,0x04,0x44,0x64,0x5C,0x47,0xF4,0x44,0x44,0x44,0x04,0x00,
0x00,0x40,0x20,0x1F,0x20,0x44,0x44,0x44,0x44,0x44,0x7F,0x44,0x44,0x44,0x44,0x00}},
{"续",{0x20,0x30,0xAC,0x63,0x20,0x18,0x20,0x24,0xA4,0x24,0x3F,0xA4,0x24,0xA4,0x60,0x00,
0x22,0x67,0x22,0x12,0x12,0x12,0x88,0x8A,0x4C,0x29,0x18,0x0F,0x18,0x28,0xC8,0x00}},
{"间",{0x00,0xF8,0x01,0x06,0x00,0xF0,0x12,0x12,0x12,0xF2,0x02,0x02,0x02,0xFE,0x00,0x00,
0x00,0xFF,0x00,0x00,0x00,0x1F,0x11,0x11,0x11,0x1F,0x00,0x40,0x80,0x7F,0x00,0x00}},
{"隙",{0x00,0xFE,0x02,0x22,0xDA,0x06,0x08,0xE4,0xA2,0xA0,0xAF,0xA0,0xA2,0xE4,0x08,0x00,
0x00,0xFF,0x08,0x10,0x08,0x07,0x20,0x13,0x4A,0x82,0x7E,0x02,0x0A,0x13,0x20,0x00}},
{"黑",{0x00,0x00,0x3E,0x22,0x2A,0x32,0x22,0xFE,0x22,0x32,0x2A,0x22,0x3E,0x00,0x00,0x00,
0x88,0x68,0x09,0x09,0x29,0xC9,0x09,0x0F,0x29,0xC9,0x09,0x09,0x29,0xC8,0x08,0x00}},
{"标",{0x10,0x10,0xD0,0xFF,0x90,0x10,0x20,0x22,0x22,0x22,0xE2,0x22,0x22,0x22,0x20,0x00,
0x04,0x03,0x00,0xFF,0x00,0x13,0x0C,0x03,0x40,0x80,0x7F,0x00,0x01,0x06,0x18,0x00}},
{"分",{0x80,0x40,0x20,0x90,0x88,0x86,0x80,0x80,0x80,0x83,0x8C,0x10,0x20,0x40,0x80,0x00,
0x00,0x80,0x40,0x20,0x18,0x07,0x00,0x40,0x80,0x40,0x3F,0x00,0x00,0x00,0x00,0x00}},
{"钟",{0x20,0x10,0x2C,0xE7,0x24,0x24,0x00,0xF0,0x10,0x10,0xFF,0x10,0x10,0xF0,0x00,0x00,
0x01,0x01,0x01,0x7F,0x21,0x11,0x00,0x07,0x02,0x02,0xFF,0x02,0x02,0x07,0x00,0x00}},
{"从",{0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,
0x80,0x40,0x30,0x0E,0x01,0x82,0x4C,0x20,0x18,0x07,0x00,0x07,0x18,0x60,0x80,0x00}},
{"不",{0x00,0x02,0x02,0x02,0x02,0x82,0x42,0xF2,0x0E,0x42,0x82,0x02,0x02,0x02,0x00,0x00,
0x10,0x08,0x04,0x02,0x01,0x00,0x00,0xFF,0x00,0x00,0x00,0x01,0x02,0x0C,0x00,0x00}},
{"简",{0x08,0x04,0xC3,0x12,0x26,0x8A,0xA2,0xAA,0xA4,0xA3,0x22,0x26,0xEA,0x02,0x02,0x00,
0x00,0x00,0xFF,0x00,0x00,0x3F,0x24,0x24,0x24,0x3F,0x00,0x80,0xFF,0x00,0x00,0x00}},
{"体",{0x00,0x80,0x60,0xF8,0x07,0x10,0x10,0x10,0xD0,0xFF,0xD0,0x10,0x10,0x10,0x00,0x00,
0x01,0x00,0x00,0xFF,0x10,0x08,0x04,0x0B,0x08,0xFF,0x08,0x0B,0x04,0x08,0x10,0x00}},
{"中",{0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0xF0,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x0F,0x00,0x00,0x00}},
{"文",{0x08,0x08,0x08,0x38,0xC8,0x08,0x09,0x0E,0x08,0x08,0xC8,0x38,0x08,0x08,0x08,0x00,
0x80,0x80,0x40,0x40,0x20,0x11,0x0A,0x04,0x0A,0x11,0x20,0x40,0x40,0x80,0x80,0x00}},
{"简",{0x08,0x04,0xC3,0x12,0x26,0x8A,0xA2,0xAA,0xA4,0xA3,0x22,0x26,0xEA,0x02,0x02,0x00,
0x00,0x00,0xFF,0x00,0x00,0x3F,0x24,0x24,0x24,0x3F,0x00,0x80,0xFF,0x00,0x00,0x00}},
{"体",{0x00,0x80,0x60,0xF8,0x07,0x10,0x10,0x10,0xD0,0xFF,0xD0,0x10,0x10,0x10,0x00,0x00,
0x01,0x00,0x00,0xFF,0x10,0x08,0x04,0x0B,0x08,0xFF,0x08,0x0B,0x04,0x08,0x10,0x00}},
{"中",{0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0xF0,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x0F,0x00,0x00,0x00}},
{"文",{0x08,0x08,0x08,0x38,0xC8,0x08,0x09,0x0E,0x08,0x08,0xC8,0x38,0x08,0x08,0x08,0x00,
0x80,0x80,0x40,0x40,0x20,0x11,0x0A,0x04,0x0A,0x11,0x20,0x40,0x40,0x80,0x80,0x00}},
{"时",{0x00,0xFC,0x84,0x84,0x84,0xFC,0x00,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x00,
0x00,0x3F,0x10,0x10,0x10,0x3F,0x00,0x00,0x01,0x06,0x40,0x80,0x7F,0x00,0x00,0x00}},
{"孔",{0x00,0x02,0x02,0x02,0xF2,0x8A,0x46,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x02,0x41,0x81,0x7F,0x00,0x00,0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x78,0x00}},
{"位",{0x00,0x80,0x60,0xF8,0x07,0x10,0x90,0x10,0x11,0x16,0x10,0x10,0xD0,0x10,0x00,0x00,
0x01,0x00,0x00,0xFF,0x40,0x40,0x41,0x5E,0x40,0x40,0x70,0x4E,0x41,0x40,0x40,0x00},}
};
//12*6 ascii
const FontAscii_12X12_TypeDef FontAscii_12X12[] =
{
//0~9
{'0',{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'1',{0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00}},
{'2',{0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00}},
{'3',{0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'4',{0xC0,0xA0,0x98,0xFC,0x80,0x00,0x00,0x00,0x02,0x03,0x02,0x00}},
{'5',{0x7C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'6',{0xF0,0x48,0x24,0x24,0xC8,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'7',{0x00,0x04,0xC4,0x34,0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00}},
{'8',{0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'9',{0x38,0x44,0x44,0x24,0xF8,0x00,0x01,0x02,0x02,0x01,0x00,0x00}},
//a~f
{'a',{0x00,0x40,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x03,0x02}},
{'b',{0x02,0xFE,0x20,0x20,0xC0,0x00,0x00,0x03,0x02,0x02,0x01,0x00}},
{'c',{0x00,0xC0,0x20,0x20,0x60,0x00,0x00,0x01,0x02,0x02,0x01,0x00}},
{'d',{0x00,0xC0,0x20,0x22,0xFE,0x00,0x00,0x01,0x02,0x02,0x03,0x02}},
{'e',{0x00,0xC0,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x02,0x00}},
{'f',{0x00,0x20,0xFC,0x22,0x22,0x04,0x00,0x02,0x03,0x02,0x02,0x00}},
{'g',{0x00,0x40,0xA0,0xA0,0x60,0x20,0x00,0x05,0x0A,0x0A,0x0A,0x04}},
{'h',{0x02,0xFE,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02}},
{'i',{0x00,0x20,0xE6,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00}},
{'j',{0x00,0x00,0x20,0xE6,0x00,0x00,0x08,0x08,0x08,0x07,0x00,0x00}},
{'k',{0x02,0xFE,0x80,0x60,0x20,0x00,0x02,0x03,0x00,0x01,0x02,0x00}},
{'l',{0x02,0x02,0xFE,0x00,0x00,0x00,0x02,0x02,0x03,0x02,0x02,0x00}},
{'m',{0xE0,0x20,0xE0,0x20,0xC0,0x00,0x03,0x00,0x03,0x00,0x03,0x00}},
{'n',{0x20,0xE0,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02}},
{'o',{0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x01,0x02,0x02,0x01,0x00}},
{'p',{0x20,0xE0,0x20,0x20,0xC0,0x00,0x08,0x0F,0x0A,0x02,0x01,0x00}},
{'q',{0x00,0xC0,0x20,0x20,0xE0,0x00,0x00,0x01,0x02,0x0A,0x0F,0x08}},
{'r',{0x20,0xE0,0x40,0x20,0x20,0x00,0x02,0x03,0x02,0x00,0x00,0x00}},
{'s',{0x00,0x60,0xA0,0xA0,0x20,0x00,0x00,0x02,0x02,0x02,0x03,0x00}},
{'t',{0x00,0x20,0xF8,0x20,0x20,0x00,0x00,0x00,0x03,0x02,0x02,0x00}},
{'u',{0x20,0xE0,0x00,0x20,0xE0,0x00,0x00,0x01,0x02,0x02,0x03,0x02}},
{'v',{0x20,0xE0,0x00,0xE0,0x20,0x00,0x00,0x00,0x03,0x00,0x00,0x00}},
{'w',{0x60,0x80,0xE0,0x80,0x60,0x00,0x00,0x03,0x00,0x03,0x00,0x00}},
{'x',{0x20,0x60,0x80,0x60,0x20,0x00,0x02,0x03,0x00,0x03,0x02,0x00}},
{'y',{0x20,0xE0,0x00,0x00,0xE0,0x20,0x08,0x08,0x05,0x03,0x00,0x00}},
{'z',{0x00,0x20,0xA0,0x60,0x20,0x00,0x00,0x02,0x03,0x02,0x02,0x00}},
//A~Z
{'A',{0x00,0xE0,0x9C,0xF0,0x80,0x00,0x02,0x03,0x00,0x00,0x03,0x02}},
{'B',{0x04,0xFC,0x24,0x24,0xD8,0x00,0x02,0x03,0x02,0x02,0x01,0x00}},
{'C',{0xF8,0x04,0x04,0x04,0x0C,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'D',{0x04,0xFC,0x04,0x04,0xF8,0x00,0x02,0x03,0x02,0x02,0x01,0x00}},
{'E',{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x02,0x03,0x00}},
{'F',{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x00,0x00,0x00}},
{'G',{0xF0,0x08,0x04,0x44,0xCC,0x40,0x00,0x01,0x02,0x02,0x01,0x00}},
{'H',{0x04,0xFC,0x20,0x20,0xFC,0x04,0x02,0x03,0x00,0x00,0x03,0x02}},
{'I',{0x04,0x04,0xFC,0x04,0x04,0x00,0x02,0x02,0x03,0x02,0x02,0x00}},
{'J',{0x00,0x04,0x04,0xFC,0x04,0x04,0x0C,0x08,0x08,0x07,0x00,0x00}},
{'K',{0x04,0xFC,0x24,0x50,0x8C,0x04,0x02,0x03,0x02,0x00,0x03,0x02}},
{'L',{0x04,0xFC,0x04,0x00,0x00,0x00,0x02,0x03,0x02,0x02,0x02,0x03}},
{'M',{0xFC,0x3C,0xC0,0x3C,0xFC,0x04,0x03,0x00,0x03,0x00,0x03,0x02}},
{'N',{0x04,0xFC,0x30,0xC4,0xFC,0x04,0x02,0x03,0x02,0x00,0x03,0x00}},
{'O',{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00}},
{'P',{0x04,0xFC,0x24,0x24,0x18,0x00,0x02,0x03,0x02,0x00,0x00,0x00}},
{'Q',{0xF8,0x84,0x84,0x04,0xF8,0x00,0x01,0x02,0x02,0x07,0x05,0x00}},
{'R',{0x04,0xFC,0x24,0x64,0x98,0x00,0x02,0x03,0x02,0x00,0x03,0x02}},
{'S',{0x18,0x24,0x24,0x44,0x8C,0x00,0x03,0x02,0x02,0x02,0x01,0x00}},
{'T',{0x0C,0x04,0xFC,0x04,0x0C,0x00,0x00,0x02,0x03,0x02,0x00,0x00}},
{'U',{0x04,0xFC,0x00,0x00,0xFC,0x04,0x00,0x01,0x02,0x02,0x01,0x00}},
{'V',{0x04,0x7C,0x80,0xE0,0x1C,0x04,0x00,0x00,0x03,0x00,0x00,0x00}},
{'W',{0x3C,0xC0,0x7C,0xC0,0x3C,0x00,0x00,0x03,0x00,0x03,0x00,0x00}},
{'X',{0x04,0x9C,0x60,0x9C,0x04,0x00,0x02,0x03,0x00,0x03,0x02,0x00}},
{'Y',{0x04,0x3C,0xC0,0x3C,0x04,0x00,0x00,0x02,0x03,0x02,0x00,0x00}},
{'Z',{0x0C,0x84,0x64,0x1C,0x04,0x00,0x02,0x03,0x02,0x02,0x03,0x00}},
//特殊符号
{'_',{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08}},
{'%',{0x38,0x44,0xF8,0xD0,0x2C,0xC0,0x00,0x03,0x00,0x01,0x02,0x01}},
{' ',{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
{'/',{0x00,0x00,0xC0,0x30,0x0C,0x02,0x04,0x03,0x00,0x00,0x00,0x00}},
{':',{0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00}},
{'.',{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00}},
};
//12*12 汉字
const FontChinese_12X12_TypeDef FontChinese_12X12[] =
{
{"简",{0x04,0xCB,0x12,0xE6,0xAA,0xAC,0xAB,0xEA,0x0E,0xFA,0x02,0x00,0x00,0x0F,0x00,0x03,
0x02,0x02,0x02,0x0B,0x08,0x0F,0x00,0x00}},
{"体",{0x10,0xFC,0x03,0x88,0x48,0x28,0xFF,0x28,0x48,0x88,0x00,0x00,0x00,0x0F,0x01,0x00,
0x02,0x02,0x0F,0x02,0x02,0x00,0x01,0x00}},
{"中",{0x00,0xF8,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,0x01,0x00,0x00,
0x00,0x0F,0x00,0x00,0x00,0x01,0x00,0x00}},
{"文",{0x04,0x04,0x1C,0x64,0x85,0x06,0x84,0x64,0x1C,0x04,0x04,0x00,0x08,0x08,0x04,0x04,
0x02,0x01,0x02,0x04,0x04,0x08,0x08,0x00}},
{"分",{0x20,0x10,0x2C,0x23,0xE0,0x20,0x20,0x23,0xEC,0x10,0x20,0x00,0x00,0x08,0x04,0x03,
0x00,0x08,0x08,0x08,0x07,0x00,0x00,0x00}},
{"钟",{0x88,0x97,0xF4,0x94,0x94,0x00,0xF8,0x88,0xFF,0x88,0xF8,0x00,0x00,0x00,0x0F,0x04,
0x02,0x00,0x01,0x00,0x0F,0x00,0x01,0x00}},
{"从",{0x00,0x00,0xE0,0x1F,0xE0,0x00,0xC0,0x3F,0xC0,0x00,0x00,0x00,0x08,0x06,0x01,0x00,
0x09,0x06,0x01,0x00,0x01,0x06,0x08,0x00}},
{"不",{0x02,0x02,0x82,0x42,0x22,0xF2,0x0E,0x22,0x42,0x82,0x02,0x00,0x01,0x01,0x00,0x00,
0x00,0x0F,0x00,0x00,0x00,0x00,0x01,0x00}},
{"间",{0x00,0xF9,0x02,0xF8,0x49,0x49,0x49,0x49,0xF9,0x01,0xFF,0x00,0x00,0x0F,0x00,0x03,
0x02,0x02,0x02,0x02,0x0B,0x08,0x0F,0x00}},
{"隙",{0xFE,0x02,0x32,0xCE,0x04,0xFA,0xA8,0xAF,0xA8,0xFA,0x04,0x00,0x0F,0x02,0x02,0x01,
0x04,0x02,0x08,0x0F,0x00,0x02,0x04,0x00}},
{"纸",{0x98,0xD4,0xB3,0x88,0x00,0xFE,0x22,0x22,0xFF,0x21,0x21,0x00,0x04,0x04,0x02,0x02,
0x00,0x0F,0x04,0x02,0x03,0x04,0x0E,0x00}},
{"黑",{0x00,0x5F,0x51,0x55,0x51,0xFF,0x51,0x55,0x51,0x5F,0x00,0x00,0x09,0x05,0x01,0x05,
0x09,0x01,0x05,0x09,0x01,0x05,0x09,0x00}},
{"标",{0x88,0x68,0xFF,0x48,0x10,0x92,0x12,0xF2,0x12,0x92,0x10,0x00,0x00,0x00,0x0F,0x00,
0x02,0x01,0x08,0x0F,0x00,0x00,0x03,0x00}},
{"连",{0x21,0xE2,0x00,0x04,0x34,0x2C,0x27,0xF4,0x24,0x24,0x04,0x00,0x08,0x07,0x08,0x09,
0x09,0x09,0x09,0x0F,0x09,0x09,0x09,0x00}},
{"续",{0x98,0xD4,0xB3,0x88,0x00,0x4A,0xAA,0x4F,0xEA,0x0A,0x18,0x00,0x04,0x04,0x02,0x02,
0x09,0x09,0x05,0x03,0x01,0x05,0x09,0x00}},
{"定",{0x2C,0x24,0xA4,0x24,0x25,0xE6,0x24,0x24,0x24,0x24,0x2C,0x00,0x08,0x04,0x03,0x04,
0x08,0x0F,0x09,0x09,0x09,0x09,0x08,0x00}},
{"位",{0x10,0xFC,0x03,0x08,0x68,0x88,0x09,0x0A,0x08,0xE8,0x08,0x00,0x00,0x0F,0x00,0x08,
0x08,0x0B,0x08,0x0C,0x0B,0x08,0x08,0x00}},
{"孔",{0x80,0x82,0x82,0xF2,0x4A,0x46,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x0F,
0x00,0x00,0x00,0x07,0x08,0x08,0x0E,0x00}},
{"最",{0x10,0xF0,0x5F,0x55,0xF5,0x15,0x55,0xD5,0x5F,0xD0,0x10,0x00,0x04,0x07,0x05,0x05,
0x0F,0x02,0x08,0x05,0x02,0x05,0x08,0x00}},
{"浓",{0x22,0x44,0x00,0x8C,0x44,0xE4,0x1C,0x67,0x84,0x44,0x2C,0x00,0x04,0x02,0x00,0x00,
0x00,0x0F,0x04,0x00,0x01,0x02,0x04,0x00}},
{"正",{0x00,0x02,0xE2,0x02,0x02,0xFE,0x42,0x42,0x42,0x42,0x00,0x00,0x08,0x08,0x0F,0x08,
0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x00}},
{"常",{0x0C,0x04,0x75,0x56,0x54,0xD7,0x54,0x56,0x75,0x04,0x0C,0x00,0x00,0x07,0x01,0x01,
0x01,0x0F,0x01,0x01,0x05,0x07,0x00,0x00}},
{"较",{0x64,0x5C,0xF7,0x44,0x40,0x24,0xD5,0x06,0xD4,0x24,0x44,0x00,0x02,0x02,0x0F,0x01,
0x08,0x08,0x05,0x02,0x05,0x08,0x08,0x00}},
{"淡",{0x10,0x22,0x04,0x00,0x28,0xA6,0x10,0xCF,0x10,0x14,0xA2,0x00,0x04,0x02,0x01,0x08,
0x09,0x04,0x02,0x01,0x02,0x05,0x08,0x00}},
{"慢",{0x78,0x00,0xFF,0x04,0x70,0x5F,0x75,0x55,0x75,0x5F,0x70,0x00,0x00,0x00,0x0F,0x00,
0x09,0x0B,0x05,0x05,0x05,0x0B,0x08,0x00}},
{"快",{0x78,0x00,0xFF,0x48,0x44,0x44,0xFF,0x44,0x44,0x7C,0x40,0x00,0x00,0x00,0x0F,0x08,
0x04,0x03,0x00,0x03,0x04,0x08,0x08,0x00}},
};
/*************************************函数*************************************/
/*******************************************************************************
* 名称: Get_FontChinese
* 描述: 获取汉字字模信息
* 输入参数: 无
* 输出参数: 无
* 其它: 16*16 共32byte
*******************************************************************************/
uint8_t* Get_FontChinese_16x16(uint8_t *index)
{
uint8_t i = 0;
uint8_t *ptr = NULL;
for(i = 0; i < (sizeof(FontChinese_16X16) / sizeof(FontChinese_16X16_TypeDef)); i++)
{
if((FontChinese_16X16[i].FontIndex[0] == index[0]) &&
(FontChinese_16X16[i].FontIndex[1] == index[1]) )
{
ptr = (uint8_t *)&FontChinese_16X16[i].FontImg[0]; //取到指针
break;
}
}
return ptr; //返回指针信息
}
/*******************************************************************************
* 名称: Get_FontAscii_16x16
* 描述: 获取ascii字模信息
* 输入参数: 无
* 输出参数: 无
* 其它: 16*8 共16byte
*******************************************************************************/
uint8_t* Get_FontAscii_16x16(uint8_t index)
{
uint8_t i = 0;
uint8_t *ptr = NULL;
for(i = 0; i < (sizeof(FontAscii_16X16) / sizeof(FontAscii_16X16_TypeDef)); i++)
{
if(FontAscii_16X16[i].FontIndex == index)
{
ptr = (uint8_t *)&FontAscii_16X16[i].FontImg[0]; //取到指针
break;
}
}
return ptr; //返回指针信息
}
/*******************************************************************************
* 名称: Get_FontChinese_12x12
* 描述: 获取汉字字模信息
* 输入参数: 无
* 输出参数: 无
* 其它: 16*16 共32byte
*******************************************************************************/
uint8_t* Get_FontChinese_12x12(uint8_t *index)
{
uint8_t i = 0;
uint8_t *ptr = NULL;
for(i = 0; i < (sizeof(FontChinese_12X12) / sizeof(FontChinese_12X12_TypeDef)); i++)
{
if((FontChinese_12X12[i].FontIndex[0] == index[0]) &&
(FontChinese_12X12[i].FontIndex[1] == index[1]) )
{
ptr = (uint8_t *)&FontChinese_12X12[i].FontImg[0]; //取到指针
break;
}
}
return ptr; //返回指针信息
}
/*******************************************************************************
* 名称: Get_FontAscii_12x12
* 描述: 获取ascii字模信息
* 输入参数: 无
* 输出参数: 无
* 其它: 12*6 共12byte
*******************************************************************************/
uint8_t* Get_FontAscii_12x12(uint8_t index)
{
uint8_t i = 0;
uint8_t *ptr = NULL;
for(i = 0; i < (sizeof(FontAscii_12X12) / sizeof(FontAscii_12X12_TypeDef)); i++)
{
if(FontAscii_12X12[i].FontIndex == index)
{
ptr = (uint8_t *)&FontAscii_12X12[i].FontImg[0]; //取到指针
break;
}
}
return ptr; //返回指针信息
}
/*******************************************************************************
* 名称: Get_Reverse_Img
* 描述: 反相显示
* 输入参数: 无
* 输出参数: 无
* 其它: 无
*******************************************************************************/
/*
uint8_t* Get_Reverse_Img(uint8_t *img)
{
static uint8_t buf[512];
uint8_t i = 0;
memset(&buf[0],0x00,512);
for(i=0; i<strlen((char *)img); i++)
{
buf[i] = ~img[i]; //取反相处理
}
return &buf[0];
}
*/
/******************************************************************************
版权所有: 深圳市。。科技有限公司
文件名: api_ui_led.c
作者: wangdy
创建日期: 2021/06/2
描述: led显示控制
其它:
修改历史: //修改历史记录列表,每条修改记录应包含修改日期、修改者及修改内容简述
序号 修改时间 修改人 修改内容
参考样式
******************************************************************************/
/************************************头文件************************************/
//#include "api_ui_process.h"
//#include "printerConfig.h"
#include "bsp_lcd.h"
#include "api_ui_lcd.h"
#include "LcdMenu.h"
/*
#include "api_ui_main.h"
#include "api_ui_macaddr.h"
#include "api_ui_update.h"
#include "api_ui_language_choice.h"
#include "api_ui_selftest_print.h"
#include "api_ui_auto_poweroff.h"
#include "api_ui_firmware_version.h"
#include "api_ui_poweroff_charge.h"
#include "api_ui_factory_setting.h"
#include "api_ui_carriage_open.h"
#include "api_ui_datatrans.h"
#include "api_ui_paper_type.h"
#include "api_ui_auto_calibrate.h"
#include "api_ui_language.h"
#include "yc_systick.h"
#include "api_font_img.h"
#include <stdio.h>
#include <string.h>
#include "api_keyscan.h"
#include "var_global.h"
#include "printerConfig.h"
#include "api_userpara.h"
#include "api_powerctrl.h"
*/
#define UI_LCD
#ifdef UI_LCD
/*************************************宏定义*************************************/
/*************************************变量*************************************/
ST_UI_HANDLE Current_Handle;
UICommonStoreTypeDef UICommonStore = {0}; //存储参数信息
UICommonTypeDef UICommon = //界面通用信息
{
.Last_MenuID = 1, //默认转第一个界面
};
/*************************************函数*************************************/
/*******************************************************************************
* 名称: UI_Menu_ShowChinese_16x16
* 描述: 显示文本 16*16
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowChinese_16x16(uint8_t x,uint8_t y,uint8_t *chinese)
{
uint8_t i = 0;
uint8_t chinese_buf[2]; //汉字数组信息
uint8_t index = x;
uint8_t *font_ptr; //汉字指针
for(i=0; i<strlen((char *)chinese)/2; i++)
{
//取到汉字字模的位置
chinese_buf[0] = chinese[i*2 + 0];
chinese_buf[1] = chinese[i*2 + 1];
//取到字模信息
font_ptr = Get_FontChinese_16x16(chinese_buf);
//LCD显示
if(font_ptr != NULL)
{
LCD_Display_Chinese_16x16(index,y,font_ptr);
index += 16;
}
}
}
/*******************************************************************************
* 名称: UI_Menu_ShowAscii_16x16
* 描述: 显示ascii 8*16
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowAscii_16x16(uint8_t x,uint8_t y,uint8_t *ascii)
{
uint8_t i = 0;
uint8_t ascii_index = 0; //汉字数组信息
uint8_t index = x;
uint8_t *font_ptr; //汉字指针
for(i=0; i<strlen((char *)ascii); i++)
{
ascii_index = ascii[i];
//取到字模信息
font_ptr = Get_FontAscii_16x16(ascii_index);
//LCD显示
if(font_ptr != NULL)
{
LCD_Display_Ascii_16x16(index,y,font_ptr);
index += 8;
}
}
}
/*******************************************************************************
* 名称: UI_Menu_ShowMenu_16x16
* 描述: 显示菜单信息(用于区分语言)
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowMenu_16x16(uint8_t x,uint8_t y,uint8_t *menu)
{
if(LCD.language==ENGLISH)
{
UI_Menu_ShowAscii_16x16(x,y,menu);
}
if(LCD.language==CHINESE)
{
UI_Menu_ShowChinese_16x16(x,y,menu);
}
}
/*******************************************************************************
* 名称: UI_Menu_ShowChinese_12x12
* 描述: 显示文本 12*12
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowChinese_12x12(uint8_t x,uint8_t y,uint8_t *chinese)
{
uint8_t i = 0;
uint8_t chinese_buf[2]; //汉字数组信息
uint8_t index = x;
uint8_t *font_ptr; //汉字指针
for(i=0; i<strlen((char *)chinese)/2; i++)
{
//取到汉字字模的位置
chinese_buf[0] = chinese[i*2 + 0];
chinese_buf[1] = chinese[i*2 + 1];
//取到字模信息
font_ptr = Get_FontChinese_12x12(chinese_buf);
//LCD显示
if(font_ptr != NULL)
{
LCD_Display_Chinese_12x12(index,y,font_ptr);
index += 12;
}
}
}
/*******************************************************************************
* 名称: UI_Menu_ShowAscii_12x12
* 描述: 显示ascii 6*12
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowAscii_12x12(uint8_t x,uint8_t y,uint8_t *ascii)
{
uint8_t i = 0;
uint8_t ascii_index = 0; //汉字数组信息
uint8_t index = x;
uint8_t *font_ptr; //汉字指针
for(i=0; i<strlen((char *)ascii); i++)
{
ascii_index = ascii[i];
//取到字模信息
font_ptr = Get_FontAscii_12x12(ascii_index);
//LCD显示
if(font_ptr != NULL)
{
LCD_Display_Ascii_12x12(index,y,font_ptr);
index += 6;
}
}
}
/*******************************************************************************
* 名称: UI_Menu_ShowMenu_12x12
* 描述: 显示菜单信息(用于区分语言)
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
void UI_Menu_ShowMenu_12x12(uint8_t x,uint8_t y,uint8_t *menu)
{
//if(gUserPara.Language == LANGUAGE_EN)
if(LCD.language==ENGLISH)
{
//UI_Menu_ShowAscii_12x12(x,y,menu);
UI_Menu_ShowAscii_12x12(0,y,menu);
}
//else if(gUserPara.Language == LANGUAGE_CN)
else if(LCD.language==CHINESE)
{
UI_Menu_ShowChinese_12x12(x,y,menu);
}
}
/*******************************************************************************
* 名称: UI_Menu_Init
* 描述: UI_Menu初始化
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
/*
void UI_Menu_Init(void)
{
Current_Handle = UIHandle_Main;
Current_Handle.Init(NULL); //初始化显示信息
}
*/
/*******************************************************************************
* 名称: UI_Menu_OpModeChange
* 描述: UI_Menu
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
/*
void UI_Menu_OpModeChange(MenuOPModeTypeDef mode, void *param)
{
switch(mode)
{
case OP_MODE_MAIN:
{
Current_Handle = UIHandle_Main;
Current_Handle.Init(NULL); //初始化显示信息
break;
}
case OP_MODE_MACADDR: //MAC
{
Current_Handle = UIHandle_MacAddr;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 7;
break;
}
case OP_MODE_UPDATE: //升级
{
Current_Handle = UIHandle_Update;
Current_Handle.Init(NULL); //初始化显示信息
break;
}
case OP_MODE_LANGUAGECHOICE: //语言选择
{
Current_Handle = UIHandle_LanguageChoice;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 4;
break;
}
case OP_MODE_SELFTEST_PRINT: //打印自检
{
Current_Handle = UIHandle_Selftest_Print;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 1;
break;
}
case OP_MODE_AUTO_POWEROFF: //自动关机
{
Current_Handle = UIHandle_AutoPoweroff;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 5;
break;
}
case OP_MODE_FIRMWARE_VERSION: //固件版本号
{
Current_Handle = UIHandle_Firmware_Version;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 8;
break;
}
case OP_MODE_FACTORY_SETTING: //恢复参数
{
Current_Handle = UIHandle_Factory_Setting;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 6;
break;
}
case OP_MODE_PAPER_TYPE: //纸张类型
{
Current_Handle = UIHandle_PaperType;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 2;
break;
}
case OP_MODE_AUTO_CALIBRATE: //自动定标
{
Current_Handle = UIHandle_AutoCalibrate;
Current_Handle.Init(NULL); //初始化显示信息
UICommon.Last_MenuID = 3;
break;
}
default:
{
break;
}
}
}
*/
/*******************************************************************************
* 名称: UI_StorePara
* 描述: UI配置存参
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
/*
static void UI_StorePara(void)
{
//跳主界面后 开始存参
1 -定标参数
if(UICommonStore.NeedStoreCaliFlag)
{
UICommonStore.NeedStoreCaliFlag = false;
gCalibratePara.SensorMode = UICommonStore.SensorMode; //纸张类型存储
CalibrateParaWritetoFlash(&gCalibratePara); //写定标参数
}
//2-用户参数
if(UICommonStore.NeedStoreLanguateFlag)
{
UICommonStore.NeedStoreLanguateFlag = false;
UserParaWritetoFlash(&gUserPara);
}
//3-存储定时时间信息
if(UICommonStore.NeedStorePowerOffTimeFlag)
{
UICommonStore.NeedStorePowerOffTimeFlag = false;
gUserPara.AutoPowerOffTimeEnum = UICommonStore.AutoPowerOffTimeEnum;
UserParaWritetoFlash(&gUserPara);
}
}
*/
/*******************************************************************************
* 名称: UI_Menu_Process
* 描述: UI_Menu定时调用
* 输入参数: 无
* 输出参数: 无
* 其它:
*******************************************************************************/
/*
void UI_Menu_Process(void)
{
uint32_t current_count = 0;
static uint32_t last_count = 0;
uint32_t backmain_current_count = 0;
static uint32_t backmain_last_count = 0;
KeyStateTypeEnum key_state_power = 0;
KeyStateTypeEnum key_state_feed = 0;
//----------------跳转主界面计时信息 10MS判断一次
backmain_current_count = SysTick_GetMyTick();
if(backmain_last_count != backmain_current_count)
{
backmain_last_count = backmain_current_count;
if(GlobalVar.Use_Key_Menu_Flag)
{
GlobalVar.UI_ReturnToMain_Count++;
if(GlobalVar.UI_ReturnToMain_Count > LCD_RETURN_MAIN_TIMEOUT)
{
GlobalVar.UI_ReturnToMain_Count = 0;
GlobalVar.Use_Key_Menu_Flag = false;
//跳到主界面去 如果当前非主界面
if(0 != memcmp(&Current_Handle, &UIHandle_Main, sizeof(ST_UI_HANDLE)))
{
UI_Menu_OpModeChange(OP_MODE_MAIN,NULL);
UI_StorePara(); //存参
}
}
}
else
{
GlobalVar.UI_ReturnToMain_Count = 0;
}
}
//-------------------按键刷新
if(false == GlobalVar.Use_Key_Menu_Flag)
{
key_state_power = Key_Get_State(KEY_POWER); //左按键按下后 按键被菜单接管
if(key_state_power == KEY_PRESS_SINGLE)
{
GlobalVar.Use_Key_Menu_Flag = true;
GlobalVar.UI_ReturnToMain_Count = 0; //跳过 计数器清0
AutoPowerOffClear(); //清除关机计数
Current_Handle.KeyEvent(KEY_POWER); //左键处理
AutoPowerOffClear(); //清除关机计数
MyPrintf("PowerKey Pressed\r\n");
}
//MyPrintf("PowerKey,Run to Screen\r\n");
}
//进入菜单模式 则进行处理
else if(true == GlobalVar.Use_Key_Menu_Flag)
{
key_state_power = Key_Get_State(KEY_POWER);
key_state_feed = Key_Get_State(KEY_FEED);
if((key_state_power == KEY_RELEASE) && (key_state_feed == KEY_PRESS_SINGLE))
{
GlobalVar.UI_ReturnToMain_Count = 0; //计数清0
Current_Handle.KeyEvent(KEY_FEED); //右键处理
AutoPowerOffClear(); //清除关机计数
}
if((key_state_power == KEY_PRESS_SINGLE) && (key_state_feed == KEY_RELEASE))
{
GlobalVar.UI_ReturnToMain_Count = 0; //计数清0
Current_Handle.KeyEvent(KEY_POWER); //左键处理
AutoPowerOffClear(); //清除关机计数
}
}
// //------------------------定时刷新 更新刷新频率
current_count = SysTick_GetMyTick();
if((current_count - last_count) > LCD_REFRESH_TIME)
{
last_count = current_count;
if((key_state_power == KEY_RELEASE) && (key_state_feed == KEY_RELEASE))
{
Current_Handle.KeyEvent(KEY_NULL); //没按键 则正常做刷新
}
}
}
*/
#endif
YC3121_PT26\Source:bsp部分文件
于 2024-04-17 11:54:30 首次发布