背景图片
合泰单片机OLED屏驱动程序 - 啊和的博客

合泰单片机OLED屏驱动程序 - 啊和的博客 合泰单片机OLED屏驱动程序 - 啊和的博客

合泰单片机OLED屏驱动程序

.C文件

#include "oled.h"
#include "io.h"
unsigned char       LINE_ON;
bit      LINE16_ON;
extern bit  YUYUE_MODE_NUMBER_KONG;
#define XLevelL   0x00
#define XLevelH   0x10
#define XLevel     ((XLevelH&0x0F)*16+XLevelL)
#define Max_Column 64
#define Max_Row   48
#define Brightness 0xCF
#define X_WIDTH   64
#define Y_WIDTH   48
 
/*********************LCD写数据************************************/
void LCD_WrDat(unsigned char dat)
{
  unsigned char i;
  LCD_DC=1;
   BUSY_ING=1;
  for(i=0; i<8; i++) //发送一个八位数据
  {
    if((dat << i) & 0x80)
    {
      LCD_MOSI  = 1;
    }
    else {
      LCD_MOSI  = 0;
    }
    LCD_CLK = 0;
    LCD_CLK = 1;
  }
     BUSY_ING=0;
}
/*********************LCD写命令************************************/
void LCD_WrCmd(unsigned char cmd)
{
  unsigned char i;
  LCD_DC=0;
  //BUSY_ING=1;
  for(i=0; i<8; i++) //发送一个八位数据
  {
    if((cmd << i) & 0x80)
    {
      LCD_MOSI  = 1;
    }
    else
    {
      LCD_MOSI  = 0;
    }
    LCD_CLK = 0;
    LCD_CLK = 1;
  }
   BUSY_ING=0; 
}
/*********************LCD 设置坐标************************************/
void LCD_Set_Pos(unsigned char x, unsigned char y)
{
  LCD_WrCmd(0xb2+y);
  LCD_WrCmd((((x+0x20)&0xf0)>>4)|0x10);
  LCD_WrCmd((x&0x0f)|0x01);
}
/*********************LCD全屏************************************/
void LCD_Fill(unsigned char bmp_dat)
{
  unsigned char y,x;
  for(y=0; y<8; y++)
  {
    LCD_WrCmd(0xb2+y);
    LCD_WrCmd(0x00);
    LCD_WrCmd(0x12);
    for(x=0; x<X_WIDTH; x++) {
      LCD_WrDat(bmp_dat);
    }
  }
}
/*********************LCD复位************************************/
void LCD_CLS(void)
{
  unsigned char y,x;
  for(y=0; y<8; y++)
  {
    LCD_WrCmd(0xb2+y);
    LCD_WrCmd(0x00);
    LCD_WrCmd(0x12);
    for(x=0; x<128; x++) {
      LCD_WrDat(0);
    }
  }
}
/*********************LCD初始化************************************/
void LCD_Init(void)
{
  RST_IO=0;
  GCC_DELAY(65530);
  RST_IO=1;
  GCC_DELAY(1000);
  LCD_CS=0;
  LCD_WrCmd(0xae);//--turn off oled panel
  LCD_WrCmd(0x00);//---set low column address
  LCD_WrCmd(0x10);//---set high column address
  LCD_WrCmd(0x40);//--set start line address  Set Mapping RAM Display Start Line (0x00~0x3F)
  LCD_WrCmd(0x81);//--set contrast control register
  LCD_WrCmd(0xcf); // Set SEG Output Current Brightness
  LCD_WrCmd(0xa1);//--Set SEG/Column Mapping     0xa0左右反置 0xa1正常
  LCD_WrCmd(0xc8);//Set COM/Row Scan Direction   0xc0上下反置 0xc8正常
  LCD_WrCmd(0xa6);//--set normal display
  LCD_WrCmd(0xa8);//--set multiplex ratio(1 to 64)
  LCD_WrCmd(0x3f);//--1/64 duty
  LCD_WrCmd(0xd3);//-set display offset Shift Mapping RAM Counter (0x00~0x3F)
  LCD_WrCmd(0x00);//-not offset
  LCD_WrCmd(0xd5);//--set display clock divide ratio/oscillator frequency
  LCD_WrCmd(0x80);//--set divide ratio, Set Clock as 100 Frames/Sec
  LCD_WrCmd(0xd9);//--set pre-charge period
  LCD_WrCmd(0xf1);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
  LCD_WrCmd(0xda);//--set com pins hardware configuration
  LCD_WrCmd(0x12);
  LCD_WrCmd(0xdb);//--set vcomh
  LCD_WrCmd(0x40);//Set VCOM Deselect Level
  LCD_WrCmd(0x20);//-Set Page Addressing Mode (0x00/0x01/0x02)
  LCD_WrCmd(0x02);//
  LCD_WrCmd(0x8d);//--set Charge Pump enable/disable
  LCD_WrCmd(0x14);//--set(0x10) disable
  LCD_WrCmd(0xa4);// Disable Entire Display On (0xa4/0xa5)
  LCD_WrCmd(0xa6);// Disable Inverse Display On (0xa6/a7)
  LCD_Fill(0x00);  //初始清屏
  LCD_WrCmd(0xaf);//--turn on oled panel
  LCD_Set_Pos(0,0);
}
//显示汉字
void OLED_ShowCHinese16(unsigned char  x,unsigned char y,unsigned char no)
{
  unsigned char t;
  LCD_Set_Pos(x,y);
  for(t=0; t<16; t++)
  {
    if(LINE_ON==2)
    {
      LCD_WrDat(~Hzk16[no][t]);
    } else
    {
      LCD_WrDat(Hzk16[no][t]);
    }
  }
  LCD_Set_Pos(x,y+1);
  for(t=0; t<16; t++)
  {
    if(LINE_ON==1)
    {
      LCD_WrDat(Hzk16[no][t+16]|0x80);
      //LCD_WrDat(Hzk16[no][t+16]);
    } else if(LINE_ON==2)
    {
      LCD_WrDat(~Hzk16[no][t+16]);
    }
    else
    {
      LCD_WrDat(Hzk16[no][t+16]);
    }
  }
}
 
void OLED_ShowCHinese24(unsigned char  x,unsigned char y,unsigned char no)
{
  unsigned char i=0;
  LCD_Set_Pos(x,y);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk24[no][i]);
  }
  LCD_Set_Pos(x+16,y);
  for(i=0; i<8; i++) {
    LCD_WrDat(Hzk24[no][i+16]);
  }
  LCD_Set_Pos(x,y+1);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk24[no][i+24]);
  }
  LCD_Set_Pos(x+16,y+1);
  for(i=0; i<8; i++) {
    LCD_WrDat(Hzk24[no][i+40]);
  }
  LCD_Set_Pos(x,y+2);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk24[no][i+48]);
  }
  LCD_Set_Pos(x+16,y+2);
  for(i=0; i<8; i++) {
    LCD_WrDat(Hzk24[no][i+64]);
  }
}
 

