1. 程式人生 > >用12864液晶作了一個萬年曆

用12864液晶作了一個萬年曆

 

  /**************************************************************************
* 文 件 名:test.c

**************************************************************************/
/****************************檔案包含*************************************/
#include < reg52.h >
#include < led5.h >
#include < led1.h >
#include < led4.h >
#include < led7.h>
#include < led6.h >
#include < led2.h >

/*****************************預定義**************************************/
#define uchar unsigned char
#define uint unsigned int
/****************************************************************************/
sbit bell = P2 ^ 0; //定義蜂鳴器埠
sbit in = P2 ^ 7;  //定義紅外檢測埠
/*****************************************************************************
* 名稱: Timer0_Service() inturrupt 1
* 功能: 中斷服務程式 整點報時 3聲嘟嘟的聲音
* 入口引數:
* 出口引數:
*****************************************************************************/
void Timer0_Service() interrupt 1
{
   static uchar count = 0;
   static uchar flag = 0; //記錄鳴叫的次數
   count = 0;
   TR0 = 0;      //關閉Timer0
   TH0 = 0x3c;
   TL0 = 0XB0;   //延時 50 ms
   TR0 = 1 ;     //啟動Timer0
   count ++;
   if( count == 100 ) //鳴叫 1 秒
   {
      bell = ~ bell;
      count = 0;
      flag ++;
   }
   if( flag == 6 )
   {
      flag = 0;
      TR0 = 0;   //關閉Timer0
   }

}
/*****************************************************************************
* 名稱: Timer2_Servie() interrupt 5
* 功能: 中斷服務程式  整點報時 一分鐘
* 入口引數:
* 出口引數:
*****************************************************************************/
void Timer3_Service() interrupt 5
{
   static uchar count;
   TF2 = 0; //軟體清除中斷標誌
   count ++;
   if( in == 1 )
   {
      count = 0; //計算清0
      TR2 = 0; //關閉Timer2
      bell = 1; //關閉蜂鳴器
   }
   if( count == 120 ) // 一分鐘後 關閉報警
   {
      count = 0; //計算清0
      TR2 = 0; //關閉Timer2
      bell = 1; //關閉蜂鳴器
   }
}
/******************************************************************************
* 函式名稱:main()
* 功    能:
* 入口引數:
* 出口引數:
********************************************************************************/
void main( void )
{
              
    uchar clock_time[7] = { 0x00, 0x30, 0x08, 0x10, 0x01,0x09  };        //定義時間變數 秒  分 時 日 月 年
    uchar alarm_time[2] = { 0, 0}; //鬧鐘設定  alarm_time[0]: 分鐘  alarm_time[1] :小時
 uchar temperature[2];  //定義溫度變數   temperature[0]  低8位   temperature[1]  高8位
    Lcd_Initial();     //LCD初始化
 Clock_Initial( clock_time ); //時鐘初試化
   
 /***********************中斷初始化***************************/
    EA = 1; //開總中斷
    ET0 = 1;  //Timer0 開中斷
 ET2 = 1; //Timer2 開中斷
    TMOD = 0x01 ; //Timer0 工作方式 1
 RCAP2H = 0x3c;
    RCAP2L = 0xb0; //Timer2 延時 50 ms

    while( 1 )
 {
    switch( Key_Scan() )
       {
          case up_array: 
                 {
                          Key_Idle();
                       }
                 break;    
          case down_array:  
                   {
          Key_Idle();
       }
                   break;                 
    case clear_array:  
                    {   
           Key_Idle();
           }
        break;
    case function_array:{
                                 Key_Function( clock_time, alarm_time );
                        }
    case null:     
             {
          Clock_Fresh( clock_time ); //時間重新整理
                Lcd_Clock( clock_time );   //時間顯示
       //Delay(1000)
                     // Lcd_Clock( uchar temp)
                      Sensor_Fresh( temperature ); //溫度更新
      // Lcd_Temperture( temperature ); //溫度顯示
              //  ershi(clock_time);

       Ershi( clock_time );
                      Calendar_Convert( 0 , clock_time );//呼叫陰曆轉換顯示子程式
       Week_Convert( 0, clock_time );

       //整點報時
       if( ( * clock_time == 0x59 ) && ( * ( clock_time + 1 ) == 0x59 ) )
       {
          bell = 0;
       TR2 = 1; //啟動Timer2
       }
                      //鬧鐘報警
                      if( * alarm_time == * ( clock_time + 1 ) ) //分鐘相吻合
          if( * ( alarm_time + 1 ) == *( clock_time + 2 ) ) //小時相吻合
       {
          bell = 0;
       TR2 = 1; //啟動Timer2
       }
                   }
        break;
         }
 }
}

    // (led1.h)

       #ifndef _LCD_12864
#define _LCD_12864
/*****************************預定義**************************************/
#define uchar unsigned char
#define uint unsigned int      /***************************12864管腳配置****************************/
#define port P1
sbit  rs=P3^0;
sbit  rw=P3^1;
sbit   e=P3^2;
sbit cs1=P3^6;
sbit cs2=P3^7;

uchar code ershi_logo[27][32] =
{
/*--  文字:  小 0 --*/ 
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0x00,0x80,0x60,0x00,0xFF,0x00,0x20,0x40,0x80,0x00,0x00,0x00,0x00,
0x00,0x08,0x04,0x02,0x01,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x01,0x06,0x00,0x00,

/*--  文字:  寒 1 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x10,0x0C,0x04,0x54,0x54,0xFC,0x55,0x56,0x54,0xFC,0x54,0x54,0x04,0x14,0x0C,0x00,
0x20,0x21,0x11,0x09,0x05,0x23,0x25,0x45,0x49,0x93,0x05,0x09,0x11,0x31,0x10,0x00,

/*--  文字:  大2  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x20,0x20,0x20,0x20,0x20,0x20,0xA0,0x7F,0xA0,0x20,0x20,0x20,0x20,0x30,0x20,0x00,
0x00,0x40,0x40,0x20,0x10,0x0C,0x03,0x00,0x01,0x06,0x08,0x10,0x20,0x60,0x20,0x00,
/*--  文字:  立 3 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
 0x00,0x10,0x10,0x90,0x10,0x10,0x11,0x16,      0x10,0x10,0x10,0xD0,0x18,0x10,0x00,0x00,
      0x40,0x40,0x40,0x40,0x43,0x5C,0x40,0x40,      0x50,0x4C,0x43,0x40,0x40,0x60,0x40,0x00,
/*--  文字:  春 4 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x20,0x22,0x2A,0x2A,0xAA,0x6A,0x3A,0x2F,      0x2A,0x6A,0xAA,0x2A,0x2A,0x22,0x20,0x00,
      0x04,0x04,0x02,0x01,0xFF,0x49,0x49,0x49,      0x49,0x49,0xFF,0x01,0x02,0x06,0x02,0x00,
 /*--  文字:  雨 5 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x02,0x02,0xF2,0x12,0x92,0x12,0x12,0xFE,      0x12,0x92,0x12,0x12,0xFA,0x13,0x02,0x00,
      0x00,0x00,0xFF,0x00,0x08,0x11,0x00,0x7F,      0x00,0x08,0x51,0x80,0x7F,0x00,0x00,0x00,

/*--  文字:  水 6 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x00,0x20,0x20,0x20,0x20,0xE0,0x00,0xFF,      0xC0,0x40,0x20,0x10,0x18,0x00,0x00,0x00,
      0x20,0x10,0x08,0x04,0x03,0x40,0x80,0x7F,      0x00,0x01,0x02,0x04,0x08,0x18,0x08,0x00,
/*--  文字:  驚 7 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x80,0x70,0x00,0xFF,0x10,0x24,0xE4,0x24,      0x25,0x26,0x24,0x24,0xF4,0x26,0x04,0x00,
      0x00,0x00,0x00,0xFF,0x00,0x20,0x13,0x4A,      0x82,0x7E,0x02,0x0A,0x13,0x30,0x00,0x00,


/*--  文字:  蟄 8 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x04,0x24,0xA4,0x24,0xFF,0x14,0x14,0x84,      0x94,0x7F,0x44,0x04,0xFE,0x04,0xC0,0x00,
      0x00,0x40,0x40,0x5F,0x52,0x52,0x52,0x7F,      0x52,0x52,0x52,0x5E,0x40,0xE1,0x01,0x00,

/*--  文字:  分 9 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x00,0x80,0x40,0x20,0x98,0x86,0x80,0x80,      0x83,0x8C,0x90,0x20,0xC0,0x80,0x80,0x00,
      0x01,0x00,0x80,0x40,0x20,0x1F,0x00,0x40,      0x80,0x40,0x3F,0x00,0x00,0x01,0x00,0x00,
/*--  文字:  清 10 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x10,0x22,0x64,0x0C,0xC0,0x44,0x54,0x54,       0x54,0x7F,0x54,0x54,0xD6,0x44,0x40,0x00,
      0x04,0x04,0xFE,0x01,0x00,0x00,0xFF,0x15,       0x15,0x15,0x55,0x95,0x7F,0x01,0x00,0x00, 

/*--  文字:  明11  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x00,0xFC,0x44,0x44,0x44,0xFE,0x04,0x00,       0xFE,0x22,0x22,0x22,0x22,0xFF,0x02,0x00,
      0x00,0x0F,0x04,0x04,0x04,0x8F,0x40,0x30,       0x0F,0x02,0x02,0x42,0x82,0x7F,0x00,0x00,
 /*--  文字: 谷12  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
      0x00,0x10,0x08,0x04,0x83,0x40,0x20,0x18,      0x20,0x41,0x82,0x86,0x0C,0x00,0x00,0x00,
      0x02,0x02,0x01,0xFD,0x44,0x44,0x44,0x44,      0x44,0x44,0x44,0xFC,0x01,0x03,0x01,0x00,
 /*--  文字: 夏13 --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x01,0x01,0xFD,0x55,0x55,0x57,0x55,      0x55,0x55,0x55,0xFD,0x01,0x01,0x00,0x00,
      0x00,0x20,0x90,0x89,0x87,0x4D,0x55,0x25,       0x25,0x55,0x4D,0x85,0x80,0x80,0x00,0x00,
 /*--  文字: 滿14  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x10,0x21,0x62,0x06,0x24,0x24,0x24,0xEF,        0x24,0x24,0xEF,0x24,0x34,0xA6,0x04,0x00,
      0x04,0x04,0xFE,0x01,0xFF,0x11,0x09,0x07,       0x09,0x09,0x07,0x49,0x91,0x7F,0x01,0x00,
 /*--  文字: 芒15  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x84,0x84,0x84,0x84,0x9F,0x84,0xA4,0xC4,       0x84,0x84,0x9F,0x84,0x84,0xC6,0x84,0x00,
      0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x40,      0x40,0x40,0x40,0x60,0x40,0x00,0x00,0x00,

 /*--  文字: 種16  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
  0x24,0x24,0xA4,0xFE,0xA3,0x22,0x20,0xF0,         0x10,0x10,0xFF,0x10,0x10,0xF8,0x10,0x00,
      0x08,0x06,0x01,0xFF,0x00,0x03,0x00,0x07,       0x02,0x02,0xFF,0x02,0x02,0x07,0x00,0x00,
 /*--  文字: 至17  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x02,0x42,0x62,0x52,0x4A,0x46,0xC2,       0x42,0x42,0x52,0x62,0xC3,0x02,0x00,0x00,
      0x40,0x40,0x44,0x44,0x44,0x44,0x44,0x7F,       0x44,0x44,0x44,0x46,0x44,0x60,0x40,0x00,
 /*--  文字: 暑18  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x40,0x5F,0x55,0x55,0xF5,0x55,       0xD5,0x55,0x75,0x5F,0x10,0x88,0x00,0x00,
      0x11,0x11,0x09,0x09,0xFD,0x57,0x55,0x55,       0x55,0x55,0x55,0x55,0xFF,0x05,0x01,0x00,
 /*--  文字: 秋19  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x24,0x24,0xA4,0xFE,0x23,0x22,0x80,0x70,        0x00,0xFF,0x00,0x40,0x20,0x30,0x00,0x00,
      0x08,0x06,0x01,0xFF,0x81,0x42,0x20,0x18,       0x06,0x01,0x06,0x08,0x30,0x60,0x20,0x00,
 /*--  文字: 處20  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0xE0,0x1E,0x10,0x10,0xF0,0x00,      0x00,0xFF,0x20,0x40,0x80,0x80,0x00,0x00,
      0x82,0x41,0x20,0x1B,0x04,0x1B,0x20,0x40,       0x40,0x5F,0x40,0x40,0x40,0x61,0x20,0x00,
 /*--  文字: 白21  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
 0x00,0x00,0xF8,0x08,0x0C,0x0A,0x09,0x08,        0x08,0x08,0x08,0x08,0xFC,0x08,0x00,0x00,
      0x00,0x00,0x7F,0x21,0x21,0x21,0x21,0x21,       0x21,0x21,0x21,0x21,0x7F,0x00,0x00,0x00,
 /*--  文字: 露22  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
 0x10,0x0C,0xC5,0x45,0x6D,0x55,0xC5,0x3F,        0x05,0xD5,0xAD,0x85,0x85,0x14,0x0C,0x00,
      0x00,0x40,0xFB,0x42,0x3E,0x2A,0x2B,0x12,       0xF1,0x9A,0x94,0x9A,0xF1,0x10,0x10,0x00,
 /*--  文字: 霜23  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x10,0x0C,0x04,0x55,0xD5,0x55,0x05,0x7F,       0x05,0x55,0x55,0x55,0x04,0x94,0x0C,0x00,
      0x00,0x22,0x12,0x0A,0xFF,0x0A,0x12,0x00,       0xFF,0x55,0x55,0x55,0x55,0xFF,0x01,0x00,
 /*--  文字: 降24  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xFE,0x02,0x22,0xDA,0x06,0x88,0x44,       0x57,0xA4,0x54,0x4C,0x84,0x80,0x80,0x00,
      0x00,0xFF,0x08,0x10,0x08,0x07,0x10,0x1E,       0x12,0xFF,0x12,0x12,0x18,0x11,0x00,0x00,
 /*--  文字: 冬25  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x20,0x10,0x08,0x17,0xA4,0x44,         0xA4,0x94,0x0C,0x04,0x00,0x00,0x00,0x00,
      0x04,0x04,0x02,0x02,0x01,0x25,0x24,0x48,       0x48,0x80,0x01,0x01,0x02,0x06,0x02,0x00,
 /*--  文字: 雪26  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
 0x10,0x0C,0x04,0x55,0x55,0x55,0x05,0xFF,       0x05,0x55,0x55,0x55,0x84,0x14,0x0C,0x00,
      0x00,0x00,0x41,0x49,0x49,0x49,0x49,0x49,       0x49,0x49,0x49,0x49,0xFF,0x01,0x00,0x00

};
/********************************************************************************************
* 函式名稱:Delay()
* 功    能:延遲時間=a*1ms
* 入口引數:
* 出口引數:無
*********************************************************************************************/
void Delay(uint a)
{
   uchar  i;
   while(a--)
   for(i=0;i<125;i++);
}
/********************************************************************************************
* 函式名稱:Lcd_Display_On()
* 功    能:LCD顯示開
* 入口引數:無
* 出口引數:無
*********************************************************************************************/
void Lcd_Display_On()

   port=0x3f;
   rs=0;
   rw=0;
   e=1;
   e=0; 
}
/********************************************************************************************
* 函式名稱:Lcd_Display_Off()
* 功    能:LCD顯示關
* 入口引數:無
* 出口引數:無
*********************************************************************************************/
void Lcd_Display_Off()

   port=0x3e;
   rs=0;
   rw=0;
   e=1;
   e=0; 
}
/********************************************************************************************
* 函式名稱:Lcd_Set_X(uchar x)
* 功    能:LCD設定X座標
* 入口引數:x
* 出口引數:無
*********************************************************************************************/
void Lcd_Set_X(uchar x)

   port=0xb8|x;
   rs=0;
   rw=0;
   e=1;
   e=0; 
}
/********************************************************************************************
* 函式名稱:Lcd_Set_Y(uchar y)
* 功    能:LCD設定Y座標
* 入口引數:y
* 出口引數:無
*********************************************************************************************/
void Lcd_Set_Y(uchar y)

   port=0x40|y;
   rs=0;
   rw=0;
   e=1;
   e=0; 
}
/********************************************************************************************
* 函式名稱:Lcd_Set_X_Y(uchar x, uchar y )
* 功    能:LCD設定x y座標
* 入口引數:x y
* 出口引數:無
*********************************************************************************************/
void Lcd_Set_X_Y(uchar x, uchar y)

  
   if( y<64 )
      { cs1=1; cs2=0; Lcd_Set_Y( y ); }
   else
      { cs1=0; cs2=1; Lcd_Set_Y( y-64 );  }
    Lcd_Set_X( x);
}
/********************************************************************************************
* 函式名稱:Lcd_Write_Command()
* 功    能:寫指令程式碼
* 入口引數:無
* 出口引數:無
*********************************************************************************************/
void Lcd_Write_Command(uchar temp)

   port=temp;
   rs=0;
   rw=0;
   e=1;
   e=0; 
}
/********************************************************************************************
* 函式名稱:Lcd_Write_Byte()
* 功    能:寫資料
* 入口引數:無
* 出口引數:無
*********************************************************************************************/
void Lcd_Write_Byte(uchar temp)

   port=temp;
   rs=1;
   rw=0;
   e=1;
   e=0; 
}