void OLED_ShowCHinese20(unsigned char  x,unsigned char y,unsigned char no)
{
  unsigned char i=0;
  LCD_Set_Pos(x,y);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk20[no][i]);
  }
  LCD_Set_Pos(x+16,y);
  for(i=0; i<4; i++) {
    LCD_WrDat(Hzk20[no][i+16]);
  }
  LCD_Set_Pos(x,y+1);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk20[no][i+20]);
  }
  LCD_Set_Pos(x+16,y+1);
  for(i=0; i<4; i++) {
    LCD_WrDat(Hzk20[no][i+36]);
  }
  LCD_Set_Pos(x,y+2);
  for(i=0; i<16; i++) {
    LCD_WrDat(Hzk20[no][i+40]);
  }
  LCD_Set_Pos(x+16,y+2);
  for(i=0; i<4; i++) {
    LCD_WrDat(Hzk20[no][i+56]);
  }
}
 
void OLED_ShowCHinese12(unsigned char  x,unsigned char y,unsigned char no)
{
  unsigned char i=0;
  LCD_Set_Pos(x,y);
  for(i=0; i<12; i++) {
   if(LINE_ON==2)
    {
          LCD_WrDat(~Hzk12[no][i]);   
    }
    else
    {
         LCD_WrDat(Hzk12[no][i]);   
    }
  
    
  }
  LCD_Set_Pos(x,y+1);
  for(i=0; i<12; i++) {
    //LCD_WrDat(Hzk12[no][i+12]);
       if(LINE_ON==2)
    {
          LCD_WrDat(~Hzk12[no][i+12]);   
    }
    else
    {
         LCD_WrDat(Hzk12[no][i+12]);   
    }
 
  }  
}
void OLED_ShowCHinese12Dot(unsigned char  x,unsigned char y)
{
  unsigned char i=0;
  LCD_Set_Pos(x,y);
  for(i=0; i<6; i++) {
   if(LINE_ON==2)
    {
       LCD_WrDat(~Hzk12[2][i]);       
    }else 
    {
      LCD_WrDat(Hzk12[2][i]);   
    }
  }
  LCD_Set_Pos(x,y+1);  
  for(i=0; i<6; i++) {
    if(LINE_ON==2)
     {
     LCD_WrDat(~Hzk12[2][i+6]);  
     }else 
     {
     LCD_WrDat(Hzk12[2][i+6]);  
     }
   
  }  
}
 
/***************************显示数字*************************************/
void  OLED_Show12NUM(unsigned char x,unsigned char y,unsigned char CD,unsigned char NEED_JUMP_ZERO,unsigned int NUM)
{
  unsigned char  ge,shi,bai,i;
  ge=NUM%10;
  shi=(NUM/10)%10;
  bai=(NUM/100)%10;
  if(CD==3)
  {
    LCD_Set_Pos(x,y);   
   for(i=0; i<6; i++) {
  if(bai==0) LCD_WrDat(0x00);else  {if(LINE_ON==2)LCD_WrDat(~Hzk12Num[bai][i]);else LCD_WrDat(Hzk12Num[bai][i]);}
  
  }
  LCD_Set_Pos(x,y+1);  
  for(i=0; i<6; i++) {
  if(bai==0) LCD_WrDat(0x00);else {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[bai][i+6]); else LCD_WrDat(Hzk12Num[bai][i+6]);}
  }

    LCD_Set_Pos(x+6,y);   
   for(i=0; i<6; i++) {
  if(shi==0&&bai==0) LCD_WrDat(0x00);else  {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi][i]); else LCD_WrDat(Hzk12Num[shi][i]);}
  
  }
  LCD_Set_Pos(x+6,y+1);  
  for(i=0; i<6; i++) {
  if(shi==0&&bai==0) LCD_WrDat(0x00);else {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi][i+6]); else LCD_WrDat(Hzk12Num[shi][i+6]);}
  }
    
    LCD_Set_Pos(x+6+6,y);
    for(i=0; i<6; i++) {
     if(LINE_ON==2)
     LCD_WrDat(~Hzk12Num[ge][i]);
     else 
      LCD_WrDat(Hzk12Num[ge][i]);
    }
    LCD_Set_Pos(x+6+6,y+1);
    for(i=0; i<6; i++) {
     if(LINE_ON==2)
      LCD_WrDat(~Hzk12Num[ge][i+6]);
      else 
      LCD_WrDat(Hzk12Num[ge][i+6]);
    }
    
    
    
    
  } else if(CD==2)
  {
      LCD_Set_Pos(x,y);   
   for(i=0; i<6; i++) {
    
    if(!YUYUE_MODE_NUMBER_KONG)
     {
      if(shi==0&&NEED_JUMP_ZERO) LCD_WrDat(0x00);else  {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi][i]);else  LCD_WrDat(Hzk12Num[shi][i]);}
     }else   //需要下移一点
     {
      if(shi==0&&NEED_JUMP_ZERO) LCD_WrDat(0x00);else  {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi+10][i]);else  LCD_WrDat(Hzk12Num[shi+10][i]);} 
     }
    
    
 
  
  }
  LCD_Set_Pos(x,y+1);  
  for(i=0; i<6; i++) {
       if(!YUYUE_MODE_NUMBER_KONG)
     {
  if(shi==0&&NEED_JUMP_ZERO) LCD_WrDat(0x00);else {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi][i+6]);else LCD_WrDat(Hzk12Num[shi][i+6]); }
    }else 
    {
  if(shi==0&&NEED_JUMP_ZERO) LCD_WrDat(0x00);else {if(LINE_ON==2) LCD_WrDat(~Hzk12Num[shi+10][i+6]);else LCD_WrDat(Hzk12Num[shi+10][i+6]); }   
    }
  }
    
    LCD_Set_Pos(x+6,y);
    for(i=0; i<6; i++) {
       if(!YUYUE_MODE_NUMBER_KONG)
     {
     
     if(LINE_ON==2)
      {
            LCD_WrDat(~Hzk12Num[ge][i]); 
      }else 
      {
            LCD_WrDat(Hzk12Num[ge][i]); 
      }
     }else 
     {
       if(LINE_ON==2)
      {
            LCD_WrDat(~Hzk12Num[ge+10][i]); 
      }else 
      {
            LCD_WrDat(Hzk12Num[ge+10][i]); 
      }      
     }
    }
    LCD_Set_Pos(x+6,y+1);
    for(i=0; i<6; i++) {
       if(!YUYUE_MODE_NUMBER_KONG)
     {     
     if(LINE_ON==2)
      {
      LCD_WrDat(~Hzk12Num[ge][i+6]); 
      }else 
      {
      LCD_WrDat(Hzk12Num[ge][i+6]);  
      }
      }else 
      {
     if(LINE_ON==2)
      {
      LCD_WrDat(~Hzk12Num[ge+10][i+6]); 
      }else 
      {
      LCD_WrDat(Hzk12Num[ge+10][i+6]);  
      }       
       
       
      }
    }
     
   
   
  }
}
 
 
void CLR_LAST_LINE_16()
{
 unsigned char i;
     LCD_Set_Pos(0,4);
    for(i=0; i<64; i++) {
        LCD_WrDat(0x00);
    }
     LCD_Set_Pos(0,5);
    for(i=0; i<64; i++) {
        LCD_WrDat(0x00);
    }
 
}
 