/****************************************************************************
*名稱:Lcd_Character_16X8( bit bit_flag, uchar x, uchar y, uchar code *point )
*功能:顯示16X8字元(字母)        
*入口引數:
*出口引數:
*說明:bit_flag = 1 正常顯示  bit_flag = 0 黑白反相顯示
****************************************************************************/
void Lcd_Character_16X8( bit bit_flag, uchar x, uchar y, uchar code *point )
{
   uchar i , j,temp;
   temp=y;
   if( bit_flag )
   {  
      for( i=0; i<2; i++ )
      {
         x+=i;
      y=temp;
         for( j=0;j<8;j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( point[ i*8 + j] ); 
         }
      }
   }
   else
   {
      for( i = 0; i < 2; i++ )
      {
         x += i;
         y = temp;
         for( j = 0; j < 8; j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( ~point[ i * 8 + j ] );
         }
      }
   }
}


/****************************************************************************
* 名稱:Lcd_Character_16X16( bit bit_flag, uchar x, uchar y, uchar code *point )
* 功能:顯示16*16字元(漢字)      
* 入口引數:x y data
* 出口引數:無
*說明:bit_flag = 1 正常顯示 bit_flag = 0 黑白反相顯示
****************************************************************************/
void Lcd_Character_16X16( bit bit_flag, uchar x, uchar y, uchar code *point )
{
   uchar i,j,temp ;
   temp=y;
   if( bit_flag )
   {
      for( i=0; i<2; i++ )
      {
         x+=i;
      y=temp;
         for( j=0;j<16;j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( point[ i*16 + j] ); 
         }
      }
   }
   else
   {
      for( i = 0; i<2; i++ )
      {
         x += i;
         y = temp;
         for( j = 0; j <16; j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( ~ point[ i * 16 + j ] );
         }
      }
   }
}

/****************************************************************************
*名稱:Lcd_Character_16X8( bit bit_flag, uchar x, uchar y, uchar code *point )
*功能:顯示16X8字元(字母)        
*入口引數:
*出口引數:
*說明:bit_flag = 1 正常顯示  bit_flag = 0 黑白反相顯示
****************************************************************************/
void Lcd_Character1_32X16( bit bit_flag, uchar x, uchar y, uchar code *point )
{
   uchar i , j,temp;
   temp=y;
   if( bit_flag )
   {  
         for( i= 0; i<3;i++ )
      {
         x+=i;
      y=temp;
         for( j=0;j<16;j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( point[ i*16 + j] ); 
         }
      }
   }
   else
   {
      for( i =0; i <3; i++ )
      {
         x += i;
         y = temp;
         for( j = 0; j < 16; j++ )
         {
            Lcd_Set_X_Y( x, y ); y++;
            Lcd_Write_Byte( ~point[ i * 16 + j ] );
         }
      }
   }
}


/****************************************************************************
* 名稱:Lcd_Clear(void)
* 功能:清屏       
* 入口引數:無
* 出口引數:無
****************************************************************************/
void Lcd_Clear()
{
   uchar i,j;
   cs1=1;cs2=1;
   for(i=0;i<8;i++)
   {
      Lcd_Set_X( i );
      Lcd_Set_Y( 0 );
      for(j=0;j<64;j++)
         Lcd_Write_Byte(0x00);
   }
}
/*******************************************************************************************
* 函式名稱:Lcd_Initial()
* 功    能:初始化LCD
* 入口引數:無
* 出口引數:無
*********************************************************************************************/
void Lcd_Initial()

   Lcd_Display_Off();
   Lcd_Write_Command(0xb8);     //Page_Add
   Lcd_Write_Command(0x40);     //Col_Add
   Lcd_Write_Command(0xc0);     //Start_Line
   Lcd_Display_On();
   Lcd_Clear();
}