void OLED_Show12x16(unsigned  char x,unsigned  char y,unsigned  char no)
{
 unsigned char i;
 
      LCD_Set_Pos(x,y);
    for(i=0; i<12; i++) {
        LCD_WrDat(Hzk24char[no][i]);
    }
    LCD_Set_Pos(x,y+1);
     for(i=0; i<12; i++) {
        LCD_WrDat(Hzk24char[no][i+12]);
    }   
    LCD_Set_Pos(x,y+2);
     for(i=0; i<12; i++) {
        LCD_WrDat(Hzk24char[no][i+12+12]);
    }      
 
 
};
 
 

/***************************显示数字*************************************/
void  OLED_ShowNUM(unsigned char x,unsigned char y,unsigned char CD,unsigned int NUM)
{
  unsigned char  ge,shi,bai,i;
  ge=NUM%10;
  shi=(NUM/10)%10;
  bai=(NUM/100)%10;
  if(CD==3)
  {
    LCD_Set_Pos(x,y);
    for(i=0; i<8; i++) {
      if(bai==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[bai][i]);
      }
    }
    LCD_Set_Pos(x,y+1);
    for(i=0; i<8; i++) {
      if(bai==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[bai][i+8]);
      }
    }
    LCD_Set_Pos(x+8,y);
    for(i=0; i<8; i++) {
      if(shi==0&&bai==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[shi][i]);
      }
    }
    LCD_Set_Pos(x+8,y+1);
    for(i=0; i<8; i++) {
      if(shi==0&&bai==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[shi][i+8]);
      }
    }
    LCD_Set_Pos(x+16,y);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[ge][i]);
    }
    LCD_Set_Pos(x+16,y+1);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[ge][i+8]);
    }
  } else if(CD==2)
  {
    LCD_Set_Pos(x,y);
    for(i=0; i<8; i++) {
      if(shi==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[shi][i]);
      }
    }
    LCD_Set_Pos(x,y+1);
    for(i=0; i<8; i++) {
      if(shi==0) {
        LCD_WrDat(0x00);
      }
      else {
        LCD_WrDat(NUMZK[shi][i+8]);
      }
    }
    LCD_Set_Pos(x+8,y);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[ge][i]);
    }
    LCD_Set_Pos(x+8,y+1);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[ge][i+8]);
    }
  }
}

void  OLED_ShowTimeNUM(unsigned char x,unsigned char y,unsigned char NUM)
{
  unsigned char  ge,shi,i;
  ge=NUM%10;
  shi=(NUM/10)%10;
  LCD_Set_Pos(x,y);
  for(i=0; i<8; i++) {
    LCD_WrDat(NUMZK[shi][i]);
  }
  LCD_Set_Pos(x,y+1);
  for(i=0; i<8; i++) {
    if(LINE_ON)
    {
      LCD_WrDat(NUMZK[shi][i+8]|0x80);
    } else
    {
      LCD_WrDat(NUMZK[shi][i+8]);
    }
  }
  LCD_Set_Pos(x+8,y);
  for(i=0; i<8; i++) {
    LCD_WrDat(NUMZK[ge][i]);
  }
  LCD_Set_Pos(x+8,y+1);
  for(i=0; i<8; i++) {
    if(LINE_ON)
    {
      LCD_WrDat(NUMZK[ge][i+8]|0x80);
    } else
    {
      LCD_WrDat(NUMZK[ge][i+8]);
    }
  }
}
 
 

void OLED_SHOWWENDU(unsigned char x,unsigned char y,unsigned char ONOFF)
{
  unsigned char i;
  if(!ONOFF)
  {
    LCD_Set_Pos(x,y);
    for(i=0; i<8; i++) {
      LCD_WrDat(0x00);
    }
    LCD_Set_Pos(x,y+1);
    for(i=0; i<8; i++) {
      LCD_WrDat(0x00);
    }
  }
  else
  {
    LCD_Set_Pos(x,y);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[10][i]);
    }
    LCD_Set_Pos(x,y+1);
    for(i=0; i<8; i++) {
      LCD_WrDat(NUMZK[10][i+8]);
    }
  }
}
 
 
/***********功能描述:显示显示BMP图片128×64起始点坐标(x,y),x的范围0~127,y为页的范围0~7*****************/
void Draw_BMP(unsigned char x0,unsigned char y0,unsigned char x1, unsigned char y1,unsigned char BMP_NUMBER)
{
  unsigned int j=0;
  unsigned char x,y;
  if(y1%8==0) {
    y=y1/8;
  }
  else {
    y=y1/8+1;
  }
  for(y=y0; y<y1; y++)
  {
    LCD_Set_Pos(x0,y);
    for(x=x0; x<x1; x++)
    {
      switch (BMP_NUMBER)
      {
      case 0:
        LCD_WrDat(LOGO1[j++]);
        break;
      case 1:
        LCD_WrDat(LOGO2[j++]);
        break;
      case 2:
        LCD_WrDat(0x00);
        break;
      default:
        break;
      }
    }
  }
}

.H文件

#ifndef _oled_h
#define _oled_h
#define LCD_CLK    SCLK_IO
#define LCD_MOSI   SDIN_IO
#define LCD_CS     CS_IO
#define LCD_DC     DC_IO
extern unsigned char       LINE_ON;
extern bit      LINE16_ON;
 
const unsigned char LOGO1[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x90,0xF0,0xF0,0x00,0x00,0x00,0x80,0x80,
0x80,0x80,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x10,0xF0,0xF0,0x80,
0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x80,0x80,
0x80,0x80,0x00,0x00,0x00,0x80,0x80,0xE0,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,0x1F,0x1F,0x10,0x00,0x0F,0x1F,0x12,
0x12,0x1B,0x0B,0x00,0x00,0x19,0x1B,0x12,0x16,0x1D,0x09,0x00,0x10,0x1F,0x1F,0x16,
0x1F,0x19,0x10,0x00,0x40,0x7F,0x7F,0x50,0x10,0x1F,0x0F,0x00,0x00,0x0F,0x1F,0x10,
0x10,0x1F,0x0F,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 
 
 
};
const unsigned char LOGO2[]=
{
0x00,0x00,0x00,0x80,0xC0,0xE0,0xE0,0xC0,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,
0x00,0xC0,0xE0,0xE0,0xC0,0x80,0x00,0x00,0x00,0xF0,0xFE,0xFF,0x1F,0x07,0x03,0x01,
0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x01,0x07,0x1F,0xFF,
0xFE,0xF8,0x0F,0x3F,0x7F,0xFC,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x01,0x01,0x01,
0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF8,0xFF,0x3F,0x0F,0x00,0x00,0x00,0x01,0x01,
0x03,0x07,0x07,0x0F,0x0F,0x0E,0x0E,0x0E,0x0E,0x0E,0x0E,0x0F,0x07,0x07,0x03,0x03,
0x01,0x00,0x00,0x00,/*"C:\Users\Administrator\Desktop\QQ截图20191104145549_副本.bmp",0*/
/* (25 X 28 )*/
 
};
 
const unsigned char  Hzk16[][32]={
 
 
{0x40,0x40,0x42,0xCE,0xCC,0x50,0x5E,0xCE,0xC8,0x7F,0xFF,0xC8,0x48,0x48,0x40,0x00,
0x00,0x40,0x60,0x3F,0x3F,0x70,0x5C,0x4F,0x43,0x40,0x4F,0x5F,0x50,0x5C,0x5C,0x40,},/*"选",0*/
/* (16 X 16 , 新宋体, 加粗 )*/
{0x10,0x10,0xFF,0xFF,0x10,0x82,0x86,0xCE,0x5A,0xF2,0xF2,0x5A,0xCE,0x86,0x80,0x80,
0x42,0xC2,0xFF,0x7F,0x01,0x10,0x12,0x12,0x12,0xFF,0xFF,0x12,0x12,0x12,0x10,0x00,},/*"择",1*/
/* (16 X 16 , 新宋体, 加粗 )*/
{0x08,0x08,0x08,0xF8,0xF8,0x08,0x08,0x18,0x10,0xFF,0xFF,0x10,0x10,0xF0,0xF0,0x00,
0x10,0x30,0x30,0x1F,0x1F,0x88,0xC8,0x78,0x3E,0x0F,0x41,0xC0,0xC0,0x7F,0x3F,0x00,},/*"功",2*/
/* (16 X 16 , 新宋体, 加粗 )*/
{0x08,0xCC,0xCE,0x4B,0x49,0x4A,0xCE,0xDC,0x18,0x7F,0xFF,0x88,0x8C,0x86,0xE2,0xE0,
0x00,0xFF,0xFF,0x12,0x52,0xD2,0xFF,0x7F,0x00,0x7E,0xFE,0x88,0x8C,0x86,0xE2,0xE0,},/*"能",3*/
/* (16 X 16 , 新宋体, 加粗 )*/

{0x10,0x60,0x02,0x8C,0x00,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,
0x04,0x04,0x7E,0x01,0x40,0x7E,0x42,0x42,0x7E,0x42,0x7E,0x42,0x42,0x7E,0x40,0xFF,},/*"温",0*/
/* (16 X 16 , 新宋体 )*/
{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,},/*"度",1*/
/* (16 X 16 , 新宋体 )*/
 
 {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,},/*"时",0*/
/* (16 X 16 , 新宋体 )*/
{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,},/*"间",1*/

{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,},/*"分",2*/
/* (16 X 16 , 新宋体 )*/
{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,},/*"钟",3*/
/* (16 X 16 , 新宋体 )*/
{0x80,0x70,0x00,0xFF,0x10,0x08,0x00,0xF8,0x89,0x8E,0x88,0x88,0x88,0xF8,0x00,0x00,
0x80,0x60,0x18,0x07,0x88,0x50,0x30,0x0F,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,},/*"炉",0*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x60,0x02,0x8C,0x00,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,
0x04,0x04,0x7E,0x01,0x40,0x7E,0x42,0x42,0x7E,0x42,0x7E,0x42,0x42,0x7E,0x40,0x00,},/*"温",1*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x10,0x94,0x94,0xD4,0x54,0x5F,0x74,0x54,0x54,0x58,0xD4,0x12,0x10,0x10,0x00,
0x81,0x61,0x00,0x00,0x2F,0xC9,0x09,0x09,0x29,0xC9,0x09,0x0F,0x20,0xC0,0x00,0x00,},/*"煮",12*/
/* (16 X 16 , 新宋体 )*/
{0x04,0x04,0x04,0x04,0x9F,0x44,0x24,0x94,0x24,0x44,0x9F,0x04,0x04,0x04,0x04,0x00,
0x02,0x02,0x21,0x13,0x0A,0x42,0x82,0x7F,0x02,0x02,0x0A,0x13,0x21,0x02,0x02,0x00,},/*"茶",13*/
/* (16 X 16 , 新宋体 )*/
 

{0xF0,0x00,0xFF,0x20,0x10,0x00,0x88,0x88,0x4F,0x58,0x24,0x54,0x84,0xE4,0x00,0x00,
0x80,0x70,0x0F,0x10,0x20,0x82,0x42,0x32,0x0E,0x02,0x02,0x3E,0x42,0x42,0x72,0x00,},/*"烧",0*/
/* (16 X 16 , 新宋体 )*/
{0x00,0x20,0x20,0x20,0xA0,0x60,0x00,0xFF,0x60,0x80,0x40,0x20,0x18,0x00,0x00,0x00,
0x20,0x10,0x08,0x06,0x01,0x40,0x80,0x7F,0x00,0x01,0x02,0x04,0x08,0x10,0x10,0x00,},/*"水",1*/
/* (16 X 16 , 新宋体 )*/
{0x00,0x80,0x60,0xF8,0x07,0x00,0x3E,0x22,0x22,0xE2,0x22,0x22,0x3E,0x00,0x00,0x00,
0x01,0x00,0x00,0xFF,0x20,0x11,0x09,0x05,0x03,0xFF,0x03,0x05,0x09,0x11,0x20,0x00,},/*"保",2*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x60,0x02,0x8C,0x00,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,
0x04,0x04,0x7E,0x01,0x40,0x7E,0x42,0x42,0x7E,0x42,0x7E,0x42,0x42,0x7E,0x40,0x00,},/*"温",3*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x10,0x94,0x94,0xD4,0x54,0x5F,0x74,0x54,0x54,0x58,0xD4,0x12,0x10,0x10,0x00,
0x81,0x61,0x00,0x00,0x2F,0xC9,0x09,0x09,0x29,0xC9,0x09,0x0F,0x20,0xC0,0x00,0x00,},/*"煮",4*/
/* (16 X 16 , 新宋体 )*/
{0x04,0x04,0x04,0x04,0x9F,0x44,0x24,0x94,0x24,0x44,0x9F,0x04,0x04,0x04,0x04,0x00,
0x02,0x02,0x21,0x13,0x0A,0x42,0x82,0x7F,0x02,0x02,0x0A,0x13,0x21,0x02,0x02,0x00,},/*"茶",5*/
/* (16 X 16 , 新宋体 )*/
{0x02,0x02,0x82,0xBA,0xAA,0xAA,0xAA,0xAB,0xAA,0xAA,0xAA,0xBA,0x02,0x02,0x02,0x00,
0x80,0x60,0x00,0x00,0x20,0xC8,0x10,0x0E,0x22,0xC1,0x01,0x00,0x20,0xC0,0x00,0x00,},/*"烹",6*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x10,0x94,0x94,0xD4,0x54,0x5F,0x74,0x54,0x54,0x58,0xD4,0x12,0x10,0x10,0x00,
0x81,0x61,0x00,0x00,0x2F,0xC9,0x09,0x09,0x29,0xC9,0x09,0x0F,0x20,0xC0,0x00,0x00,},/*"煮",7*/
/* (16 X 16 , 新宋体 )*/
{0x42,0x4A,0xD2,0x6A,0x46,0xC0,0x00,0xF2,0x12,0x1A,0xD6,0x12,0x12,0xF2,0x02,0x00,
0x40,0x80,0x7F,0x00,0x01,0x00,0x80,0x4F,0x20,0x18,0x07,0x10,0x20,0x4F,0x80,0x00,},/*"预",8*/
/* (16 X 16 , 新宋体 )*/
{0x20,0x30,0xAC,0x63,0x20,0x18,0x20,0x90,0x0C,0x0B,0x08,0x08,0x08,0xF8,0x00,0x00,
0x22,0x67,0x22,0x12,0x12,0x12,0x00,0x00,0x01,0x06,0x40,0x80,0x40,0x3F,0x00,0x00,},/*"约",9*/
/* (16 X 16 , 新宋体 )*/
{0x20,0x30,0xAC,0x63,0x10,0x00,0xFE,0x48,0x50,0x40,0xFF,0x40,0x50,0x48,0x00,0x00,
0x22,0x67,0x22,0x12,0x12,0x00,0x7F,0x44,0x42,0x41,0x7F,0x41,0x42,0x44,0x40,0x00,},/*"继",0*/
/* (16 X 16 , 新宋体 )*/
{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,},/*"续",1*/
/* (16 X 16 , 新宋体 )*/
{0x02,0x02,0xFE,0x92,0x92,0x92,0xFE,0x02,0x06,0xFC,0x04,0x04,0x04,0xFC,0x00,0x00,
0x08,0x18,0x0F,0x08,0x08,0x04,0xFF,0x04,0x84,0x40,0x27,0x18,0x27,0x40,0x80,0x00,},/*"取",2*/
/* (16 X 16 , 新宋体 )*/
{0x10,0x60,0x02,0x0C,0xC0,0x00,0xE2,0x2C,0x20,0x3F,0x20,0x28,0xE6,0x00,0x00,0x00,
0x04,0x04,0x7C,0x03,0x00,0x00,0xFF,0x09,0x09,0x09,0x49,0x89,0x7F,0x00,0x00,0x00,},/*"消",3*/
/* (16 X 16 , 新宋体 )*/
 
 
 
 

 
 
};