/****************************************************************************
* 名稱:Lcd_Time(uchar * clock_time )
* 功能:顯示時間      
* 入口引數:無
* 出口引數:無                
* 說明    : 時間陣列 BCD 碼形式
****************************************************************************/
void Lcd_Time(uchar * clock_time )
{
   uchar i=0;
   //顯示   "hour時min分sec秒"                                           
   i= * clock_time >> 4;
   Lcd_Character1_32X16( 1, 2, 53, letter1_logo[i]);    //顯示   sec的高位
   i= * clock_time & 0x0f;
  Lcd_Character1_32X16( 1, 2, 69, letter1_logo[i]);    //顯示   sec的低位
  // Lcd_Character_16X16( 1, 3, 96 , time_logo[2]);  //顯示   秒

   clock_time ++;
   i= *  clock_time >> 4;
   Lcd_Character1_32X16( 1, 2, 21, letter1_logo[i]);    //顯示   min的高位
   i= * clock_time & 0x0f;
  Lcd_Character1_32X16( 1, 2, 37, letter1_logo[i]);   //顯示   min的低位
  // Lcd_Character_16X16( 1, 3, 64 , time_logo[1]);  //顯示   分
   // Lcd_Character_16X16( 1, 3, 52, letter_logo[10] );
   //clock_time ++;
 //  i= * clock_time >> 4;
 //  Lcd_Character_16X16(1, 3, 12 , letter_logo[i]);    //顯示   hour的高位
  // i= * clock_time & 0x0f;
  // Lcd_Character1_32X16( 1, 3, 4 , letter_logo[i]);    //顯示   hour的低位
   // Lcd_Character_16X16( 1, 3, 32 , time_logo[0]);  //顯示   分
 
    // Lcd_Character_16X16( 1, 3, 28, letter_logo[10] );      
}
/****************************************************************************
* 名稱:Lcd_Data(uchar * clock_time )
* 功能:顯示日期      
* 入口引數:無
* 出口引數:無                
* 說明    : 時間陣列 BCD 碼形式
****************************************************************************/
void Lcd_Data(uchar * clock_time )
{
   uchar i=0;
   clock_time += 3;

   //顯示   "year 年 month 月 day 日"                                                 
   i= * clock_time >> 4;
   Lcd_Character_16X8( 1, 0, 80, letter_logo[i]);  //顯示   day的高位
   i= * clock_time & 0x0f;
   Lcd_Character_16X8( 1, 0, 88, letter_logo[i]);  //顯示   day的低位 
   Lcd_Character_16X16( 1, 0, 96, data_logo[2]); //顯示   日
  
   clock_time ++;
   i= * clock_time >> 4 ;
   Lcd_Character_16X8( 1, 0, 48, letter_logo[i]);  //顯示   month的高位
   i= * clock_time & 0x0f;
   Lcd_Character_16X8( 1, 0, 56, letter_logo[i]); //顯示   month的低位
   Lcd_Character_16X16( 1, 0, 64, data_logo[1]);   //顯示   月
  
   clock_time ++ ;  
   i= * clock_time >>  4;
   Lcd_Character_16X8( 1, 0, 16 , letter_logo[i]); //顯示   year的高位
   i= * clock_time & 0x0f;
   Lcd_Character_16X8( 1, 0, 24 , letter_logo[i]); //顯示   year的低位
   Lcd_Character_16X16( 1, 0, 32, data_logo[0]);   //顯示   年
}
/****************************************************************************
* 名稱:Lcd_Data(uchar * clock_time )
* 功能:顯示日期      
* 入口引數:無
* 出口引數:無                
* 說明    : 時間陣列 BCD 碼形式
****************************************************************************/
void Lcd_Week( uchar week )

  // Lcd_Character_16X16( 1, 2, 82,  week_logo[7] ); //星
 //  Lcd_Character_16X16( 1, 2, 98, week_logo[8] ); //期
 //  Lcd_Character_16X16( 1, 2, 114, week_logo[  week & 0x0f ] );
}
/******************************************************************************
* 函式名稱: Lcd_Clock( uchar *clock_time )
* 功能: 顯示時鐘
* 入口引數: 時鐘地址
* 出口引數: 無
********************************************************************************/
void Lcd_Clock( uchar * clock_time )
{
   Lcd_Data( clock_time ); //顯示日期
   Lcd_Time( clock_time ); //顯示時間
}
/******************************************************************************
* 名稱: void Lcd_Lunar_Calendar( uchar * lunch_calendar )
* 功能: 顯示農曆
* 入口引數: 農力指標
* 出口引數: 無
*******************************************************************************/
void Lcd_Lunar_Calendar( uchar * lunar_canlendar )
{
   uchar i;
   //農曆
   Lcd_Character_16X16( 1, 6, 16, lunar_calendar_logo[0] );
   Lcd_Character_16X16( 1, 6, 32, lunar_calendar_logo[1] );
   //year-mongth-day
   i= * lunar_canlendar >>  4;
   Lcd_Character_16X8( 1, 6, 96, letter_logo[i] ); //農曆天的高位
   i= * lunar_canlendar & 0x0f;
   Lcd_Character_16X8( 1, 6, 104, letter_logo[i] ); //農曆天的低位
   Lcd_Character_16X8( 1, 6, 88, letter_logo[11] ); //-

   lunar_canlendar ++;
   i= * lunar_canlendar >>  4;
   Lcd_Character_16X8( 1, 6, 72, letter_logo[i] ); //農曆月的高位
   i= * lunar_canlendar & 0x0f;
   Lcd_Character_16X8( 1, 6, 80, letter_logo[i] ); //農曆月的低位
   Lcd_Character_16X8( 1, 6, 64, letter_logo[11] ); //-

   lunar_canlendar ++;
   i= * lunar_canlendar >>  4;
   Lcd_Character_16X8( 1, 6, 48, letter_logo[i] ); //農曆年的高位
   i= * lunar_canlendar & 0x0f;
   Lcd_Character_16X8( 1, 6, 56, letter_logo[i] ); //農曆年的地位
  
}
/*******************************************************************************
* 名稱: Lcd_Temperature( uchar * temperture )
* 功能: 顯示溫度
* 入口引數: 溫度
* 出口引數: 無
*********************************************************************************/
void Lcd_Temperture( uchar * temperature )
{
   uchar temp;
   switch( * temperature & 0x0f )                    //查表 精確到 0.1  °C
   {
      case 0x00: temp = 0; break;
      case 0x01: temp = 0; break;
      case 0x02: temp = 1; break;
      case 0x03: temp = 2; break;
      case 0x04: temp = 2; break;
      case 0x05: temp = 3; break;
      case 0x06: temp = 4; break;
      case 0x07: temp = 4; break;
      case 0x08: temp = 5; break;
      case 0x09: temp = 6; break;
      case 0x0a: temp = 6; break;
      case 0x0b: temp = 7; break;
      case 0x0c: temp = 8; break;
      case 0x0d: temp = 8; break;
      case 0x0e: temp = 9; break;
      case 0x0f: temp = 9; break;
      default:  break;
   }
   Lcd_Character_16X8( 1, 6, 104, temperture_logo[2] );    //   C
   Lcd_Character_16X8( 1, 6, 96, temperture_logo[1] );    //   °
   Lcd_Character_16X8( 1, 6, 88, letter_logo[temp] );  //  小數位
   Lcd_Character_16X8( 1, 6, 80,  temperture_logo[0] );     //  .
   temp = ( * temperature ) >> 4;
   temperature ++;
   temp |= ( * temperature ) << 4;
   Lcd_Character_16X8( 1, 6, 72, letter_logo[ temp % 10 ] ); //個位
   Lcd_Character_16X8( 1, 6, 64, letter_logo[ temp /10 ] );  //十位


  
   if( temp >= 30 )
      Lcd_Character_16X16( 1, 6, 112, sensor_inducator_logo[0] );  //大雨30度顯示圖形
   else
   {
      if( temp < 20 )
      Lcd_Character_16X16( 1, 6, 112, sensor_inducator_logo[2] );  //小於20度顯示圖形
   else
      Lcd_Character_16X16( 1, 6, 112, sensor_inducator_logo[1] );  //大於20度小於30度顯示圖形
   }
}