const unsigned char  Hzk24[][72]={
 /*烧(0) 水(1) 保(2) 温(3) 煮(4) 茶(5) 烹(6) 煮(7) 预(8) 约(9) 烧(10) 水(11)*/
{0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0x80,0xC0,0xC0,0xC0,0x44,0x7C,0xFC,0xE4,0x40,
0x40,0x60,0xA0,0xA0,0x30,0x30,0x00,0x00,0x00,0x08,0x0E,0x0E,0xE0,0xFF,0xFF,0x03,
0x01,0xA0,0xB0,0x90,0x98,0x89,0x8F,0x87,0x8E,0x9B,0xF9,0x79,0x50,0x1F,0x1F,0x00,
0x00,0x40,0x60,0x3C,0x1F,0x07,0x01,0x47,0x4E,0x6E,0x30,0x1F,0x0F,0x01,0x00,0x3F,
0x3F,0x60,0x60,0x60,0x60,0x78,0x38,0x20,},/*"烧",0*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0xFC,0x00,0x00,
0x00,0x00,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x02,0x02,0x02,0x82,0xE2,0xFE,
0x3F,0x0F,0x00,0xFF,0xFF,0xFF,0x1F,0x7C,0xE6,0xC3,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x20,0x30,0x18,0x0E,0x07,0x03,0x00,0x20,0x20,0x60,0x7F,0x7F,0x1F,0x00,0x00,
0x01,0x03,0x07,0x0E,0x1C,0x1C,0x08,0x08,},/*"水",1*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x00,0x80,0xE0,0xFC,0x3C,0x0C,0x00,0xF8,0xF8,0x08,0x08,0x08,0x08,
0x08,0x08,0x08,0xFC,0xFC,0x08,0x00,0x00,0x00,0x10,0x18,0x0E,0x07,0xFF,0xFF,0x20,
0x20,0x20,0x27,0x27,0xA2,0xE2,0xFE,0xFE,0xE2,0xE2,0x22,0x23,0x23,0x30,0x30,0x20,
0x00,0x00,0x00,0x00,0x00,0x7F,0x7F,0x20,0x20,0x38,0x1C,0x0E,0x07,0x01,0x7F,0x7F,
0x70,0x01,0x07,0x0E,0x1C,0x18,0x10,0x10,},/*"保",2*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x04,0x0C,0x38,0xB8,0xC0,0x40,0xF8,0xF8,0x88,0x88,0x88,0x88,0x88,
0x88,0x88,0xF8,0xF8,0x08,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x86,0xF8,0x7F,0x27,
0xE0,0xCF,0x4F,0x48,0xC8,0xC8,0x48,0xC8,0xC8,0x48,0x4F,0xEF,0xE0,0x40,0x00,0x00,
0x00,0x01,0x01,0x3F,0x3F,0x7F,0x40,0x40,0x7F,0x7F,0x40,0x40,0x7F,0x7F,0x40,0x7F,
0x7F,0x40,0x40,0x7F,0x7F,0x60,0x20,0x20,},/*"温",3*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x20,0x20,0x22,0xFE,0xFC,0x20,0xB0,0xF0,
0x60,0x30,0x38,0x98,0x80,0x80,0x00,0x00,0x00,0x00,0x40,0x41,0x61,0x21,0x31,0xFD,
0xFD,0xFD,0x45,0x4F,0x4B,0x4B,0x49,0x49,0x49,0xFD,0xFD,0x01,0x01,0x01,0x01,0x00,
0x00,0x00,0x40,0x60,0x78,0x38,0x00,0x07,0x0F,0x7B,0x72,0x22,0x02,0x0A,0x1A,0x7A,
0x72,0x03,0x07,0x0C,0x38,0x70,0x70,0x00,},/*"煮",4*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0xFC,0xFC,0x94,0xD0,0xD0,0xD0,0x10,0x7C,
0x7C,0x10,0x10,0x10,0x18,0x18,0x10,0x00,0x00,0x00,0x40,0x60,0x60,0x70,0x58,0x48,
0x4C,0x46,0x43,0xF9,0xF8,0xF1,0x43,0x46,0x4C,0x6C,0x78,0x58,0x30,0x30,0x10,0x10,
0x00,0x00,0x00,0x20,0x30,0x18,0x0C,0x07,0x07,0x22,0x60,0x7F,0x7F,0x3F,0x01,0x03,
0x02,0x06,0x1C,0x38,0x38,0x00,0x00,0x00,},/*"茶",5*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x10,0x10,0x10,0x10,0xD0,0xD0,0x50,0x50,0x52,0x5E,0x5C,0x5C,0x50,0x50,
0x50,0xD0,0xD0,0x10,0x18,0x18,0x10,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x17,0x17,
0x12,0x12,0x12,0xD2,0xD2,0xD2,0x72,0x32,0x32,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x40,0x60,0x78,0x38,0x00,0x00,0x3A,0x7A,0x66,0x07,0x07,0x1B,0x78,0x70,
0x00,0x00,0x08,0x38,0x70,0x60,0x00,0x00,},/*"烹",6*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x20,0x20,0x22,0xFE,0xFC,0x20,0xB0,0xF0,
0x60,0x30,0x38,0x98,0x80,0x80,0x00,0x00,0x00,0x00,0x40,0x41,0x61,0x21,0x31,0xFD,
0xFD,0xFD,0x45,0x4F,0x4B,0x4B,0x49,0x49,0x49,0xFD,0xFD,0x01,0x01,0x01,0x01,0x00,
0x00,0x00,0x40,0x60,0x78,0x38,0x00,0x07,0x0F,0x7B,0x72,0x22,0x02,0x0A,0x1A,0x7A,
0x72,0x03,0x07,0x0C,0x38,0x70,0x70,0x00,},/*"煮",7*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x08,0x08,0x48,0x48,0xC8,0xE8,0x38,0x1C,0x0C,0x08,0x88,0x88,0x88,0xE8,
0xF8,0x98,0x88,0x88,0xCC,0xC4,0x84,0x00,0x00,0x00,0x04,0x04,0x04,0x04,0xFF,0xFF,
0x15,0x1C,0x0E,0x06,0xFF,0xFF,0xFF,0x00,0xFE,0xFE,0x04,0x00,0xFF,0xFF,0x00,0x00,
0x00,0x00,0x00,0x00,0x20,0x60,0x7F,0x3F,0x00,0x00,0x40,0x40,0x63,0x33,0x39,0x1E,
0x0F,0x03,0x06,0x0C,0x19,0x79,0x70,0x20,},/*"预",8*/
/* (24 X 24 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0x00,0xE0,0xFC,0x3C,0x0C,0x80,0xC0,0xC0,0x00,0xC0,0xF0,0xFC,0x9C,
0x80,0x80,0x80,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x0E,0x8F,0xE5,0xF4,0xBC,0x8E,
0x87,0x8B,0x8C,0x06,0x0B,0x19,0x70,0xF0,0xE0,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,
0x00,0x00,0x31,0x31,0x31,0x11,0x18,0x08,0x08,0x08,0x0C,0x04,0x00,0x00,0x10,0x10,
0x10,0x30,0x70,0x78,0x3F,0x1F,0x00,0x00,},/*"约",9*/
/* (24 X 24 , 新宋体, 加粗 )*/

 
 
};

const unsigned char  NUMZK[][16]={
{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,},/*"0",0*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,},/*"1",1*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,},/*"2",2*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,},/*"3",3*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,},/*"4",4*/
/* (8 X 16 , 新宋体 )*/
{0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,},/*"5",5*/
/* (8 X 16 , 新宋体 )*/
{0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,},/*"6",6*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,},/*"7",7*/
/* (8 X 16 , 新宋体 )*/
{0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,},/*"8",8*/
/* (8 X 16 , 新宋体 )*/
{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,},/*"9",9*/
/* (8 X 16 , 新宋体 )*/
 
 
{0x00,0x1C,0xF0,0x08,0x08,0x08,0x30,0x00,0x00,0x00,0x0F,0x10,0x20,0x30,0x10,0x00,},/*"℃",0*/
 
 
 
};
const unsigned char Hzk20[][60]={
 
{0x00,0x00,0xC0,0xC0,0xFE,0xFE,0x60,0x20,0x20,0x20,0x3E,0x7E,0xF2,0x90,0xD0,0x70,
0x78,0x88,0x88,0x00,0x00,0x02,0x03,0xE1,0xFF,0x3F,0xE0,0xF4,0x14,0xF6,0xF2,0x13,
0x11,0xF1,0xF3,0x1A,0x0A,0x8B,0x83,0x00,0x00,0x02,0x03,0x01,0x00,0x04,0x04,0x06,
0x03,0x01,0x00,0x00,0x00,0x03,0x03,0x02,0x02,0x02,0x03,0x03,},/*"烧",0*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0xC0,0xC0,0xFE,0xFE,0xF2,0x80,0x80,0xC0,0x60,
0x30,0x30,0x00,0x00,0x00,0x00,0x80,0xC0,0x70,0x3C,0x1F,0x07,0x00,0xFF,0xFF,0x01,
0x07,0x1F,0x38,0xF0,0xE0,0xC0,0x80,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x02,
0x06,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,},/*"水",1*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0xC0,0xF0,0xFE,0x0E,0x02,0xFC,0xFC,0x84,0x84,0x84,0x84,0x84,0x84,
0xFC,0xFC,0x00,0x00,0x00,0x02,0x03,0x01,0xFF,0xFF,0x04,0x04,0x85,0xC5,0x74,0x3C,
0xFF,0xFF,0x3C,0x74,0xC4,0x84,0x04,0x04,0x00,0x00,0x00,0x00,0x07,0x07,0x06,0x03,
0x01,0x00,0x00,0x00,0x07,0x07,0x00,0x00,0x00,0x01,0x01,0x01,},/*"保",2*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x40,0xC0,0xC4,0x0C,0xFC,0xF0,0x00,0xFC,0xFC,0x24,0x24,0x24,0x24,0x24,0xFC,
0xFC,0x00,0x00,0x00,0x00,0x20,0x20,0xF0,0xFF,0x0F,0xF8,0xF8,0x0B,0x0B,0xF9,0xF9,
0x09,0xF9,0xF9,0x0B,0xFB,0xF8,0x00,0x00,0x00,0x00,0x03,0x03,0x03,0x02,0x03,0x03,
0x02,0x02,0x03,0x03,0x02,0x03,0x03,0x02,0x03,0x03,0x02,0x02,},/*"温",3*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x40,0x40,0x48,0x48,0x48,0x48,0x48,0xFE,0xFE,0x48,0x68,0x78,0x58,0x4C,
0x64,0x60,0x40,0x00,0x00,0x08,0x08,0x08,0x0C,0x04,0x7F,0xFF,0xA9,0x29,0x29,0xA9,
0xA9,0x29,0x7F,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x06,0x07,0x03,0x00,0x00,0x01,
0x03,0x03,0x00,0x00,0x03,0x03,0x00,0x00,0x01,0x07,0x07,0x00,},/*"煮",4*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x08,0x08,0x08,0x08,0x3E,0xBE,0xFE,0x78,0x78,0xC8,0xBE,0xBE,0x0A,0x08,
0x08,0x0C,0x0C,0x08,0x00,0x08,0x08,0x0C,0x94,0xD6,0xF3,0x71,0x10,0xFE,0xFE,0xFE,
0x30,0x71,0xDF,0xCE,0x8E,0x06,0x04,0x00,0x00,0x00,0x02,0x03,0x01,0x00,0x00,0x00,
0x02,0x07,0x07,0x01,0x00,0x00,0x00,0x01,0x03,0x03,0x00,0x00,},/*"茶",5*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x08,0x08,0x08,0xE8,0xE8,0xA8,0xA8,0xAE,0xAE,0xA8,0xA8,0xA8,0xF8,0xF8,
0x08,0x0C,0x04,0x00,0x00,0x00,0x00,0x02,0x03,0x03,0x82,0xC2,0x42,0x7A,0x7A,0x0A,
0x0E,0x07,0x07,0x82,0x80,0x00,0x00,0x00,0x00,0x00,0x06,0x07,0x03,0x00,0x00,0x07,
0x07,0x00,0x00,0x01,0x03,0x02,0x00,0x00,0x03,0x03,0x02,0x00,},/*"烹",6*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x40,0x40,0x48,0x48,0x48,0x48,0x48,0xFE,0xFE,0x48,0x68,0x78,0x58,0x4C,
0x64,0x60,0x40,0x00,0x00,0x08,0x08,0x08,0x0C,0x04,0x7F,0xFF,0xA9,0x29,0x29,0xA9,
0xA9,0x29,0x7F,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x06,0x07,0x03,0x00,0x00,0x01,
0x03,0x03,0x00,0x00,0x03,0x03,0x00,0x00,0x01,0x07,0x07,0x00,},/*"煮",7*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x00,0xE0,0xE0,0x20,0x20,0x20,0x20,0xFE,0xFE,0x22,0x20,0x20,0x20,0x20,
0xF0,0xF0,0x20,0x00,0x00,0x00,0x00,0x0F,0x0F,0x08,0x08,0x08,0x08,0xFF,0xFF,0x08,
0x08,0x08,0x08,0x08,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,},/*"中",8*/
/* (20 X 20 , 新宋体, 加粗 )*/
{0x00,0x00,0x04,0x14,0x34,0x74,0x7C,0x0E,0x86,0x84,0xE4,0xE4,0x34,0xBC,0xAC,0x24,
0x24,0xE6,0xE2,0x00,0x00,0x00,0x01,0x01,0x01,0xFF,0xFF,0x03,0x03,0x01,0x3F,0x3F,
0x80,0xFF,0x7F,0xC1,0x80,0xBF,0x3F,0x00,0x00,0x00,0x00,0x02,0x02,0x03,0x03,0x00,
0x04,0x04,0x06,0x03,0x01,0x01,0x00,0x00,0x00,0x03,0x03,0x03,},/*"预",0*/
{0x00,0x00,0xC0,0xE0,0x3C,0x1C,0x84,0xE0,0x60,0xA0,0xE0,0x7C,0x3E,0x26,0x20,0x20,
0x20,0xE0,0xE0,0x00,0x00,0x00,0x31,0x39,0x3D,0x17,0x93,0x90,0x99,0x09,0x00,0x06,
0x1E,0x1C,0x00,0x00,0xFC,0xFF,0x3F,0x00,0x00,0x00,0x03,0x03,0x01,0x01,0x01,0x00,
0x00,0x00,0x00,0x00,0x01,0x03,0x02,0x02,0x03,0x03,0x00,0x00,}/*"约",1*/

 
 
};
const unsigned char Hzk12[][24]={
 
{0xFE,0x22,0x22,0xFE,0x00,0x08,0x48,0x88,0x08,0xFF,0x08,0x00,0x07,0x02,0x02,0x07,
0x00,0x00,0x00,0x09,0x08,0x0F,0x00,0x00,},/*"时",0*/
/* (12 X 12 , 新宋体 )*/
{0x00,0xF9,0x02,0xF8,0x49,0x49,0x49,0x49,0xF9,0x01,0xFF,0x00,0x00,0x0F,0x00,0x03,
0x02,0x02,0x02,0x02,0x0B,0x08,0x0F,0x00,},/*"间",1*/
/* (12 X 12 , 新宋体 )*/

{0x00,0x00,0x10,0x10,0x00,0x00,0x00,0x00,0x02,0x02,0x00,0x00,},/*":",2*/
 
{0x20,0x10,0x2C,0x23,0xE0,0x20,0x20,0x23,0xEC,0x10,0x20,0x00,0x00,0x08,0x04,0x03,
0x00,0x08,0x08,0x08,0x07,0x00,0x00,0x00,},/*"分",3*/
/* (12 X 12 , 新宋体 )*/
{0x88,0x97,0xF4,0x94,0x94,0x00,0xF8,0x88,0xFF,0x88,0xF8,0x00,0x00,0x00,0x0F,0x04,
0x02,0x00,0x01,0x00,0x0F,0x00,0x01,0x00,},/*"钟",4*/
/* (12 X 12 , 新宋体 )*/

{0x78,0x00,0xFF,0x08,0x04,0xFC,0x44,0x45,0x46,0x44,0xFC,0x00,0x08,0x06,0x01,0x06,
0x08,0x07,0x00,0x00,0x00,0x00,0x00,0x00,},/*"炉",0*/
/* (12 X 12 , 新宋体 )*/
{0x22,0x44,0x00,0xC0,0x5F,0xD5,0x55,0xD5,0x5F,0xC0,0x00,0x00,0x04,0x02,0x09,0x0F,
0x08,0x0F,0x08,0x0F,0x08,0x0F,0x08,0x00,},/*"温",1*/
/* (12 X 12 , 新宋体 )*/
{0x02,0x05,0x02,0xF8,0x04,0x02,0x02,0x02,0x04,0x0E,0x80,0x00,0x00,0x00,0x00,0x00,
0x01,0x02,0x02,0x02,0x02,0x01,0x00,0x00,},/*"℃",0*/
{0x00,0x78,0x00,0xFF,0x08,0x84,0xA4,0xAF,0x92,0xAA,0xA2,0xB8,0x00,0x08,0x06,0x01,
0x06,0x08,0x04,0x03,0x00,0x07,0x08,0x0C},/*"烧",0*/
{0x00,0x08,0x88,0x78,0x00,0xFF,0x18,0x60,0x90,0x08,0x04,0x00,0x04,0x02,0x01,0x08,
0x08,0x0F,0x00,0x00,0x01,0x02,0x04,0x00,},/*"水",9*/

{0x00,0x20,0x10,0xFC,0x03,0x40,0x5E,0x52,0xF2,0x52,0x5E,0x40,0x00,0x00,0x00,0x0F,
0x00,0x04,0x02,0x01,0x0F,0x01,0x02,0x04},/*"保",0*/
{0x22,0x44,0x00,0xC0,0x5F,0xD5,0x55,0xD5,0x5F,0xC0,0x00,0x00,0x04,0x02,0x09,0x0F,
0x08,0x0F,0x08,0x0F,0x08,0x0F,0x08,0x00,},/*"温",11*/
{0x00,0x02,0x82,0xBA,0xAA,0xAA,0xAB,0xAA,0xAA,0xBA,0x02,0x02,0x00,0x08,0x04,0x00,
0x04,0x08,0x04,0x06,0x09,0x00,0x04,0x08},/*"烹",0*/
{0x48,0x48,0xEA,0xAA,0xBA,0xAF,0xAA,0xAC,0xAA,0xE8,0x08,0x00,0x08,0x04,0x03,0x06,
0x0A,0x02,0x06,0x0A,0x02,0x07,0x08,0x00,},/*"煮",13*/
 

 
};
 