/***************************************************************************
*名稱    :Lcd_Set_Clock( uchar bit_flag, uchar *point )
*功能    :顯示調整的時間
*入口引數:指標
*出口引數:無
*說明    :
****************************************************************************/
void Lcd_Set_Clock( uchar temp, uchar *point )
{
   bit year_flag = 1;
   bit month_flag = 1;
   bit day_flag = 1;
   bit hour_flag =1;
   bit minute_flag = 1;
   bit second_flag = 1;
   uchar i;
   if( temp == 1 ) //滾動到 second
     second_flag = 0;
   if( temp == 2 ) //滾動到 minute
      minute_flag = 0;
   if( temp == 3 ) //滾動到 hour
      hour_flag = 0;
   if( temp == 4 ) //滾動到 day
      day_flag = 0;
   if( temp == 5 ) //滾動到 month
      month_flag = 0;
   if( temp == 6 ) //滾動到 year
      year_flag = 0;
   //日期
   Lcd_Character_16X16( 1, 2, 0 , data_time_logo[0] );
   Lcd_Character_16X16( 1, 2, 16, data_time_logo[1] );
   point += 5;    //指向年
   //year
   i = *point >> 4; 
   Lcd_Character_16X8( year_flag, 2, 40, letter_logo[i] );
   i = *point & 0x0f;
   Lcd_Character_16X8( year_flag, 2, 48, letter_logo[i] );
   //-
   Lcd_Character_16X8( 1, 2, 56, letter_logo[11] );
   point --;   //指向月
   //month
   i = *point >>4;
   Lcd_Character_16X8( month_flag, 2, 64, letter_logo[i] );
   i = *point & 0x0f;
   Lcd_Character_16X8( month_flag, 2, 72, letter_logo[i] );     
   //-
   Lcd_Character_16X8( 1, 2, 80, letter_logo[11] );
   point --;   //指向日
   //day  
   i = *point >>4;
   Lcd_Character_16X8( day_flag, 2, 88, letter_logo[i] );
   i = *point & 0x0f;
   Lcd_Character_16X8( day_flag, 2, 96, letter_logo[i] );
   //時間
   Lcd_Character_16X16( 1, 4, 0, data_time_logo[2] );
   Lcd_Character_16X16( 1, 4, 16, data_time_logo[3] );
   point -- ; //指向時
   //hour
   i = *point >>4;
   Lcd_Character_16X8( hour_flag, 4, 40, letter_logo[i] );
   i = *point & 0x0f;
   Lcd_Character_16X8( hour_flag, 4, 48, letter_logo[i] );  
   //:
   Lcd_Character_16X8( 1, 4, 56, letter_logo[10] );
   point -- ;  //指向分
   //minnute
   i = *point >>4;
   Lcd_Character_16X8( minute_flag, 4, 64, letter_logo[i] );
   i = *point & 0xff;
   Lcd_Character_16X8( minute_flag, 4, 72, letter_logo[i] );
   //:
   Lcd_Character_16X8( 1, 4, 80, letter_logo[10] );
   point --;   //指向秒
   //second
   i = *point >> 4;
   Lcd_Character_16X8( second_flag, 4, 88, letter_logo[i] );
   i = * point & 0x0f;
   Lcd_Character_16X8( second_flag, 4, 96, letter_logo[i] );
}
/**************************************************************************************
* 名稱: Lcd_Function( uchar temp )
* 功能: 滾動顯示 時間設定 鬧鐘設定
* 入口引數: 滾動位置
* 出口引數: 無
**************************************************************************************/
void Lcd_Function( uchar temp )
{
   bit time_flag = 1;
   bit alarm_flag = 1;
   if( temp == 2 ) //滾動到 時間設定
      time_flag = 0;
   if( temp == 1 ) //滾動到 鬧鐘設定
      alarm_flag = 0;
   //時間設定
   Lcd_Character_16X16( time_flag, 0, 0, function_logo[0] );
   Lcd_Character_16X16( time_flag, 0, 16, function_logo[1] );
   Lcd_Character_16X16( time_flag, 0, 32, function_logo[2] );
   Lcd_Character_16X16( time_flag, 0, 48, function_logo[3] );
   //鬧鐘設定
   Lcd_Character_16X16( alarm_flag, 2, 0, function_logo[4] );
   Lcd_Character_16X16( alarm_flag, 2, 16, function_logo[5] );
   Lcd_Character_16X16( alarm_flag, 2, 32, function_logo[6] );
   Lcd_Character_16X16( alarm_flag, 2, 48, function_logo[7] );


}
/************************************************************************************
* 名稱: Lcd_Alarm( uchar * alarm_time )
* 功能: 鬧鐘調整畫面顯示
* 入口引數: 鬧鐘地址
* 出口引數: 無
************************************************************************************/
void Lcd_Alarm( uchar temp, uchar * alarm_time )
{
   uchar i;
   bit hour_flag = 1;
   bit minute_flag = 1;
   if( temp == 1 )
      minute_flag = 0;
   if( temp == 2 )
      hour_flag = 0;
   Lcd_Character_16X16( 1, 0, 0, alarm_logo[0] ); //顯示鬧鐘標誌
   // 小時:分鐘
   Lcd_Character_16X16( 1, 0, 16, alarm_logo[1] );
   Lcd_Character_16X16( 1, 0, 32, alarm_logo[2] );
   Lcd_Character_16X8( 1, 0, 48, letter_logo[10] );
   Lcd_Character_16X16( 1, 0, 56, alarm_logo[3] );
   Lcd_Character_16X16( 1, 0, 72, alarm_logo[4] );


   i = ( *  ( alarm_time + 1 ) ) / 10;
   Lcd_Character_16X8( hour_flag, 2, 32, letter_logo[i] ); //顯示時的高位
   i = ( * ( alarm_time + 1 )  ) % 10;
   Lcd_Character_16X8( hour_flag, 2, 40, letter_logo[i] ); //顯示時的低位
   Lcd_Character_16X8( 1, 2, 48, letter_logo[10] ); //:

   i = ( *  ( alarm_time ) ) / 10;
   Lcd_Character_16X8( minute_flag, 2, 56, letter_logo[i] ); //顯示分的高位
   i = ( * ( alarm_time  ) ) % 10;
   Lcd_Character_16X8( minute_flag, 2, 64, letter_logo[i] ); //顯示分的低位
}
/********************************************************************************/
#endif
 void LCD_ERSHI( uchar temp )
 {
    switch(temp)
   {
     case  1 :{
             Lcd_Character_16X16( 1, 4, 88, ershi_logo[0] );   //小寒
       Lcd_Character_16X16( 1, 4, 104, ershi_logo[1] );
       }
      break;
  case 2:  {
               Lcd_Character_16X16( 1, 4, 88, ershi_logo[2] ); //大寒
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[1] );
      }
        break;
  case 3:  {
               Lcd_Character_16X16( 1, 4, 88, ershi_logo[3] );   //立春
         Lcd_Character_16X16( 1,4, 104, ershi_logo[4] );
      }
        break;
  case 4:  { Lcd_Character_16X16( 1, 4, 88, ershi_logo[5] );     //雨水
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[6] );
      }
        break;
  case 5:   { Lcd_Character_16X16( 1, 4, 88, ershi_logo[7] );   //驚蟄
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[8] );
      }
        break;
  case 6:  {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[4] );   //春分
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[9] );
      }
        break;
  case 7: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[10] );    //清明
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[11] );
      }
        break;
   case 8: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[12] );   //穀雨
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[5] );
      }
        break;
   case 9:  {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[3] );  //立夏
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[13] );
      }
        break;
   case 10: { Lcd_Character_16X16( 1, 4, 88, ershi_logo[0] );    //小滿
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[14] );
      }
        break;
   case 11: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[15] );  //芒種
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[16] );
      }
        break;
   case 12: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[13] );  //夏至
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[17] );
      }
        break;
   case 13: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[0] );  //小暑
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[18] );
      }
        break;
   case 14: { Lcd_Character_16X16( 1, 4, 88, ershi_logo[2] );    //大暑
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[18] );
      }
        break;
   case 15: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[3] );   //立秋
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[19] );
      }
        break;
  case 16:  {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[20] );  //處暑
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[18] );
      }
        break;
  case 17: { Lcd_Character_16X16( 1, 4, 88, ershi_logo[21] );   //白露

         Lcd_Character_16X16( 1, 4, 104, ershi_logo[22] );
      }
        break;
    case 18: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[19] );   //秋分
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[9] );
      }
        break;
    case 19: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[1] );    //寒露
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[22] );
      }
        break;
    case 20: {  Lcd_Character_16X16( 1, 4, 88, ershi_logo[23] );    //霜降
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[24] );
      }
        break;
    case 21: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[3] );   //立冬
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[25] );
      }
        break;
    case 22: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[0] );   //小雪
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[26] );
      }
        break;
    case 23: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[2] );    //大雪
         Lcd_Character_16X16( 1, 4,104, ershi_logo[26] );
      }
        break;
    case 24: {   Lcd_Character_16X16( 1, 4, 88, ershi_logo[25] );   //冬至
         Lcd_Character_16X16( 1, 4, 104, ershi_logo[17] );
      }
        break;
    break;
   }
}

      //  (led5.h)

   #ifndef _CHARACTER