const unsigned char Hzk12Num[][12]={
 /*
  0(0) 1(1) 2(2) 3(3) 4(4) 5(5) 6(6) 7(7) 8(8) 9(9)*/
{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00,},/*"0",0*/
/* (6 X 12 , 新宋体 )*/
{0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00,},/*"1",1*/
/* (6 X 12 , 新宋体 )*/
{0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00,},/*"2",2*/
/* (6 X 12 , 新宋体 )*/
{0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00,},/*"3",3*/
/* (6 X 12 , 新宋体 )*/
{0x40,0xB0,0x88,0xFC,0x80,0x00,0x00,0x00,0x00,0x03,0x02,0x00,},/*"4",4*/
/* (6 X 12 , 新宋体 )*/
{0x3C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00,},/*"5",5*/
/* (6 X 12 , 新宋体 )*/
{0xF8,0x24,0x24,0x2C,0xC0,0x00,0x01,0x02,0x02,0x02,0x01,0x00,},/*"6",6*/
/* (6 X 12 , 新宋体 )*/
{0x0C,0x04,0xE4,0x1C,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00,},/*"7",7*/
/* (6 X 12 , 新宋体 )*/
{0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00,},/*"8",8*/
/* (6 X 12 , 新宋体 )*/
{0x38,0x44,0x44,0x44,0xF8,0x00,0x00,0x03,0x02,0x02,0x01,0x00,},/*"9",9*/
/* (6 X 12 , 新宋体 )*/
 
{0x00,0xE0,0x10,0x10,0x10,0xE0,0x00,0x07,0x08,0x08,0x08,0x07},/*"0",0*/
{0x00,0x00,0x20,0xF0,0x00,0x00,0x00,0x00,0x08,0x0F,0x08,0x00},/*"1",1*/
{0x00,0x60,0x10,0x10,0x90,0x60,0x00,0x0C,0x0A,0x09,0x08,0x08},/*"2",2*/
{0x00,0x20,0x10,0x90,0x90,0x60,0x00,0x04,0x08,0x08,0x08,0x07},/*"3",3*/
{0x00,0x00,0xC0,0x20,0xF0,0x00,0x00,0x01,0x02,0x02,0x0F,0x0A},/*"4",4*/
{0x00,0xF0,0x90,0x90,0x90,0x10,0x00,0x04,0x08,0x08,0x08,0x07},/*"5",5*/
{0x00,0xE0,0x90,0x90,0xB0,0x00,0x00,0x07,0x08,0x08,0x08,0x07},/*"6",6*/
{0x00,0x30,0x10,0x90,0x70,0x10,0x00,0x00,0x00,0x0F,0x00,0x00},/*"7",7*/
{0x00,0x60,0x90,0x90,0x90,0x60,0x00,0x07,0x08,0x08,0x08,0x07},/*"8",8*/
{0x00,0xE0,0x10,0x10,0x10,0xE0,0x00,0x00,0x0D,0x09,0x09,0x07},/*"9",9*/
 
 
 
 
 
 
};

const unsigned char Hzk24char[][36]={
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,
0x10,0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,
0x10,0x18,0x06,0x00,},/*"E",0*/
/* (12 X 24 , 宋体 )*/

{0x00,0x00,0x80,0xC0,0xE0,0x60,0x20,0x60,0xE0,0xC0,0x80,0x00,0x00,0xFE,0xFF,0xFF,
0x01,0x00,0x00,0x00,0x01,0xFF,0xFF,0xFE,0x00,0x01,0x07,0x0F,0x1E,0x18,0x10,0x18,
0x1E,0x0F,0x07,0x01,},/*"0",0*/
 
{0x00,0x00,0x80,0x80,0x80,0xC0,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x1F,
0x10,0x10,0x10,0x00,},/*"1",0*/
{0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x60,0xE0,0xC0,0x80,0x00,0x00,0x03,0x03,0x03,
0x80,0xC0,0x60,0x38,0x3F,0x1F,0x07,0x00,0x00,0x1C,0x1E,0x1B,0x19,0x18,0x18,0x18,
0x18,0x1F,0x1F,0x00,},/*"2",1*/
{0x00,0x80,0xC0,0xE0,0x20,0x20,0x60,0xE0,0xC0,0x80,0x00,0x00,0x00,0x03,0x03,0x03,
0x10,0x10,0x18,0x3F,0xEF,0xE7,0x80,0x00,0x00,0x07,0x0F,0x1F,0x10,0x10,0x10,0x18,
0x1F,0x0F,0x07,0x00,},/*"3",2*/
{0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0xF0,0x00,0x00,0x00,0xC0,0xF0,0xB8,
0x8E,0x87,0x81,0xFF,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,
0x1F,0x1F,0x10,0x10,},/*"4",3*/
{0x00,0x00,0xE0,0xE0,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x3F,0x3F,
0x18,0x08,0x08,0x18,0xF8,0xF0,0xE0,0x00,0x00,0x07,0x0F,0x1B,0x10,0x10,0x10,0x1C,
0x1F,0x0F,0x03,0x00,},/*"5",4*/
{0x00,0x00,0x80,0xC0,0xC0,0x60,0x20,0x20,0xE0,0xE0,0xC0,0x00,0x00,0xFC,0xFF,0xFF,
0x31,0x18,0x08,0x08,0x18,0xF8,0xF0,0xE0,0x00,0x01,0x07,0x0F,0x1C,0x18,0x10,0x10,
0x18,0x0F,0x0F,0x03,},/*"6",5*/
{0x00,0x00,0xC0,0xE0,0xE0,0x60,0x60,0x60,0x60,0xE0,0xE0,0x60,0x00,0x00,0x03,0x03,
0x00,0x00,0xE0,0xF8,0x1F,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x1F,
0x00,0x00,0x00,0x00,},/*"7",6*/
{0x00,0x80,0xC0,0xE0,0x60,0x20,0x20,0x20,0x60,0xE0,0xC0,0x80,0x00,0x87,0xEF,0xEF,
0x3C,0x18,0x38,0x30,0x78,0xEF,0xCF,0x83,0x00,0x07,0x0F,0x0F,0x18,0x10,0x10,0x10,
0x18,0x1F,0x0F,0x07,},/*"8",7*/
{0x00,0x00,0xC0,0xC0,0xE0,0x20,0x20,0x20,0xE0,0xC0,0x80,0x00,0x00,0x1F,0x3F,0x7F,
0x60,0x40,0x40,0x60,0x30,0xFF,0xFF,0xFE,0x00,0x00,0x0C,0x1C,0x1C,0x10,0x10,0x18,
0x0F,0x0F,0x03,0x00,},/*"9",8*/
 

};
 
 
extern void OLED_ShowCHinese16(unsigned char  x,unsigned char y,unsigned char no);
extern void OLED_ShowCHinese24(unsigned char  x,unsigned char y,unsigned char no);
extern void  LCD_CLS();
extern void  OLED_ShowNUM(unsigned char x,unsigned char y,unsigned char CD,unsigned int NUM);
extern void OLED_SHOWWENDU(unsigned char x,unsigned char y,unsigned char ONOFF);
extern void  OLED_ShowTimeNUM(unsigned char x,unsigned char y ,unsigned char NUM);
extern void OLED_ShowCHinese20(unsigned char  x,unsigned char y,unsigned char no);
extern void Draw_BMP(unsigned char x0,unsigned char y0,unsigned char x1, unsigned char y1,unsigned char BMP_NUMBER);
extern void OLED_ShowCHinese12(unsigned char  x,unsigned char y,unsigned char no);
extern void OLED_ShowCHinese12Dot(unsigned char  x,unsigned char y);
extern void  OLED_Show12NUM(unsigned char x,unsigned char y,unsigned char CD,unsigned char NEED_JUMP_ZERO,unsigned int NUM);
extern void CLR_LAST_LINE_16();
extern void OLED_Show12x16(unsigned  char x,unsigned  char y,unsigned  char no);
#endif

 文件打包下载地址:OLED.rar

评论 0

挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
提交评论

清空信息
关闭评论