#define _CHARACTER
/*****************************預定義**************************************/
#define uchar unsigned char
#define uint  unsigned int
/********************************************************************************************
*內容:   0 1 2 3 4 5 6 7 8 9 : -
*大小:   8X16字元 
*********************************************************************************************/
uchar code letter_logo[12][16]={
/*--  文字:  0  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/

 
//0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,
0x00,0xE0,0xF0,0x18,0x08,0x18,0xF0,0xE0,0x80,0x8F,0x9F,0xB0,0xA0,0xB0,0x9F,0x8F,/*"0",0*/
/*--  文字:  1  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 

//0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,
0x00,0x10,0x10,0xF8,0xF8,0x00,0x00,0x00,0x80,0xA0,0xA0,0xBF,0xBF,0xA0,0xA0,0x80,/*"1",0*/
/*--  文字:  2  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 
//0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,
0x00,0x70,0x78,0x08,0x08,0x88,0xF8,0x70,0x80,0xB0,0xB8,0xAC,0xA6,0xA3,0xB1,0xB0,/*"2",0*/
/*--  文字:  3  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 
 
//0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,
0x00,0x30,0x38,0x88,0x88,0xC8,0x78,0x30,0x80,0x98,0xB8,0xA0,0xA0,0xB1,0x9F,0x8E,/*"3",0*/
/*--  文字:  4  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 
//0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,
0x00,0x00,0xC0,0xE0,0x30,0xF8,0xF8,0x00,0x80,0x87,0x87,0xA4,0xA4,0xBF,0xBF,0xA4,/*"4",0*/
/*--  文字:  5  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
               
//0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,

0x00,0xF8,0xF8,0x88,0x88,0x88,0x08,0x08,0x80,0x99,0xB9,0xA1,0xA0,0xB1,0x9F,0x8E,/*"5",0*/
/*--  文字:  6  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/ 
 
   
//0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,
0x00,0xE0,0xF0,0x98,0x88,0x98,0x18,0x00,0x80,0x8F,0x9F,0xB1,0xA0,0xB1,0x9F,0x8E,/*"6",0*/
/*--  文字:  7  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
           
//0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,
  0x00,0x38,0x38,0x08,0xC8,0xF8,0x38,0x08,0x80,0x80,0x80,0xBF,0xBF,0x80,0x80,0x80,/*"7",0*/
/*--  文字:  8  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 
//0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,
0x00,0x70,0xF8,0x88,0x08,0x88,0xF8,0x70,0x80,0x9C,0xBE,0xA3,0xA1,0xA3,0xBE,0x9C,/*"8",0*/
/*--  文字:  9  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
     
//0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,
0x00,0xE0,0xF0,0x18,0x08,0x18,0xF0,0xE0,0x80,0x80,0xB1,0xB3,0xA2,0xB3,0x9F,0x8F,/*"9",0*/
/*--  文字:  :  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
   
//0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,
0x00,0x00,0x00,0xC0,0xC0,0xC0,0x00,0x00,0x80,0x80,0x80,0xB0,0xB0,0xB0,0x80,0x80,/*":",0*/
/*--  文字:  -  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
 

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
};

uchar code letter1_logo[12][64]={
/*--  文字:  0  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/

 
0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0x40,0x40,0xC0,0xC0,0x80,0x00,0x00,0x00,
0x00,0x00,0xF0,0xFE,0xFF,0x0F,0x01,0x00,0x00,0x00,0x00,0x01,0x07,0xFF,0xFE,0xF0,
0x00,0x00,0x1F,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xFF,0xFF,0x1F,
0x80,0x80,0x80,0x80,0x81,0x83,0x87,0x86,0x84,0x84,0x86,0x87,0x83,0x81,0x80,0x80,/*"0",0*/
          
/*--  文字:  1  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x01,0x01,0x01,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x80,0x80,0x84,0x84,0x84,0x86,0x87,0x87,0x87,0x86,0x84,0x84,0x84,0x80,0x80,/*"1",0*/
 

/*--  文字:  2  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
0x00,0x00,0x00,0x00,0x80,0xC0,0x40,0x40,0x40,0x40,0xC0,0xC0,0x80,0x80,0x00,0x00,
0x00,0x00,0x1E,0x1F,0x19,0x00,0x00,0x00,0x00,0x00,0x00,0xC1,0xFF,0x7F,0x3E,0x00,
0x00,0x00,0x00,0x80,0xC0,0x60,0x30,0x18,0x0C,0x06,0x03,0x01,0x00,0xE0,0xE0,0x00,
0x80,0x80,0x87,0x87,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x87,0x87,0x81,0x80,/*"2",0*/

/*--  文字:  3  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
 
0x00,0x00,0x00,0x80,0x80,0xC0,0x40,0x40,0x40,0xC0,0xC0,0x80,0x80,0x00,0x00,0x00,
0x00,0x00,0x0F,0x0F,0x0F,0x00,0x80,0x80,0x80,0xC0,0xE1,0x7F,0x3F,0x1E,0x00,0x00,
0x00,0x00,0xE0,0xE0,0xE0,0x00,0x00,0x00,0x00,0x01,0x01,0x03,0xFF,0xFE,0x78,0x00,
0x80,0x80,0x81,0x83,0x83,0x86,0x84,0x84,0x84,0x84,0x86,0x83,0x83,0x81,0x80,0x80,/*"3",0*/

 /*--  文字:  4  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0xE0,0x70,0x3C,0x0E,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,
0x00,0x10,0x1C,0x1E,0x13,0x11,0x10,0x10,0x10,0xFF,0xFF,0xFF,0xFF,0x10,0x10,0x10,
0x80,0x80,0x80,0x80,0x80,0x80,0x88,0x88,0x88,0x8F,0x8F,0x8F,0x8F,0x88,0x88,0x88,/*"4",0*/

 /*--  文字:  5  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
               
0x00,0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x00,
0x00,0x00,0x00,0xF8,0xFF,0xC7,0x60,0x20,0x20,0x20,0x60,0xE0,0xC0,0x80,0x00,0x00,
0x00,0x00,0xE0,0xE1,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xFF,0xFF,0x7E,0x00,
0x80,0x80,0x81,0x83,0x86,0x84,0x84,0x84,0x84,0x84,0x86,0x83,0x83,0x81,0x80,0x80,/*"5",0*/

 /*--  文字:  6  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/ 
 
   
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0x40,0x40,0x40,0xC0,0x80,0x00,0x00,
0x00,0x00,0xE0,0xFC,0xFE,0x8F,0x81,0xC0,0x40,0x40,0x40,0xC0,0xC3,0x83,0x03,0x00,
0x00,0x00,0x3F,0xFF,0xFF,0xC3,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0x7E,
0x80,0x80,0x80,0x80,0x81,0x83,0x87,0x86,0x84,0x84,0x84,0x86,0x83,0x83,0x81,0x80,/*"6",0*/

/*--  文字:  7  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
           
0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x00,
0x00,0x00,0x0F,0x0F,0x03,0x01,0x00,0x00,0x80,0xE0,0x78,0x1E,0x07,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFC,0xFF,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x80,0x87,0x87,0x87,0x80,0x80,0x80,0x80,0x80,0x80,0x80,/*"7",0*/

/*--  文字:  8  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
            
0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0x40,0x40,0x40,0xC0,0xC0,0x80,0x00,0x00,0x00,
0x00,0x00,0x1E,0x3F,0x7F,0xF1,0xE0,0xC0,0x80,0x80,0x80,0xE1,0x7F,0x3F,0x1E,0x00,
0x00,0xF8,0xFC,0xFE,0x07,0x03,0x01,0x01,0x01,0x03,0x07,0x0F,0xFE,0xFC,0xF8,0x00,
0x80,0x80,0x81,0x83,0x83,0x86,0x84,0x84,0x84,0x84,0x86,0x83,0x83,0x81,0x80,0x80,/*"8",0*/

 /*--  文字:  9  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
     

0x00,0x00,0x00,0x80,0x80,0xC0,0x40,0x40,0x40,0x40,0xC0,0x80,0x00,0x00,0x00,0x00,
0x00,0xFC,0xFF,0xFF,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x83,0xFF,0xFE,0xF8,0x00,
0x00,0x00,0x81,0x83,0x87,0x06,0x04,0x04,0x04,0x06,0x83,0xF3,0xFF,0x7F,0x0F,0x00,
0x80,0x80,0x83,0x83,0x87,0x84,0x84,0x84,0x86,0x87,0x83,0x81,0x80,0x80,0x80,0x80,/*"9",0*/

 /*--  文字:  :  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
   

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x81,0x81,0x81,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x07,0x07,0x03,0x00,0x00,0x00,0x00,0x00,/*":",0*/

/*--  文字:  -  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=32x16   --*/
 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"-",0*/

};

/*******************************************************************************
* 內容 年月日
* 大小 16X16
*********************************************************************************/
uchar code data_logo[3][32] = {
/*--  文字:  年  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x40,0x20,0x10,0x0C,0xE3,0x22,0x22,0x22,0xFE,0x22,0x22,0x22,0x22,0x02,0x00,0x00,
0x04,0x04,0x04,0x04,0x07,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x04,0x04,0x00,

/*--  文字:  月  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0x00,0x00,0xFF,0x11,0x11,0x11,0x11,0x11,0xFF,0x00,0x00,0x00,0x00,
0x00,0x40,0x20,0x10,0x0C,0x03,0x01,0x01,0x01,0x21,0x41,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  日  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,0x00,0x00,0x00,
};


/*******************************************************************************
* 內容 時分秒
* 大小 16X16
*********************************************************************************/
uchar code time_logo[3][32] = {
/*--  文字:  時  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xFC,0x44,0x44,0x44,0xFC,0x10,0x90,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x00,
0x00,0x07,0x04,0x04,0x04,0x07,0x00,0x00,0x03,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,

/*--  文字:  分  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x80,0x40,0x20,0x98,0x87,0x82,0x80,0x80,0x83,0x84,0x98,0x30,0x60,0xC0,0x40,0x00,
0x00,0x80,0x40,0x20,0x10,0x0F,0x00,0x00,0x20,0x40,0x3F,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  秒  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x12,0x12,0xD2,0xFE,0x91,0x11,0xC0,0x38,0x10,0x00,0xFF,0x00,0x08,0x10,0x60,0x00,
0x04,0x03,0x00,0xFF,0x00,0x83,0x80,0x40,0x40,0x20,0x23,0x10,0x08,0x04,0x03,0x00,
};

/*********************************************************************************
* 內容: 日一二三四五六星期
* 大小: 16X16
/********************************************************************************/
uchar code week_logo[9][32] = {
/*--  文字:  日  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  一  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  二  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x06,0x04,0x00,0x00,0x00,
0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x10,0x00,

/*--  文字:  三  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x04,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x04,0x00,0x00,
0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,

/*--  文字:  四  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xFE,0x02,0x02,0x02,0xFE,0x02,0x02,0xFE,0x02,0x02,0x02,0x02,0xFE,0x00,0x00,
0x00,0x7F,0x28,0x24,0x23,0x20,0x20,0x20,0x21,0x22,0x22,0x22,0x22,0x7F,0x00,0x00,

/*--  文字:  五  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x02,0x82,0x82,0x82,0x82,0xFE,0x82,0x82,0x82,0xC2,0x82,0x02,0x00,0x00,0x00,
0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x20,0x20,0x3F,0x20,0x20,0x30,0x20,0x00,

/*--  文字:  六  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x10,0x10,0x10,0x10,0x10,0x91,0x12,0x1E,0x94,0x10,0x10,0x10,0x10,0x10,0x10,0x00,
0x00,0x40,0x20,0x10,0x0C,0x03,0x01,0x00,0x00,0x01,0x02,0x0C,0x78,0x30,0x00,0x00,

/*--  文字:  星  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0xBE,0x2A,0x2A,0x2A,0xEA,0x2A,0x2A,0x2A,0x2A,0x3E,0x00,0x00,0x00,
0x00,0x48,0x46,0x41,0x49,0x49,0x49,0x7F,0x49,0x49,0x49,0x49,0x49,0x41,0x40,0x00,

/*--  文字:  期  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x04,0xFF,0x54,0x54,0x54,0xFF,0x04,0x00,0xFE,0x22,0x22,0x22,0xFE,0x00,0x00,
0x42,0x22,0x1B,0x02,0x02,0x0A,0x33,0x62,0x18,0x07,0x02,0x22,0x42,0x3F,0x00,0x00,
};
/*******************************************************************************************
* 內容: 農曆
* 大小: 16X16
********************************************************************************************/
uchar code lunar_calendar_logo[2][32] = {
 /*--  文字:  農  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x20,0x18,0x08,0x88,0xE8,0x1F,0x6A,0x88,0x08,0x88,0xC8,0xA8,0x1C,0x08,0x00,
0x08,0x04,0x02,0x41,0xFF,0x40,0x20,0x10,0x01,0x02,0x0D,0x18,0x70,0x20,0x20,0x00,

/*--  文字:  歷  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0xFE,0x02,0x22,0x22,0x22,0x22,0xFA,0x22,0x22,0x22,0xE2,0x02,0x02,0x00,
0x40,0x30,0x0F,0x00,0x40,0x20,0x18,0x06,0x01,0x00,0x20,0x60,0x3F,0x00,0x00,0x00,
};
/********************************************************************************************
*內容: .  ° C
*大小:   8X16字元
*********************************************************************************************/
uchar code temperture_logo[3][16]={
/*--  文字:  .  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  °  --*
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
0x00,0x18,0x24,0x24,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*--  文字:  C  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=8x16   --*/
0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00,
};

/********************************************************************************************
*內容:   顯示溫度等級   第一個等級大於30度    第二個等級大於20度小於30毒   第三個等級小於20d度
*大小:   8X16字元
*********************************************************************************************/
uchar code sensor_inducator_logo[3][32] =
{
/*--  調入了一幅影象:這是您新建的影象  --*/
/*--  寬度x高度=16x16  --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x70,0x78,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x60,0x70,0x74,0x76,0x77,0x77,0x77,0x77,0x77,0x00,0x00,0x00,
/*--  調入了一幅影象:這是您新建的影象  --*/
/*--  寬度x高度=16x16  --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x60,0x70,0x74,0x76,0x77,0x77,0x77,0x77,0x77,0x00,0x00,0x00,
/*--  調入了一幅影象:這是您新建的影象  --*/
/*--  寬度x高度=16x16  --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x60,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x00,0x00,0x00,
};

/***************************************************************************************
*內容: 時間設定 功能設定
*大小: 16X16
****************************************************************************************/
uchar code function_logo[8][32] = {
/*--  文字:  時  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xFC,0x44,0x44,0x44,0xFC,0x10,0x90,0x10,0x10,0x10,0xFE,0x10,0x10,0x10,0x00,
0x00,0x07,0x04,0x04,0x04,0x07,0x00,0x00,0x03,0x20,0x40,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  間  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xF8,0x02,0x02,0x00,0xF0,0x92,0x92,0x92,0x92,0xF2,0x02,0x02,0xFE,0x00,0x00,
0x00,0x7F,0x00,0x00,0x00,0x07,0x04,0x04,0x04,0x04,0x07,0x20,0x40,0x3F,0x00,0x00,

/*--  文字:  設  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x40,0x40,0xCE,0x04,0x00,0x80,0x40,0xBE,0x82,0x82,0x82,0xBE,0xC0,0x40,0x40,0x00,
0x00,0x00,0x7F,0x20,0x10,0x00,0x40,0x43,0x2C,0x10,0x10,0x2C,0x43,0x40,0x00,0x00,

/*--  文字:  置  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x20,0x2E,0xAA,0xAA,0xAE,0xEA,0xBA,0xAA,0xAE,0xAA,0xAA,0x2E,0x20,0x00,0x00,
0x40,0x40,0x40,0x7F,0x6A,0x6A,0x6A,0x6A,0x6A,0x6A,0x6A,0x7F,0x40,0x40,0x40,0x00,

/*--  文字:  鬧  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0xF8,0x12,0x90,0x92,0x96,0xFA,0x92,0x92,0x92,0x12,0x02,0xFE,0x00,0x00,
0x00,0x00,0x7F,0x00,0x1F,0x00,0x00,0x3F,0x00,0x08,0x0F,0x20,0x40,0x7F,0x00,0x00,

/*--  文字:  鍾  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x40,0x30,0x2C,0xEA,0x28,0x28,0x00,0xF8,0x08,0x08,0xFE,0x08,0x08,0xF8,0x00,0x00,
0x01,0x01,0x01,0x7F,0x41,0x21,0x00,0x01,0x01,0x01,0x7F,0x01,0x01,0x01,0x00,0x00,

/*--  文字:  設  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x40,0x40,0xCE,0x04,0x00,0x80,0x40,0xBE,0x82,0x82,0x82,0xBE,0xC0,0x40,0x40,0x00,
0x00,0x00,0x7F,0x20,0x10,0x00,0x40,0x43,0x2C,0x10,0x10,0x2C,0x43,0x40,0x00,0x00,

/*--  文字:  置  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x2E,0xAA,0xAA,0xAE,0xEA,0xBA,0xAA,0xAE,0xAA,0xAA,0x2E,0x00,0x00,0x00,
0x40,0x40,0x40,0x7F,0x6A,0x6A,0x6A,0x6A,0x6A,0x6A,0x6A,0x7F,0x40,0x40,0x40,0x00,

};

/********************************************************************************************
*內容:日期 時間
*大小:16x16
**************************************************************************************8******/
uchar code data_time_logo[4][32] = {
/*--  文字:  日  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x00,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,0x00,0x00,0x00,

/*--  文字:  期  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0x04,0xFF,0x54,0x54,0x54,0xFF,0x04,0x00,0xFE,0x22,0x22,0x22,0xFE,0x00,0x00,
0x42,0x22,0x1B,0x02,0x02,0x0A,0x33,0x62,0x18,0x07,0x02,0x22,0x42,0x3F,0x00,0x00,

/*--  文字:  時  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xFC,0x44,0x44,0x44,0xFC,0x10,0x90,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x00,
0x00,0x07,0x04,0x04,0x04,0x07,0x00,0x00,0x03,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,

/*--  文字:  間  --*/
/*--  宋體12;  此字型下對應的點陣為:寬x高=16x16   --*/
0x00,0xF8,0x01,0x06,0x00,0xF0,0x92,0x92,0x92,0x92,0xF2,0x02,0x02,0xFE,0x00,0x00,
0x00,0xFF,0x00,0x00,0x00,0x07,0x04,0x04,0x04,0x04,0x07,0x40,0x80,0x7F,0x00,0x00,
};

/********************************************************************************
*
*
*********************************************************************************/
code uchar year_code[300]={
  
                    0x0C,0x96,0x45,   
    //2000
                    0x4d,0x4A,0xB8,   
    //2001
                    0x0d,0x4A,0x4C,   
    //2002
                    0x0d,0xA5,0x41,   
    //2003
                    0x25,0xAA,0xB6,   
    //2004
                    0x05,0x6A,0x49,   
    //2005
                    0x7A,0xAd,0xBd,   
    //2006
                    0x02,0x5d,0x52,   
    //2007
                    0x09,0x2d,0x47,   
    //2008
                    0x5C,0x95,0xBA,   
    //2009
                    0x0A,0x95,0x4e,   
    //2010
                    0x0B,0x4A,0x43,   
    //2011
                    0x4B,0x55,0x37,   
    //2012
                    0x0A,0xd5,0x4A,   
    //2013
                    0x95,0x5A,0xBf,   
    //2014
                    0x04,0xBA,0x53,   
    //2015