购物车 (0)  
亲,您的购物车空空的哟~
去购物车结算
娱乐健身机器人
若朋网/ruobots.com
01
新闻详情

汉字书写练习机程序 (www.ruobots.com)

浏览数:618 

汉字书写练习机程序

(www.ruobots.com)

**------------------------------------------------------------------------------------------------------

**--------------当前版本修订----------------------------------------------------------------------------

** 编写人: yanyao

** 日 期:06-11-23

** 描 述:画面调整,int0问题,增加画板页面和系统设置画面

**

**------------------------------------------------------------------------------------------------------

**------------------------------------------------------------------------------------------------------*/

#include "c8051f020.h"

#include"stdio.h"

#include"intrins.h"

#define ucharunsigned char

#define uint unsignedint

#define aalen 9

#define _nop_();  

xdata ucharwriteX[aalen]={0x90,0x00,0x00};//测量 X 坐标数据,12位模式DC

xdata ucharwriteY[aalen]={0xD0,0x00,0x00};//测量 y 坐标数据,12位模式9C

xdata ucharreadX[aalen];

xdata ucharreadX2[aalen];

xdata int tempx;

xdata ucharreadY[aalen];

xdata ucharreadY2[aalen];

xdata int tempy;

xdata uchar flag=0;

uchar codebuf1[8]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};

uchar comp[]={0};

xdata floatrectify[6]={0.231,-0.001,-18.77,0.007,-0.181,259.19};                                    

//存放校准系数

     uchar k;                                               //SMBUS数据长度

          int save_x;

     int save_y;

          int save_xx;

     int save_yy;

          uchar get;

     float exch_x;

          float exch_y;

uchar menu1_flag=0;

uchar menu2_flag=0;

uchar menu3_flag=0;

uchar menu4_flag=0;

uchar menu5_flag=0;

uchar menu6_flag=0;

uchar menu7_flag=0;

uchar menu8_flag=0;

//uchar menu4_flag=0;

//ucharmenu_write_flag=0;//未用

uchar key_open=0;//键盘允许处理标志

uchar write_open=0;//允许写标志

uchar pen_down=0;//笔状态标志

uchar jump;

sbit INT0=P2^3;

sbit EL_ON=P3^5;

sbit A0=P3^4; //1335数据类型选择

sbit CS=P3^3;  //1335片选

sbit WR=P3^2;   //1335

sbit RD=P3^1;   //1335

sbit RESET=P3^0; //复位

sbit CS21=P3^7; //452配置

sbit CS2 = P2^7;   //MCP6S21 & MCP6S28 片选  I/O-1

sbit CLK292 =P2^6;   //MCP6S21 & MCP6S28 片选  I/O-1

sbit SCK = P0^2;

/***********************************************************************/

/*                                           初始化配置                                     */

/***********************************************************************/

void config (void)

{  

         WDTCN = 0x07;                                                                                                   //OVERTIME 2-0bit=111

   WDTCN = 0xde;                                                                    //看门狗禁止

   WDTCN = 0xad;                                                                    //看门狗禁止  

   XBR0 = 0xEF;                                                                                      //SPIEN=1,SMB0EN=1  

   XBR1 = 0x1F;                                                                      //GAIDONG XBR1 = 0x07;

         XBR2 = 0x44;                                                                                                    //交叉开关允许

         P0MDOUT = 0xFF;

         P1MDOUT = 0xFF;                                         //P1口输出方式配置,均为推挽输出; //yy//

         P2MDOUT = 0xD7;                                           //P2口输出方式配置,均为推挽输出;

INT0为数字输入//yy//修改前为F7//

         INT0=1;                                                                                                                   //使p2.3口为输入模式                                                                                                       //使p2.5口为输入模式

         P3MDOUT = 0xFF;                                           //P3口输出方式配置,均为推挽输出; //yy//    

         P74OUT=0x03;

   //EL_ON=0;      

         EMI0CF=0x13;                                                                                                    //EMD2(EMI0CF4)=0,非复用方式;

   OSCXCN = 0x00;  

   OSCICN = 0x17;                                                  //采用内部晶振,频率为 2MHZ

}  

void int0_INI()

{IT0=0;

IE0=0;                                                                                                                             //INT0触发方式

EX0=1;                                                                                                                             //允许INT0中断  

}

         

void spi_cfg(ucharspi0cfg,uchar spi0ckr,uchar spi0cn) //SPI配置

{

SPI0CFG = spi0cfg;                                                                         //0x50

SPI0CKR = spi0ckr;                                                                         //0x24

SPI0CN  = spi0cn;                                                                          //0x08

EIE1|=0x01;                                                                                                               //允许SPIF标志位的中断请求

}

void smbus_cfg(ucharsmb0cn,uchar smb0cr,uchar smb0adr)

{        

         SMB0CN=smb0cn;                                                                                                  //SMBUS 控制寄存器设置44

         SMB0CR=smb0cr;                                                                                                  //SMBUS 波特率设置F1

         SMB0ADR=smb0adr;                                             //SMBUS从机地址和广播使能设置70

         EIE1|= 0x02;                                                                                                    //ESMB0=1 开启SMBUS中断

}

/***********************************************************************/

/*                                      任务驱动程序                          */

/***********************************************************************/

voidsmbusMasterStart()                                                                                        

//此函数用来启动主机发送起始位,主机发送完起始位将引发中断

{

         k=0;                                                                                                                      //将smbus数据索引指向0

         STO=0;  

         STA=1;

}

/***********************************************************************/

/*                                      字 模                                                                              */

/***********************************************************************/

/*--  调入了一幅图像:输出电压.bmp 16*24 --*/

uchar code hanzi[]={/*--  调入了一幅图像:C:\Documents and

Settings\509\桌面\汉字.bmp  --*/

/*--  宽度x高度=104x48  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,

0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,

0x3F,0x80,0x00,0x70,0x00,0x00,0x00,0x00,0x1E,0x03,0x80,0x00,0x00,0x1F,0xC0,0x00,

0xFC,0x00,0x00,0x00,0x00,0x0C,0x3F,0xC0,0x00,0x00,0x0F,0x80,0x0F,0xFE,0x00,0x00,

0x07,0x00,0x1F,0xFF,0xC0,0x00,0x00,0x0F,0x87,0xFF,0xFE,0x00,0x00,0x07,0x07,0xFF,

0xFF,0xC0,0x00,0x00,0x07,0x7F,0xFE,0xFE,0x00,0x00,0x0F,0xFF,0xFE,0x07,0xC0,0x00,

0x00,0x00,0x3F,0xE1,0xF8,0x00,0x00,0x1F,0xFF,0x00,0x0F,0xC0,0x00,0x00,0x00,0x1C,

0x01,0xF0,0x00,0x00,0x1F,0x80,0x00,0x1F,0x80,0x00,0x00,0x00,0x00,0x03,0xF0,0x00,

0x00,0x3E,0x00,0x00,0x3E,0x00,0x00,0x00,0x00,0x70,0x03,0xE0,0x00,0x00,0x7C,0x00,

0x1E,0x00,0x00,0x00,0x00,0x00,0x7C,0x07,0xC0,0x00,0x00,0xFC,0x01,0xFF,0x00,0x00,

0x00,0x3F,0x00,0x7C,0x0F,0xC0,0x00,0x00,0xF8,0x3F,0xFF,0x80,0x00,0x00,0x3F,0x80,

0x3E,0x0F,0x80,0x00,0x00,0xF3,0xFF,0xBF,0x80,0x00,0x00,0x1F,0x86,0x1E,0x1F,0x00,

0x00,0x00,0x03,0xFC,0x3E,0x00,0x00,0x00,0x0F,0x8E,0x1F,0x3F,0x00,0x00,0x00,0x00,

0xC0,0x7C,0x00,0x00,0x00,0x0F,0x9E,0x1F,0x7E,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,

0x00,0x00,0x03,0x3C,0x0F,0xFC,0x00,0x00,0x00,0x00,0x0F,0xE0,0x00,0x00,0x00,0x00,

0x78,0x0F,0xF8,0x00,0x00,0x00,0x00,0x0F,0xC0,0x00,0x00,0x00,0x00,0x70,0x07,0xF0,

0x00,0x00,0x00,0x00,0x0F,0x80,0x3C,0x00,0x00,0x00,0xF0,0x07,0xE0,0x00,0x00,0x00,

0x00,0x07,0xBF,0xFF,0x00,0x00,0x01,0xE0,0x0F,0xE0,0x00,0x00,0x00,0x00,0x1F,0xFF,

0xFF,0xC0,0x00,0x03,0xC0,0x1F,0xE0,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xC0,0x00,

0x07,0x80,0x3F,0xF0,0x00,0x00,0x3F,0xFF,0xFF,0xC0,0x00,0x00,0x00,0x0F,0x80,0xFF,

0xF0,0x00,0x00,0xFF,0xFF,0xE7,0x80,0x00,0x00,0x00,0x1F,0x01,0xF9,0xF8,0x00,0x00,

0x7F,0xF8,0x07,0x80,0x00,0x00,0x00,0x3E,0x07,0xF1,0xFC,0x00,0x00,0x3E,0x00,0x07,

0x80,0x00,0x00,0x00,0x7C,0x0F,0xC0,0xFE,0x00,0x00,0x00,0x00,0x0F,0x80,0x00,0x00,

0x00,0xFC,0x3F,0x00,0xFF,0x80,0x00,0x00,0x00,0x0F,0x80,0x00,0x00,0x03,0xF8,0xFC,

0x00,0x7F,0xE0,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x07,0xF7,0xF0,0x00,0x7F,0xF8,

0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x07,0xFF,0x80,0x00,0x3F,0xFF,0x00,0x00,0x00,

0x1F,0x00,0x00,0x00,0x07,0xFC,0x00,0x00,0x1F,0xFF,0x00,0x00,0x00,0x3E,0x00,0x00,

0x00,0x07,0xC0,0x00,0x00,0x03,0xF0,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x07,0x80,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x18,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x3F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xF8,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xF0,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x03,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

};

uchar codewanli[]={/*--  调入了一幅图像:C:\Documents and

Settings\509\桌面\万力科技.bmp  --*/

/*--  宽度x高度=104x24  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x06,0x00,0x00,0x00,0x38,0x00,0xE0,0x60,0x00,0x00,0x00,0x00,0x00,0x07,0x00,

0x00,0x18,0x3C,0x00,0xF0,0x70,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x1E,0x1C,

0x00,0x70,0x70,0x00,0x00,0x01,0xFE,0x00,0x07,0x00,0x00,0x7E,0x1C,0x00,0x70,0x70,

0x00,0x03,0xFF,0xFE,0x00,0x07,0x00,0x01,0xF8,0x1C,0x00,0x70,0x70,0x00,0x3F,0xFC,

0x00,0x00,0x07,0x00,0x03,0xF1,0xFC,0x00,0x70,0x7F,0x00,0x1E,0x1C,0x00,0x00,0x0F,

0xFC,0x00,0x70,0xFC,0x00,0x7D,0xFE,0x00,0x00,0x3C,0x00,0x00,0x7F,0xFE,0x00,0x7E,

0x1C,0x03,0xFF,0xE0,0x00,0x00,0x3C,0x00,0x03,0xFE,0x1C,0x01,0xFF,0xFC,0x0F,0xF0,

0x60,0x00,0x00,0x3F,0xE0,0x01,0xEE,0x1C,0x1F,0xF1,0xFC,0x00,0x70,0xF8,0x00,0x00,

0x7F,0xF0,0x00,0x1E,0x3C,0x1F,0xFC,0x1D,0xC0,0x78,0xFE,0x00,0x00,0x70,0xE0,0x00,

0x1C,0x3C,0x01,0xFE,0x3F,0xE0,0x7F,0xFC,0x00,0x00,0xF1,0xE0,0x00,0x3C,0x3C,0x01,

0xF7,0xFF,0x81,0xF7,0x3C,0x00,0x01,0xE1,0xE0,0x00,0x38,0x38,0x03,0xF7,0xDC,0x03,

0xF3,0xB8,0x00,0x01,0xC1,0xC0,0x00,0x78,0x38,0x07,0x70,0x1C,0x1F,0xF1,0xF8,0x00,

0x03,0xC3,0xC0,0x00,0xF0,0x78,0x0E,0x70,0x1C,0x1E,0x70,0xF0,0x00,0x07,0x83,0x80,

0x00,0xE0,0x78,0x1C,0x70,0x1C,0x00,0x70,0xF8,0x00,0x0E,0x3F,0x80,0x01,0xC6,0x70,

0x00,0x70,0x1C,0x00,0x63,0xFE,0x00,0x3C,0x1F,0x00,0x03,0x83,0xF0,0x00,0x70,0x1C,

0x03,0xE7,0x8F,0xC0,0x30,0x1E,0x00,0x0F,0x01,0xE0,0x00,0x70,0x1C,0x01,0xFE,0x07,

0xF0,0x00,0x0C,0x00,0x1C,0x01,0xE0,0x00,0x60,0x1C,0x00,0xE0,0x03,0xE0,0x00,0x00,

0x00,0x00,0x01,0x80,0x00,0x00,0x1C,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00

};

uchar codeshuxie[]={/*--  调入了一幅图像:C:\Documents and

Settings\509\桌面\书写练习机.bmp  --*/

/*--  宽度x高度=168x40  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,

0x07,0x80,0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x00,

0x0F,0x00,0x00,0x00,0x00,0x07,0x83,0x00,0x01,0xC1,0xFF,0xF8,0x00,0x38,0x03,0xC0,

0x00,0x00,0x03,0xF0,0x00,0x0F,0x00,0x00,0x00,0x00,0x07,0x87,0xE0,0x01,0xFF,0xFF,

0xFC,0x00,0x3C,0x03,0xC0,0x00,0x01,0xFF,0xF8,0x00,0x0F,0x00,0x00,0x00,0x00,0x07,

0x83,0xF0,0x01,0xFE,0x00,0xF8,0x00,0x3C,0x07,0x80,0x00,0x3F,0xFF,0xFC,0x00,0x0E,

0x00,0x00,0x00,0x00,0x07,0x80,0xF0,0x03,0xDC,0x01,0xE0,0x00,0x78,0x07,0x80,0x00,

0x3F,0xC0,0x78,0x00,0x0E,0x00,0x70,0x00,0x00,0x07,0x9C,0x70,0x07,0xDE,0x01,0xC0,

0x00,0x77,0x07,0x00,0x00,0x00,0x00,0x78,0x00,0x0E,0x1F,0xFC,0x00,0x00,0x07,0xFF,

0x00,0x07,0x8F,0x00,0x00,0x00,0xF7,0x8F,0xFE,0x00,0x00,0x00,0x78,0x00,0x0E,0x0F,

0xF8,0x00,0x01,0xFF,0xFF,0x80,0x07,0x8F,0x3F,0x80,0x01,0xE7,0xFF,0xFC,0x00,0x07,

0x80,0x78,0x00,0x0F,0xFE,0x78,0x00,0x00,0xFF,0x8F,0x00,0x03,0x0F,0xFF,0x80,0x01,

0xCF,0xFF,0xC0,0x00,0x07,0xC0,0x78,0x00,0x7F,0xEE,0x70,0x00,0x00,0x07,0x8E,0x00,

0x00,0x1F,0xFC,0x00,0x07,0xCF,0x1C,0x00,0x00,0x03,0xE0,0x78,0x07,0xFF,0x8E,0x70,

0x00,0x00,0x07,0x8E,0x00,0x00,0x1E,0x00,0x00,0x07,0xFE,0x1F,0x00,0x00,0x01,0xE0,

0x78,0x03,0xEE,0x0E,0x70,0x00,0x00,0x07,0x9E,0x00,0x00,0x1E,0x00,0x00,0x07,0xFC,

0xFF,0xC0,0x00,0x00,0x0F,0xF0,0x00,0x1E,0x0E,0x70,0x00,0x00,0x07,0x9F,0xE0,0x00,

0x1C,0x0F,0xE0,0x00,0x78,0xFF,0xC0,0x00,0x00,0x3E,0xF0,0x00,0x1F,0x8E,0x70,0x00,

0x00,0x07,0xFF,0xF0,0x00,0x3F,0xFF,0xF0,0x00,0xF0,0x73,0xC0,0x00,0x00,0xF8,0xF0,

0x00,0x3F,0xCE,0xF0,0x00,0x03,0xFF,0xFF,0xF8,0x00,0x3F,0xFD,0xF0,0x00,0xFF,0xF3,

0xFE,0x00,0x03,0xF0,0xF0,0x00,0x7F,0xEE,0xE0,0x00,0x1F,0xFF,0x80,0xF0,0x00,0x3E,

0x00,0xF0,0x03,0xFE,0xEF,0xFF,0x00,0x0F,0xC0,0xF0,0x00,0x7E,0xEE,0xE0,0x60,0x0F,

0xE7,0x80,0xF0,0x00,0x38,0x00,0xF0,0x03,0xF1,0xFF,0xEE,0x00,0xFF,0x80,0xF0,0x00,

0xFE,0x1E,0xF0,0x60,0x00,0x07,0x81,0xF0,0x00,0x01,0xF8,0xF0,0x03,0xC1,0xFB,0xC0,

0x00,0xFE,0x00,0xF0,0x01,0xEE,0x1C,0x70,0x70,0x00,0x07,0x81,0xE0,0x00,0x7F,0xFD,

0xE0,0x00,0x00,0xC3,0xC0,0x00,0x7C,0x01,0xF0,0x01,0xCE,0x3C,0x70,0x70,0x00,0x03,

0x9F,0xE0,0x1F,0xFF,0xFD,0xE0,0x00,0x0F,0x63,0xF8,0x00,0x30,0x01,0xE0,0x03,0x8E,

0x38,0x78,0x70,0x00,0x03,0x8F,0xE0,0x1F,0xF0,0x01,0xE0,0x00,0x7E,0x73,0xFE,0x00,

0x00,0x01,0xE0,0x07,0x0E,0x78,0x7F,0xF0,0x00,0x03,0x87,0xC0,0x00,0x00,0x01,0xE0,

0x01,0xF8,0xF3,0xDF,0x00,0x00,0x7B,0xE0,0x0E,0x0E,0x70,0x3F,0xF8,0x00,0x03,0x83,

0x80,0x00,0x00,0x03,0xE0,0x0F,0xF0,0xF3,0xCF,0x00,0x00,0x7F,0xC0,0x00,0x0E,0xE0,

0x0F,0xF0,0x00,0x03,0x83,0x00,0x00,0x00,0x3F,0xC0,0x0F,0xC1,0xE3,0xCF,0x80,0x00,

0x1F,0xC0,0x00,0x0F,0xC0,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xC0,0x07,

0x01,0xFF,0xC7,0x00,0x00,0x0F,0x80,0x00,0x0F,0x80,0x00,0x00,0x00,0x03,0x80,0x00,

0x00,0x00,0x0F,0x80,0x00,0x01,0xCF,0xC0,0x00,0x00,0x0F,0x80,0x00,0x0E,0x00,0x00,

0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x07,0x80,0x00,0x00,0x06,

0x00,0x00,0x0E,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,

0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

};

uchar code yejiao[]={//右下脚翻起效果图

0xC0,0x00,0x00,0x00,0x3F,0xE0,0x00,0x00,0x00,0x3E,0x78,0x00,0x00,0x00,0xFC,0x7C,0x00,0x00,0x03,0xF8,0x7F,0xF0,0x00,0x1F,0xF0,0x3F,0xFF,0xFF,0xFF,0xE0,0x3F,0xFF,0xFF,0xFF,0xC0,0x3F,0xFF,0xFF,0xFF,0x80,

0x1F,0xFF,0xFF,0xFF,0x00,0x1F,0xFF,0xFF,0xFE,0x00,0x1F,0xFF,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xF8,0x00,0x0F,0xFF,0xFF,0xF0,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x0F,0xFF,0xFF,0xC0,0x00,0x0F,0xFF,0xFF,0x80,0x00,

0x0F,0xFF,0xFF,0x00,0x00,0x0F,0xFF,0xFE,0x00,0x00,0x0F,0xFF,0xFC,0x00,0x00,0x0F,0xFF,0xF8,0x00,0x00,0x07,0xFF,0xF0,0x00,0x00,0x07,0xFF,0xE0,0x00,0x00,0x07,0xFF,0xC0,0x00,0x00,0x07,0xFF,0x80,0x00,0x00,

0x07,0xFF,0x00,0x00,0x00,0x0F,0xFE,0x00,0x00,0x00,0x0F,0xFC,0x00,0x00,0x00,0x0F,0xF8,0x00,0x00,0x00,0x0F,0xF0,0x00,0x00,0x00,0x0F,0xE0,0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,0x1F,0x80,0x00,0x00,0x00,

0x1F,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,};

uchar code tu[]={//图画

//--  宽度x高度=128x32  --//

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x0D,0x02,0x03,0x40,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3A,0x00,0x0E,0x80,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x40,0x23,0x3C,0x00,0xCF,0x00,0x80,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x80,0x07,0x38,0x01,0xCE,0x00,0x80,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x01,0x00,0x0F,0x38,0x03,0xCE,0x00,0x40,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x42,0x00,0x17,0xB8,0x25,0xEE,0x08,0x40,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x42,0x00,0x27,0x9C,0x69,0xE7,0x1C,0x20,0x00,0x00,0x04,0x00,

0x00,0x00,0x00,0x00,0x24,0x00,0x47,0x9E,0xF1,0xE7,0xBC,0x21,0x00,0x00,0x08,0x00,

0x00,0x00,0x00,0x00,0x24,0x01,0x9B,0x9D,0xE6,0xE7,0x7C,0x20,0x80,0x00,0x10,0x00,

0x00,0x00,0x00,0x00,0x14,0x01,0x9B,0x9C,0xE6,0xE7,0x3A,0x20,0x80,0x04,0x20,0x00,

0x00,0x00,0x00,0x00,0x14,0x00,0x43,0x9C,0xF0,0xE7,0x3C,0x20,0x80,0x04,0x20,0x00,

0x00,0x00,0x00,0x00,0x12,0x00,0x27,0x9E,0xE9,0xE7,0xB8,0x40,0x80,0x02,0x40,0x00,

0x00,0x00,0x10,0x00,0x12,0x00,0x17,0xBD,0xE5,0xEF,0x78,0x41,0x00,0x02,0x40,0x00,

0x00,0x00,0x20,0x00,0x11,0x00,0x0F,0x38,0xC3,0xCE,0x30,0x41,0x00,0x01,0x40,0x00,

0x00,0x00,0x40,0x00,0x21,0x00,0x07,0x30,0x01,0xCC,0x10,0x42,0x00,0x01,0x40,0x00,

0x00,0x10,0x80,0x00,0x21,0x00,0x03,0x30,0x00,0xCC,0x10,0x8C,0x00,0x01,0x20,0x00,

0x00,0x10,0x80,0x00,0x21,0x00,0x01,0x38,0x00,0x4E,0x08,0xB0,0x00,0x01,0x20,0x00,

0x00,0x09,0x00,0x00,0x22,0x00,0x00,0xB8,0x00,0x2E,0x09,0xC0,0x00,0x01,0x10,0x00,

0x00,0x09,0x00,0x00,0x42,0x00,0x00,0x74,0x00,0x1D,0x0B,0x00,0x00,0x02,0x10,0x00,

0x00,0x05,0x00,0x00,0x44,0x00,0x00,0x1A,0x00,0x06,0x85,0x00,0x00,0x02,0x10,0x00,

0x00,0x05,0x00,0x00,0x84,0x00,0x00,0x06,0x00,0x01,0x8D,0x00,0x00,0x02,0x10,0x00,

0x00,0x04,0x80,0x00,0x88,0x00,0x00,0x00,0x00,0x00,0x0D,0x00,0x00,0x02,0x20,0x00,

0x00,0x04,0x80,0x00,0x88,0x80,0x00,0x00,0x00,0x00,0x15,0x00,0x00,0x04,0x20,0x00,

0x00,0x04,0x40,0x00,0x88,0x80,0x00,0x00,0x00,0x00,0x14,0x80,0x00,0x04,0x40,0x00,

0x00,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40,0x00,

0x00,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x80,0x00,

};

uchar code tu2[]={//图画

//--  宽度x高度=128x32  --//

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x7E,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x01,0xC0,0x01,0xD2,0x00,0x00,0x9F,0x1D,0x20,0x00,0x0E,0x00,0x07,0x80,0x00,

0x00,0x07,0x60,0xFE,0x0D,0x19,0x8B,0x8E,0xE0,0xD1,0x98,0xF1,0xE0,0x04,0x40,0x00,

0x03,0xFC,0x1F,0x00,0x04,0xE6,0x5C,0x93,0x00,0x4E,0x67,0x10,0x9F,0xF8,0x30,0x00,

0x0E,0x00,0x00,0x00,0x00,0x00,0x30,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,

0x18,0x00,0x00,0x00,0x7E,0x00,0xC6,0x0E,0x47,0xE0,0x00,0x00,0x00,0x00,0x03,0xFF,

0xE0,0x00,0x00,0x0A,0xAF,0xAB,0x1E,0x1B,0x6A,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,

0x80,0x00,0x00,0x05,0x55,0xD5,0xF4,0x37,0xD5,0x58,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x3F,0xFA,0xAB,0xAF,0xEA,0xAB,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x01,0xFF,0xFF,0xFF,0xF8,0x1F,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x07,0xFF,0xFF,0xFF,0xF9,0xAF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,

0x1F,0xFE,0x0F,0xFF,0xFF,0xFF,0xFF,0xCF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,

0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3,0xDF,0xFF,0xFF,0xC0,0x05,0x50,0x00,0x00,0x00,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF4,0xA3,0xFF,0xFF,0xFC,0x2A,0xA0,0x00,0x00,0x00,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x15,0x10,0x55,0xFF,0xFE,0x15,0x50,0x00,0x00,0x00,

0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0x24,0xE0,0x2B,0x7F,0xFF,0x0F,0xA0,0x00,0x00,0x00,

0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x58,0x00,0xFF,0xFF,0xFF,0x0F,0xFC,0x00,0x00,0x00,

0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,0x0F,0xFF,0xFF,0xFF,0x87,0xFF,0xFF,0x01,0xE0,

0xFF,0xFF,0xFF,0xFF,0xF0,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xC7,0xFF,0xFF,0xFF,0xF8,

0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xC3,0xFF,0xFF,0xFF,0xFF,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE3,0xFF,0xFF,0xFF,0xFF,

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE1,0xFF,0xFF,0xFF,0xFF,};

uchar codebihualx[]={/*--  

调入了一幅图像:E:\字模\开机画面\笔画练习2.bmp  --*/

/*--  宽度x高度=96x24  --*/

/*--  调入了一幅图像:E:\yy\字模\笔画练习.bmp  --*/

/*--  宽度x高度=96x24  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,

0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x8F,0x80,0x00,0x00,0x00,0x01,0x06,

0x00,0x00,0x0F,0x00,0x00,0xFF,0xE0,0x00,0xBE,0x00,0x01,0xC6,0xC0,0x01,0xFF,0xC0,

0x00,0xFF,0xE0,0x00,0xFF,0x00,0x03,0xCF,0xE0,0x00,0xFD,0xC0,0x01,0xF7,0xE0,0x00,

0xFF,0x00,0x07,0xCF,0xC0,0x00,0x70,0xC0,0x03,0xF7,0x80,0x00,0xFC,0x00,0x1F,0x3F,

0x00,0x00,0x00,0xC0,0x03,0xFF,0x80,0x01,0xBF,0x80,0x3F,0x7C,0x00,0x07,0xE0,0xC0,

0x03,0xFF,0x00,0x03,0x7F,0xC0,0x3F,0x9F,0x00,0x07,0xF0,0xC0,0x01,0x7F,0x00,0x03,

0xFB,0xC0,0x17,0xBF,0x80,0x07,0xF0,0xC0,0x00,0xF8,0x00,0x03,0xBF,0xC0,0x0F,0x19,

0xE0,0x02,0xE8,0xC0,0x01,0xFE,0x00,0x09,0xFB,0x80,0x1F,0x3F,0xC0,0x03,0xF9,0xC0,

0x00,0x7E,0x00,0x19,0xFF,0xB8,0x0E,0x3F,0x00,0x01,0xF1,0xC0,0x01,0xFC,0x00,0x1D,

0xFF,0x18,0x06,0x3F,0x00,0x07,0xF1,0xC0,0x00,0x7F,0x80,0x1F,0xFF,0x58,0x06,0x1B,

0xF0,0x07,0xE1,0xC0,0x01,0xFF,0x80,0x0E,0xE0,0x78,0x0E,0x3F,0x78,0x07,0xF9,0xC0,

0x07,0xF8,0x0C,0x0F,0xFF,0xF8,0x0E,0x7D,0x78,0x07,0x3F,0x80,0x07,0xE0,0x0C,0x0F,

0xF0,0xF8,0x0E,0x77,0x38,0x00,0x1F,0x80,0x07,0x20,0x1C,0x0F,0x80,0x70,0x0C,0x23,

0x00,0x00,0x0F,0x80,0x00,0x38,0xFC,0x0E,0x00,0x60,0x00,0x01,0x00,0x00,0x07,0x00,

0x00,0x1F,0xFC,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar codequanzilx[]={/*--  调入了一幅图像:E:\yy\字模\全字练习.bmp

--*/

/*--  宽度x高度=96x24  --*/

0x00,0x30,0x00,0x00,0xE0,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,

0xF0,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0xFF,0xC0,0x01,0x06,

0x00,0x00,0x0F,0x00,0x00,0x70,0x00,0x0B,0xFF,0xE0,0x01,0xC6,0xC0,0x01,0xFF,0xC0,

0x00,0xFC,0x00,0x0F,0xFB,0xE0,0x03,0xCF,0xE0,0x00,0xFD,0xC0,0x00,0xFE,0x00,0x1D,

0xBF,0xC0,0x07,0xCF,0xC0,0x00,0x70,0xC0,0x01,0xC7,0x00,0x18,0x3F,0x00,0x1F,0x3F,

0x00,0x00,0x00,0xC0,0x01,0xDF,0x80,0x19,0xFC,0x00,0x3F,0x7C,0x00,0x07,0xE0,0xC0,

0x03,0xBF,0xC0,0x39,0xFC,0x00,0x3F,0x9F,0x00,0x07,0xF0,0xC0,0x03,0xFD,0xF0,0x3B,

0xBC,0x00,0x17,0xBF,0x80,0x07,0xF0,0xC0,0x07,0xFC,0xFC,0x30,0x78,0x00,0x0F,0x19,

0xE0,0x02,0xE8,0xC0,0x06,0x38,0x7E,0x10,0x78,0x00,0x1F,0x3F,0xC0,0x03,0xF9,0xC0,

0x1C,0x7C,0x3E,0x00,0x7F,0x00,0x0E,0x3F,0x00,0x01,0xF1,0xC0,0x19,0xFC,0x00,0x01,

0xFF,0x00,0x06,0x3F,0x00,0x07,0xF1,0xC0,0x31,0xFC,0x00,0x03,0xFF,0x00,0x06,0x1B,

0xF0,0x07,0xE1,0xC0,0x00,0xF8,0x00,0x07,0xEC,0x00,0x0E,0x3F,0x78,0x07,0xF9,0xC0,

0x00,0xFE,0x00,0x07,0x8C,0x00,0x0E,0x7D,0x78,0x07,0x3F,0x80,0x01,0xFF,0x00,0x06,

0x0C,0x00,0x0E,0x77,0x38,0x00,0x1F,0x80,0x01,0xFF,0x00,0x03,0x0C,0x00,0x0C,0x23,

0x00,0x00,0x0F,0x80,0x00,0xC0,0x00,0x03,0xFC,0x00,0x00,0x01,0x00,0x00,0x07,0x00,

0x00,0x00,0x00,0x01,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code shijiantzh[]={/*--  调入了一幅图像:E:\yy\字模\时间调整.bmp  

--*/

/*--  宽度x高度=96x24  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,

0x17,0x80,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0xE0,0x00,0x3F,0xC0,0x03,0x81,

0xE0,0x00,0x33,0x80,0x00,0x00,0x70,0x01,0xFC,0xE0,0x03,0xC7,0xF0,0x00,0x79,0xC0,

0x03,0xC0,0x70,0x01,0xC0,0xE0,0x03,0xEF,0xB8,0x01,0xF1,0x80,0x03,0xE0,0x30,0x01,

0xC0,0xE0,0x07,0xDB,0xB8,0x00,0xFF,0xF0,0x00,0x60,0x3C,0x02,0xF8,0xE0,0x02,0x1F,

0xF8,0x03,0x3F,0xF0,0x06,0x63,0xFE,0x0A,0x7C,0xE0,0x07,0x1F,0xF8,0x06,0xFF,0xC0,

0x06,0x7F,0xFE,0x0E,0xFC,0xE0,0x0F,0x3F,0xF0,0x07,0xFF,0xC0,0x0F,0xFF,0xF4,0x0E,

0xEC,0xE0,0x7F,0x77,0xF0,0x03,0xF8,0xC0,0x0F,0xE6,0x30,0x0E,0xFC,0x60,0x7F,0x7F,

0xD0,0x03,0xFF,0xE0,0x07,0xEF,0x30,0x0E,0xFC,0x60,0x3B,0xFF,0x90,0x01,0xFF,0xF0,

0x07,0xEF,0xB0,0x0E,0xFC,0x60,0x03,0xBF,0xD0,0x01,0xEF,0x70,0x07,0xEF,0xB0,0x0C,

0xFC,0x60,0x03,0xBF,0xF0,0x03,0xFF,0x10,0x07,0xEF,0xB0,0x0C,0x7C,0x60,0x03,0xBD,

0xD8,0x07,0x3E,0x00,0x0F,0xE7,0x30,0x0C,0x38,0x60,0x03,0x3F,0x98,0x00,0x6F,0x00,

0x0F,0xE3,0xF0,0x0C,0x0E,0x60,0x03,0x37,0x98,0x00,0x6F,0x80,0x06,0xC1,0xF0,0x04,

0x07,0xE0,0x03,0x30,0xF8,0x00,0x6F,0x00,0x00,0xC0,0xF0,0x00,0x03,0xE0,0x01,0x60,

0x78,0x00,0x6F,0xC0,0x00,0x00,0x70,0x00,0x01,0xE0,0x00,0x00,0x38,0x00,0x7F,0xE0,

0x00,0x00,0x20,0x00,0x00,0xE0,0x00,0x00,0x10,0x00,0xF9,0xE0,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code chanpinjj[]={/*--  调入了一幅图像:E:\yy\字模\产品简介.bmp  

--*/

/*--  宽度x高度=96x24  --*/

0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x10,0x00,0x00,0x1E,0x00,0x00,

0x01,0x00,0x00,0x83,0x00,0x00,0x18,0x00,0x00,0x1F,0xC0,0x00,0x0F,0x80,0x00,0xCF,

0xC0,0x00,0x3C,0x00,0x00,0xFF,0xE0,0x01,0xBF,0xC0,0x01,0xFF,0xE0,0x00,0x78,0x00,

0x03,0xFF,0x00,0x00,0xFF,0xC0,0x03,0xFF,0xE0,0x00,0xFE,0x00,0x03,0xFF,0x00,0x00,

0xE7,0x80,0x07,0xF7,0xC0,0x00,0xFF,0x00,0x00,0x7F,0x00,0x00,0xE7,0x00,0x07,0xFF,

0x00,0x01,0xC7,0x80,0x00,0x77,0x00,0x00,0xFF,0x00,0x07,0x3F,0x80,0x03,0xC3,0xC0,

0x00,0x6F,0xF0,0x00,0xFF,0x00,0x00,0xFD,0xC0,0x03,0x87,0xF0,0x00,0xFE,0x30,0x01,

0xFC,0x00,0x01,0xC1,0xC0,0x07,0xF3,0xFC,0x0F,0xE0,0x00,0x03,0xE0,0x40,0x03,0xFD,

0xC0,0x0F,0xE3,0x7F,0x1F,0xC0,0x00,0x06,0x6D,0xF0,0x03,0x7C,0xC0,0x0D,0xE3,0x3F,

0x01,0xC0,0x00,0x0D,0xFF,0xF0,0x03,0xCC,0xC0,0x3C,0xE3,0x1F,0x01,0x80,0x00,0x0F,

0xFF,0xF8,0x02,0xFC,0xC0,0x38,0xE2,0x00,0x03,0x80,0x00,0x0F,0xFE,0xF0,0x02,0xFC,

0xC0,0x10,0xE2,0x00,0x03,0x80,0x00,0x06,0xEE,0xE0,0x02,0xFD,0xC0,0x00,0xC2,0x00,

0x03,0x00,0x00,0x07,0xEF,0xE0,0x02,0xFD,0xC0,0x01,0xC2,0x00,0x07,0x00,0x00,0x07,

0xE7,0xE0,0x04,0xF9,0xC0,0x01,0xC2,0x00,0x07,0x00,0x00,0x06,0x04,0x60,0x04,0x1F,

0xC0,0x00,0x87,0x00,0x0E,0x00,0x00,0x00,0x00,0x00,0x04,0x07,0xC0,0x00,0x07,0x00,

0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x00,0x03,0x00,0x1C,0x00,0x00,0x00,

0x00,0x00,0x00,0x01,0xC0,0x00,0x02,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code yule[]={/*--  调入了一幅图像:E:\yy\字模\娱乐.bmp  --*/

/*--  宽度x高度=48x24  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x01,0xC0,0x00,

0x3C,0x00,0x00,0x67,0xE0,0x00,0x7C,0x00,0x00,0x7C,0xE0,0x01,0xF8,0x00,0x04,0x3F,

0xE0,0x03,0xE0,0x00,0x06,0x3F,0xE0,0x03,0x98,0x00,0x06,0x3F,0xE0,0x03,0x9E,0x00,

0x07,0x7F,0xE0,0x00,0x8F,0x00,0x07,0xF7,0xF0,0x01,0x9F,0x00,0x07,0xEF,0xE0,0x03,

0xFE,0x00,0x0F,0xEF,0xCC,0x07,0xF8,0x00,0x1F,0xE3,0xFE,0x07,0xE8,0x00,0x3F,0xE7,

0xFE,0x07,0x8F,0xC0,0x39,0xFF,0x80,0x07,0x1F,0x60,0x1C,0xFF,0xF0,0x06,0x79,0xE0,

0x07,0xF3,0x78,0x07,0xEF,0xE0,0x01,0xE7,0x3C,0x07,0xFC,0xE0,0x00,0xDE,0x1C,0x0F,

0x78,0x00,0x00,0x00,0x00,0x07,0x38,0x00,0x00,0x00,0x00,0x06,0x08,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar codexuexi[]={/*--  调入了一幅图像:E:\yy\字模\学习.bmp --*/

/*--  宽度x高度=48x24  --*/

0x00,0x39,0x80,0x00,0x00,0x00,0x00,0x33,0x80,0x00,0x00,0x00,0x00,0xB3,0x80,0x00,

0x0F,0x00,0x03,0xB7,0x00,0x01,0xFF,0xC0,0x03,0xDE,0x00,0x00,0xFD,0xC0,0x03,0xDF,

0xE0,0x00,0x70,0xC0,0x01,0xFF,0xF0,0x00,0x00,0xC0,0x07,0xF9,0xF0,0x07,0xE0,0xC0,

0x0D,0xE7,0xF0,0x07,0xF0,0xC0,0x0F,0x7F,0x80,0x07,0xF0,0xC0,0x1C,0x7F,0x00,0x02,

0xE8,0xC0,0x1C,0x7E,0x00,0x03,0xF9,0xC0,0x18,0x1F,0x00,0x01,0xF1,0xC0,0x18,0x3F,

0x80,0x07,0xF1,0xC0,0x08,0xFF,0xC0,0x07,0xE1,0xC0,0x01,0xF7,0x80,0x07,0xF9,0xC0,

0x01,0x07,0x00,0x07,0x3F,0x80,0x01,0x07,0x00,0x00,0x1F,0x80,0x00,0xEE,0x00,0x00,

0x0F,0x80,0x00,0x7E,0x00,0x00,0x07,0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar codehuaban[]={/*--  调入了一幅图像:E:\yy\字模\画板.bmp --*/

/*--  宽度x高度=48x24  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,

0x80,0x00,0x00,0xBE,0x00,0x01,0xC1,0xC0,0x00,0xFF,0x00,0x00,0xC3,0xE0,0x00,0xFF,

0x00,0x00,0xCF,0xE0,0x00,0xFC,0x00,0x01,0xEF,0xC0,0x01,0xBF,0x80,0x03,0xFB,0x80,

0x03,0x7F,0xC0,0x07,0xDF,0x00,0x03,0xFB,0xC0,0x7F,0xB7,0xE0,0x03,0xBF,0xC0,0x7F,

0xEF,0xE0,0x09,0xFB,0x80,0x3F,0xEF,0xE0,0x19,0xFF,0xB8,0x19,0xFE,0xE0,0x1D,0xFF,

0x18,0x03,0xDF,0xE0,0x1F,0xFF,0x58,0x07,0xFB,0xC0,0x0E,0xE0,0x78,0x07,0xFB,0xF0,

0x0F,0xFF,0xF8,0x07,0x77,0xF8,0x0F,0xF0,0xF8,0x03,0x7F,0x3C,0x0F,0x80,0x70,0x01,

0x20,0x1E,0x0E,0x00,0x60,0x01,0x80,0x06,0x00,0x00,0x60,0x01,0x80,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar codexitong[]={/*--  调入了一幅图像:E:\yy\字模\系统设置.bmp

--*/

/*--  宽度x高度=96x24  --*/

0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x00,0x00,

0x04,0x00,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x3F,0x00,0x00,0x07,0x00,0x00,0xF0,

0xE0,0x00,0x7F,0xE0,0x00,0x7E,0x00,0x01,0x87,0x80,0x00,0xF3,0xF0,0x03,0xFF,0xE0,

0x00,0xFC,0x00,0x03,0xC1,0x80,0x00,0xFF,0xF0,0x03,0xBF,0xE0,0x03,0xFE,0x00,0x03,

0xC3,0xC0,0x03,0xFF,0xE0,0x01,0xBF,0xC0,0x07,0xFF,0x00,0x07,0x8F,0xC0,0x07,0x87,

0xE0,0x01,0xFF,0x80,0x07,0xFF,0x80,0x1F,0x5F,0x80,0x00,0x87,0xF0,0x00,0xF8,0x00,

0x07,0xFF,0x80,0x3F,0x5F,0xE0,0x11,0xCE,0x78,0x00,0xFF,0xC0,0x03,0xFE,0x00,0x3F,

0x47,0xE0,0x1B,0xCF,0xF0,0x07,0xFE,0x40,0x03,0xFF,0x00,0x17,0xCF,0xE0,0x1F,0xCF,

0xC0,0x07,0xFF,0x00,0x03,0xFF,0xC0,0x0E,0xBF,0x80,0x1F,0xCF,0xE0,0x02,0x7F,0x00,

0x00,0xFF,0xC0,0x1F,0xBF,0xC0,0x0F,0xC6,0xE0,0x00,0x7D,0x00,0x03,0xFD,0xC0,0x1F,

0x9F,0xC0,0x01,0xFF,0xC0,0x00,0x7D,0x00,0x03,0xFC,0x00,0x1F,0x0F,0x80,0x01,0xCF,

0xC0,0x00,0x7F,0x00,0x01,0x9F,0x80,0x07,0x1F,0x06,0x01,0xC7,0xF0,0x00,0x7D,0x00,

0x00,0x3D,0xE0,0x07,0x3B,0x06,0x01,0xFF,0x7C,0x00,0x7F,0x00,0x07,0xFD,0xE0,0x0E,

0x73,0x06,0x01,0xC0,0x3C,0x00,0x7F,0x00,0x07,0xFD,0xE0,0x0E,0x63,0x1E,0x01,0x80,

0x1E,0x03,0xFF,0xF8,0x07,0x7C,0xE0,0x0C,0x03,0xFE,0x00,0x80,0x04,0x0F,0xF1,0x78,

0x03,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x08,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code shu[]={

/*--  楷体_GB231242;  此字体下对应的点阵为:宽x高=56x56   --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x03,0xE0,0x00,0x00,0x00,0x00,0x00,0x03,0xF0,0x00,0x00,0x00,0x00,0x00,0x01,0xF8,

0x00,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,

0x00,0x00,0x00,0x01,0xF0,0x03,0xC0,0x00,0x00,0x00,0x01,0xF0,0x03,0xF0,0x00,0x00,

0x00,0x00,0xF0,0x01,0xFC,0x00,0x00,0x00,0x00,0xF0,0x00,0xFC,0x00,0x00,0x00,0x00,

0xF0,0x00,0x7E,0x00,0x00,0x00,0x00,0xF0,0x00,0x3E,0x00,0x00,0x00,0x00,0xF0,0x00,

0x0E,0x00,0x00,0x00,0x00,0xF0,0x7C,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,

0x00,0x00,0x1F,0xFF,0xFF,0x80,0x00,0x00,0x07,0xFF,0xFE,0x3F,0x80,0x00,0x00,0x07,

0xFF,0xF0,0x1F,0x00,0x00,0x00,0x01,0xF8,0xF0,0x1E,0x00,0x00,0x00,0x00,0x00,0xF0,

0x1E,0x00,0x00,0x00,0x00,0x00,0xF0,0x1E,0x00,0x00,0x00,0x00,0x00,0xF0,0x3C,0x00,

0x00,0x00,0x00,0x00,0xF0,0x3C,0x00,0x00,0x00,0x00,0x00,0xF0,0x38,0x00,0x00,0x00,

0x00,0x00,0xF0,0x38,0x30,0x00,0x00,0x00,0x00,0xF0,0x3B,0xFC,0x00,0x00,0x00,0x00,

0xF3,0xFF,0xFE,0x00,0x00,0x00,0x01,0xFF,0xFF,0xFF,0x00,0x00,0x01,0xFF,0xFF,0xFF,

0xFF,0x80,0x03,0xFF,0xFF,0xFE,0x00,0x3F,0x00,0x03,0xFF,0xFF,0xF0,0x00,0x3E,0x00,

0x01,0xFF,0xE0,0xF0,0x00,0x3E,0x00,0x00,0xF8,0x00,0xF0,0x00,0x3E,0x00,0x00,0x00,

0x00,0xF0,0x00,0x7C,0x00,0x00,0x00,0x00,0xF0,0x00,0x7C,0x00,0x00,0x00,0x00,0xF0,

0x00,0x7C,0x00,0x00,0x00,0x00,0xF0,0x38,0xFC,0x00,0x00,0x00,0x00,0xF0,0x3F,0xF8,

0x00,0x00,0x00,0x00,0xF0,0x1F,0xF8,0x00,0x00,0x00,0x00,0xF0,0x07,0xF8,0x00,0x00,

0x00,0x00,0xF0,0x03,0xF0,0x00,0x00,0x00,0x00,0xF0,0x03,0xE0,0x00,0x00,0x00,0x00,

0xF0,0x01,0xE0,0x00,0x00,0x00,0x00,0xF0,0x01,0x80,0x00,0x00,0x00,0x00,0xF0,0x00,

0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,

0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,

0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x60,

0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code bhshu[]={/*--  调入了一幅图像:E:\yy\字模\竖.bmp  --*/

/*--  宽度x高度=32x56  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00,0x03,0xF0,

0x00,0x00,0x01,0xF8,0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,

0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xE0,

0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x60,

0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar codefanhui[]={/*--  宽度x高度=30x20  --*/

/*--  宽度不是8的倍数,现调整为:宽度x高度=32x20  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,

0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,0x00,0x00,0x01,0xF0,

0x00,0x40,0x01,0xF0,0x00,0xC0,0x01,0xF0,0x01,0xC0,0x01,0xF0,0x03,0xFF,0xFF,0xF0,

0x07,0xFF,0xFF,0xF0,0x0F,0xFF,0xFF,0xF0,0x07,0xFF,0xFF,0xF0,0x03,0xFF,0xFF,0xF0,

0x01,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,

};

uchar code kongbai[]={/*--  调入了一幅图像:这是您新建的图像  --*/

/*--  宽度x高度=80x80  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

};

uchar codechonglian[]={/*--  调入了一幅图像:E:\字模\开机画面\重练.bmp  

--*/

/*--  宽度x高度=40x20  --*/

0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x70,0x60,0x01,0xFE,0x00,0x60,0x60,0x0F,

0x30,0x00,0xE0,0xC7,0x00,0x30,0x60,0xC7,0xFC,0x3F,0xFF,0xC1,0x9C,0xC0,0x00,0x30,

0x01,0x99,0x80,0x07,0xFF,0x83,0xF7,0xF8,0x06,0x33,0x00,0x63,0x30,0x06,0x33,0x00,

0x63,0x30,0x07,0xFF,0x00,0xC6,0x33,0x06,0x33,0x01,0xBF,0xFE,0x07,0xFF,0x03,0xE0,

0x30,0x00,0x30,0x00,0x03,0xBC,0x00,0x31,0x80,0x1B,0x37,0x0F,0xFF,0x01,0xF6,0x33,

0x00,0x30,0x03,0x8C,0x31,0x3F,0xFF,0xF0,0x19,0xF0,0x00,0x00,0x00,0x00,0x70,0x00,

0x00,0x00,0x00,0x00

};

uchar codetu3[6][72]={//--  调入了一幅图像:字模:\画圆 矩形 直线

/*--  宽度x高度=24x24  --*/

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF7,0xC0,0x00,0x03,0xFF,0xFF,0xFF,0xFF,

0xFF,0xFF,0xFE,0xFF,0x7F,0xFE,0x00,0x7F,0xFE,0xF7,0x77,0xE6,0xF7,0x77,0xEE,0xF7,

0x77,0xEE,0xF7,0x77,0xEE,0x00,0x77,0xEE,0xF7,0x77,0xEE,0xF7,0x77,0xEE,0xF7,0x77,

0xEE,0xF7,0x77,0xEE,0xF7,0x77,0xEE,0x08,0x77,0xEF,0xFF,0xF7,0xCF,0xFF,0xF7,0xE0,

0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xEF,0xFF,0xF7,0xE0,0x00,0x07,0xEF,0xFF,0xF7,0xEF,

0x00,0x77,0xEF,0x7E,0xF7,0xEF,0x7E,0xF7,0xEF,0x00,0xF7,0xEF,0xFF,0xF7,0xEE,0x00,

0x77,0xEE,0xFF,0x77,0xEE,0xE7,0x77,0xEE,0xE7,0x77,0xEE,0xEF,0x77,0xEE,0xEF,0x77,

0xEF,0xCB,0xF7,0xEF,0xDC,0xF7,0xEF,0xBE,0x37,0xEE,0x7F,0xB7,0xE9,0xFF,0xF7,0xE6,

0x00,0x07,0xEF,0xFF,0xF7,0xFF,0xFF,0xFF},

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF3,0xFF,0xFF,0xF3,0xF7,0xFB,0xF7,0xF0,0x07,0xEF,

0xB7,0xFF,0xE0,0x17,0xFF,0xDD,0xF7,0xFF,0xDD,0xF7,0xEF,0xBD,0xF0,0x07,0xFD,0xF7,

0xEF,0xFD,0xD7,0xEF,0x80,0x17,0xEF,0xFD,0xE7,0xEF,0xF9,0xF7,0xEF,0xF8,0xF0,0x0F,

0xFB,0x77,0xFF,0xFB,0x37,0xFF,0xF7,0xB7,0xFF,0xF7,0xB7,0xFF,0xEF,0xF7,0xFB,0xDF,

0xF0,0x01,0xBF,0xF7,0xFF,0xFF,0xFF,0xFF},

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xEF,0xFF,0xF9,0xE7,0xE0,0x07,0xCF,0xFD,

0xCF,0x9F,0xFD,0xCF,0xBF,0xFD,0xCF,0x7F,0xFD,0xCC,0xFF,0xFD,0xCB,0xF7,0xFD,0xC9,

0xE7,0xE0,0x07,0xCF,0xF9,0xCF,0xBF,0xF9,0xCF,0x7F,0xFB,0xCE,0xFF,0xFB,0xC9,0xFB,

0xFB,0xCF,0xF3,0xF3,0xCF,0xE7,0xF7,0xCF,0xCF,0xEF,0xCF,0xBF,0xEF,0xCE,0x7F,0xDF,

0xCD,0xFF,0xBF,0xF3,0xFF,0xFF,0xFF,0xFF},

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE7,0xFF,0xFF,0xEF,0xF7,0xFF,0xEF,0xE7,0xE0,

0x00,0x1F,0xFF,0xEF,0xFF,0xFD,0xCF,0x9F,0xFC,0x30,0x1F,0xFD,0xFF,0xBF,0xFD,0xFF,

0xBF,0xFC,0x00,0x3F,0xFD,0xFF,0xBF,0xFD,0xFF,0xBF,0xFD,0xFF,0xBF,0xFC,0x00,0x3F,

0xFD,0xFF,0xBF,0xFD,0xFF,0xBF,0xFC,0x00,0x3F,0xFD,0xFF,0xBF,0xFD,0xFF,0xBF,0xFD,

0xFF,0xB3,0x82,0x00,0x4F,0xFF,0xFF,0xFF},

{

0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF9,0xF9,0xFF,0xF9,0xF9,0x3F,0xFB,0xF9,0x9F,0xF7,0xF9,0xDF,0xF7,0x79,0xFF,0xEF,0x39,0xE7,

0xEE,0x40,0x1F,0xD8,0xF9,0xFF,0xC5,0xF9,0xF7,0xF9,0xF9,0xC3,0xFB,0x04,0x3F,0xF7,0xFD,0xFF,0xEF,0x3D,0xCF,0xC0,0xFD,0x9F,

0xEF,0xFC,0x3F,0xFF,0xFE,0x7F,0xFF,0x3C,0x7B,0xC0,0xF9,0x3B,0xCF,0xE7,0x9B,0xFF,0x9F,0xC3,0xFF,0x7F,0xE3,0xFF,0xFF,0xFF}

};

/***********************************************************************/

/*                                   延时子程序                                                                        */

/***********************************************************************/

void delay(uint

time){//延迟子程序,当time=1000时为延时1s;当time=10时为延时10ms(与时钟频率有关)

         uint ii;

         uint jj;

         for (ii=0;ii<time;ii++)

         {

                   for(jj=0;jj<4000;jj++)

                   ;

         }         }

/***********************************************************************/

/*                                      SPI通信子程序                                                                 */

/***********************************************************************/

voidSendSPIByte(unsigned char ch)                                     // 通过SPI发送一个字节数据

{

        SPIF = 0;                                                     // SPIF位清零

        SPI0DAT = ch;                                                 //启动一次数据发送

        while (SPIF == 0);                                            // 等待数据发送完毕

}

unsigned charGetSPIByte()                                             //通过SPI接收一个字节数据

{

        SPIF = 0;                                                     // SPIF位清零

        SPI0DAT = 0;                                                  //启动一次数据接收

        while (SPIF == 0);                                            //等待数据接收完毕

                    return SPI0DAT;                                  // 读取SPI接收到的数据

}

/***********************************************************************/

/*                                  对1335进行写控制                                                                  */

/***********************************************************************/

void LcdCommand(ucharch)                                               //写命令

{

CS=0;

CS=0;

CS=0;

CS=0;

A0=1;

A0=1;

A0=1;

A0=1;

RD=1;

RD=1;

RD=1;

RD=1;

WR=0;

WR=0;

WR=0;

WR=0;

P4=ch;

WR=1;

WR=1;

WR=1;

WR=1;

CS=1;

CS=1;

CS=1;

CS=1;

                                                                                                                                      //延时1ms

}

voidLcdDataWrite(uchar ch)                                                                 //写参数

{

CS=0;

CS=0;

CS=0;

CS=0;

A0=0;

A0=0;

A0=0;

A0=0;

RD=1;

RD=1;

RD=1;

RD=1;

WR=0;

WR=0;

WR=0;

WR=0;

P4=ch;

WR=1;

 WR=1;

WR=1;

WR=1;

A0=1;

A0=1;

A0=1;

A0=1;

CS=1;

CS=1;

CS=1;

CS=1;

                                                                                                                                      //延时1ms

}

voidclearscreen()                                                               //清屏

{uint m=76800;

LcdCommand(0x4c);                                                               // 光标自动向右增一  

LcdCommand(0x46);                                                               // 设定光标位置命令

LcdDataWrite(0x00);                                                             // 从0000位置开始

LcdDataWrite(0x00);

LcdCommand(0x42);                                           // 允许MPU连续地把显示数据写入显示区内命令

while(m--){

LcdDataWrite(0x00);

                                                                                                                                      //使屏幕无任何显示

                              }

}

void SetCursor(ucharx,uchar y)                                                  //光标定位

{   uint temp;

         temp=(uint)y*40+x;

   LcdCommand(0x46);                                                             //光标Locate,定位

   LcdDataWrite((uchar)(temp&0xff));                                             //

写入参数CSRL设置参数光标指针低8位

   LcdDataWrite((uchar)(temp/256));                                              //

写入参数CSRH设置参数光标指针高8位

}

void MyGraph(ucharx,uchar y,uchar Weight,uchar Height,uchar code

*ptr){

         

         uchar uRow,uCol,temp,nbyte;

   uint k;

   uRow = x;

   uCol = y;

   LcdCommand(0x4f);                              //光标移动方向定义:自动下移

    SetCursor(uRow,uCol);                    //起点定位

         nbyte=(uchar)(Weight/8);

         for(k=0;k<nbyte;k++)                     // 分16行输出

           { SetCursor(uRow+k,uCol);

               LcdCommand(0x42);        //写数据(命令)

              for(temp=0;temp<Height;temp++)

                                        {LcdDataWrite(ptr[temp*nbyte+k]);}                                                

           }

         

}

///*******************************写指令函数*********************

void wr_zhilin(uchardate)

{  CS=0;A0=1;

  WR=0;RD=1;

  P4=date;

  WR=1;

  CS=1;A0=0;

}

//******************************写数据函数**********************

void wr_shuju(uchardate)

{  CS=0;A0=0;

  WR=0;RD=1;

  P4=date;

  WR=1;

  CS=1;A0=1;

}

//****************************READ**************************

ucharread_shuju(void)

{  uchar date;

 // CS=0;

 // CS=0;

  CS=0;

  CS=0;

 // A0=1;

 // A0=1;

  A0=1;

  A0=1;

 // WR=0;

 // WR=0;

  WR=0;

  WR=0;

 // RD=1;

 // RD=1;

  RD=1;

  RD=1;

  P4=0x43;

 // WR=1;

 // WR=1;

  WR=1;

  WR=1;

P74OUT&=0xFC;      

P4=0xff;

         

 // RD=0;

 // RD=0;

  RD=0;

  RD=0;

  date=P4;

 // WR=1;

 // WR=1;

  WR=1;

  WR=1;

 // RD=1;

 // RD=1;

  RD=1;

  RD=1;

P74OUT|=0x03;

 // CS=1;

 // CS=1;

  CS=1;

  CS=1;

 // A0=1;

 // A0=1;

  A0=1;

  A0=1;

         return date ;

}

voidread_write_zhiding(uint danyuan,uchar shuju)

{ uchar L,H;

 uchar DATA;

 uint zhongzhi;

 zhongzhi=danyuan;

 L=zhongzhi%256;

 H=zhongzhi/256;

 wr_zhilin(0x46);

 wr_shuju(L);

 wr_shuju(H);      

 DATA=read_shuju();

 wr_zhilin(0x46);

 wr_shuju(L);

 wr_shuju(H);

 shuju=DATA|shuju;

 wr_zhilin(0x42);

 wr_shuju(shuju);

}

void huadian(uintx,uchar y )    //在指定位置画点

{ uchar a;

 uint b;

 uchar shuzhi;

 a=x/8;

 b=y*40+a;

 shuzhi=buf1[(x%8)];

read_write_zhiding(b,shuzhi);

}

void huajuxing(intx,int y,int chang,int kuan,int jiange )  

//画矩形函数

{ int a,b;

 int i=0;

 a=0;

 b=0;

for(i=0;i<chang;i++)

 {

   huadian(x+a,y+b);

          a=a+jiange;

 }

 for(i=0;i<kuan;i++)

 {

   huadian(x+a,y+b);

          b=b+jiange;

 }

 for(i=0;i<chang;i++)

 {

   huadian(x+a,y+b);

          a=a-jiange;

 }

  for(i=0;i<kuan;i++)

 {

   huadian(x+a,y+b);

          b=b-jiange;

 }

}

void line(int x0,inty0,int xt,int yt)// 在指定的两点之间画直线

{ uint t,col,row;

 int xerr,yerr,delta_x,delta_y,distance;

 int incx,incy;

 delta_x=xt-x0;

 delta_y=yt-y0;

 col=x0;

 row=y0;

 if(delta_x>0) incx=1;

 else if(delta_x==0) incx=0;

 else {incx=-1;delta_x=-delta_x;}

 if(delta_y>0) incy=1;

 else if(delta_y==0) incy=0;

 else {incy=-1;delta_y=-delta_y;}

 if(delta_x>delta_y) distance=delta_x;

 else distance=delta_y;

 for(t=0; t<distance+1;t++)

 { huadian(col,row);

   xerr+=delta_x;

   yerr+=delta_y;

   if(xerr>distance)

   { xerr-=distance;

     col+=incx;

   }

   if(yerr>distance)

   { yerr-=distance;

     row+=incy;

   }

  }

}

void compare(ucharx,uchar y,uchar Weight,uchar Height){    

         uchar uRow,uCol,temp,nbyte;

   uint kk;                           //k已定义为全局变量

   uRow = x;

   uCol = y;

   LcdCommand(0x4f);                              //光标移动方向定义:自动下移

    SetCursor(uRow,uCol);                    //起点定位

         nbyte=(uchar)(Weight/8);

         for(kk=0;kk<nbyte;kk++)                  // 分16行输出

           { SetCursor(uRow+kk,uCol);

               //LcdCommand(0x43);      // 读数据(命令)

              for(temp=0;temp<Height;temp++)

                                        {

               comp[temp*nbyte+kk]=read_shuju();

                }                                          

           }

         

}                

/***********************************************************************/

/*                                   显示画面及初始化                                        */

/***********************************************************************/

voidmenu_first(void){//开机画面

menu1_flag=1;                    //输入输出显示允许

menu2_flag=0;

menu3_flag=0;

key_open=0;

write_open=0;

huajuxing(1,1,318,238,1);

huajuxing(2,2,316,236,1);

huajuxing(3,3,314,234,1);

huajuxing(6,6,308,228,1);

MyGraph(3,30,104,48,&hanzi);

MyGraph(17,43,168,40,&shuxie);

MyGraph(22,195,104,24,&wanli);

MyGraph(12,112,128,32,&tu2);

MyGraph(3,187,128,32,&tu);

MyGraph(35,200,40,40,&yejiao);

}

void menu_2(void){//菜单画面

key_open=1;          

menu1_flag=0;

menu3_flag=0;

menu2_flag=1;

menu4_flag=0;

menu5_flag=0;

write_open=0;

clearscreen();

huajuxing(1,1,318,238,1);

huajuxing(2,2,316,236,1);

huajuxing(3,3,314,234,1);

huajuxing(6,6,308,228,1);

huajuxing(28,31,118,38,1);

huajuxing(29,32,116,36,1);

huajuxing(172,31,118,38,1);

huajuxing(173,32,116,36,1);

huajuxing(28,80,118,38,1);

huajuxing(29,81,116,36,1);

huajuxing(172,80,118,38,1);

huajuxing(173,81,116,36,1);

huajuxing(28,129,118,38,1);

huajuxing(29,130,116,36,1);

huajuxing(172,129,118,38,1);

huajuxing(173,130,116,36,1);

huajuxing(28,176,118,38,1);

huajuxing(29,177,116,36,1);

huajuxing(172,176,118,38,1);

huajuxing(173,177,116,36,1);

MyGraph(35,200,40,40,&yejiao);

MyGraph(5,41,96,24,&bihualx);

MyGraph(5,90,96,24,&quanzilx);

MyGraph(8,139,48,24,&huaban);

MyGraph(8,186,48,24,&xuexi);

MyGraph(26,41,48,24,&yule);

MyGraph(23,90,96,24,&shijiantzh);

MyGraph(23,139,96,24,&xitong);

MyGraph(23,186,96,24,&chanpinjj);

}

void menu_3(void){//笔画练习画面

menu1_flag=0;

menu2_flag=0;

menu3_flag=1;

menu4_flag=0;

menu5_flag=0;

write_open=1;

key_open=1;

clearscreen();

huajuxing(1,1,318,238,1);

huajuxing(2,2,316,236,1);

huajuxing(3,3,314,234,1);

huajuxing(6,6,308,228,1);

huajuxing(59,59,82,82,1);  //

huajuxing(191,59,82,82,1);//空白

MyGraph(9,72,32,56,&bhshu);

line(59,100,141,100);

line(100,59,100,141);

line(191,100,273,100);

line(232,59,232,141);

MyGraph(32,178,32,20,&fanhui);

MyGraph(19,180,40,20,&chonglian);

huajuxing(246,172,52,33,1);

huajuxing(146,172,52,33,1);

//compare(9,72,32,56);

}

void menu_4(void){//全字练习画面

menu1_flag=0;

menu2_flag=0;

menu3_flag=0;

menu4_flag=1;

menu5_flag=0;

write_open=1;

key_open=1;

clearscreen();

huajuxing(1,1,318,238,1);

huajuxing(2,2,316,236,1);

huajuxing(3,3,314,234,1);

huajuxing(6,6,308,228,1);

huajuxing(59,59,82,82,1);  //

huajuxing(191,59,82,82,1);//空白

MyGraph(9,72,56,56,&shu);

line(59,59,141,141);

line(59,141,141,59);

//compare(9,72,32,56);

line(191,59,273,141);

line(191,141,273,59);

MyGraph(32,178,32,20,&fanhui);

MyGraph(19,180,40,20,&chonglian);

huajuxing(246,172,52,33,1);

huajuxing(146,172,52,33,1);

}

void menu_5(void){//画板画面

menu1_flag=0;

menu2_flag=0;

menu3_flag=0;

menu4_flag=0;

menu5_flag=1;

write_open=1;

key_open=1;

clearscreen();

huajuxing(20,20,235,200,1);

huajuxing(22,22,231,196,1);

MyGraph(33,33,24,24,&tu3[0][0]);

MyGraph(36,33,24,24,&tu3[1][0]);

MyGraph(33,83,24,24,&tu3[2][0]);

MyGraph(36,83,24,24,&tu3[3][0]);

MyGraph(33,133,24,24,&tu3[4][0]);

MyGraph(36,133,24,24,&tu3[5][0]);

MyGraph(33,183,24,24,&tu3[4][0]);

MyGraph(36,183,24,24,&tu3[5][0]);

MyGraph(32,178,32,20,&fanhui);//返回

huajuxing(246,172,52,33,1);//

huajuxing(1,1,318,238,1);//边界框

huajuxing(2,2,316,236,1);

huajuxing(3,3,314,234,1);

huajuxing(6,6,308,228,1);

}

void display(void){

RESET=0;

RESET=1;

/* ---------LCDSYSTEM SET系统设置令,8个参数-------- */

LcdCommand(0x40);                                                                 //LCDSYSTEM SET系统设置令,8个参数--------

LcdDataWrite(0x30);

LcdDataWrite(0x87);

LcdDataWrite(0x07);

LcdDataWrite(39);                                                  //显示域长度为320dot //39

LcdDataWrite(52);                                                  //确定液晶工作频率 52

LcdDataWrite(240);                                                 //显示屏高度为240dot

LcdDataWrite(40);                                                  //显示屏一行所占显示缓冲区字节数(L)//40

LcdDataWrite(0);                                                   //显示屏一行所占显示缓冲区字节数(H)

LcdCommand(0x44);                                                  //LCDSCROLL显置命令,最多10个参数

LcdDataWrite(0x00);                                            // 显示1区对应的显示示区设RAM起始高8位地址

LcdDataWrite(0x00);                                             // 显示1区对应的显示RAM起始低8位地址

LcdDataWrite(240);                                              // 显示1区占用240个dot行

LcdDataWrite(0x7f);                                             // 显示2区对应的显示RAM起始低8位地址

LcdDataWrite(0x25);                                             // 显示2区对应的显示RAM起始高8位地址

LcdDataWrite(240);                                              // 显示3区占用240个dot行

LcdCommand(0x5a);

LcdDataWrite(0x00);

LcdCommand(0x5b);

LcdDataWrite(0x0c);

clearscreen() ;                                                 //清屏

LcdCommand(0x46);

LcdDataWrite(0x00);

LcdDataWrite(0x01);

LcdCommand(0x5d);

LcdDataWrite(0x00);

LcdDataWrite(0x0f);

LcdCommand(0x59);

LcdDataWrite(0x04);

}

/***********************************************************************/

/*                                  数据采集及处理子程序                                                           */

/***********************************************************************/

void get_touch(void)                                                                    //采集次数为9

{                              

         

EX0=0;                                                                                                          

                              SendSPIByte(writeX[0]);                                 //取X坐标

                               save_x=GetSPIByte();

                               save_xx=GetSPIByte();

                               SendSPIByte(writeX[1]);                            

                               SendSPIByte(writeX[2]);

                                                           

                              SendSPIByte(writeY[0]);                                  //取Y坐标

                               save_y=GetSPIByte();

                               save_yy=GetSPIByte();

                               SendSPIByte(writeY[1]);        

                               SendSPIByte(writeY[2]);

                                                                                                                                                                                                                                                                                     

         readX[0]=save_x&0xF0;

         tempx=(readX[0]>>4)*256;

         readX[0]=save_x&0x0F;

         tempx+=readX[0]*16;

         readX[0]=save_xx&0xF0;

         tempx+=(readX[0]>>4);

         readY[0]=save_y&0xF0;

         tempy=(readY[0]>>4)*256;

         readY[0]=save_y&0x0F;

         tempy+=readY[0]*16;

         readY[0]=save_yy&0xF0;

         tempy+=(readY[0]>>4);

         save_x=tempx;

         save_y=tempy;

exch_x=((float)save_x-1016.75)*0.17515+160;

exch_y=-((float)save_y-1039)*0.13605+120;                                                                                              

         save_xx=(int)exch_x;

         save_yy=(int)exch_y;

get=1;  //取样结束

         EX0=1;

}

/////////////////////////////////////////////////////////////////////////////

//                           键盘处理子程序                                

//

/////////////////////////////////////////////////////////////////////////////

void keyb_disp(void)

{  

                                        EX0=0;                                                                                                                                 //关INT0中断

///////////////////////////画面《2》菜单////////////////////////

         if(get==1&&menu2_flag==1&&key_open==1)                                                                                    //取样结束处理

          {      

                   

                   if((save_xx>28&&save_xx<146)&&(save_yy>31&&save_yy<69))//1

                    {                            

                               save_xx=0;

                               save_yy=0;

                              menu_3();

                                key_open=0;

                    }

         

                   if((save_xx>28&&save_xx<146)&&(save_yy>80&&save_yy<118))//2

                        {                        

                               save_xx=0;

                               save_yy=0;        

                              menu_4();                      

                                key_open=0;

                                                             

                               }

                   if((save_xx>28&&save_xx<146)&&(save_yy>129&&save_yy<167))//3

                        {                        

                               save_xx=0;

                               save_yy=0;        

                              menu_5();                                                                                               //画板                        

                                key_open=0;

                                                             

                               }

                   if((save_xx>28&&save_xx<146)&&(save_yy>176&&save_yy<214))//4

                        {                        

                               save_xx=0;

                               save_yy=0;        

                               

                                key_open=0;

                                                             

                               }

                   if((save_xx>172&&save_xx<290)&&(save_yy>31&&save_yy<69))//5

                        {                        

                               save_xx=0;

                               save_yy=0;        

                               

                                key_open=0;

                                                             

                               }

                   if((save_xx>172&&save_xx<290)&&(save_yy>80&&save_yy<118))//6

                        {                        

                               save_xx=0;

                               save_yy=0;        

                               

                                key_open=0;

                                                             

                               }

                   if((save_xx>172&&save_xx<290)&&(save_yy>129&&save_yy<167))//7

                        {                        

                               save_xx=0;

                               save_yy=0;        

                               

                                key_open=0;

                                                             

                               }

                   if((save_xx>172&&save_xx<290)&&(save_yy>176&&save_yy<214))//8

                        {                        

                               save_xx=0;

                               save_yy=0;        

                               

                                key_open=0;

                                                             

                               }

                   

}

/////////////////////////////画面《3》按键/////////////////////////////

/////////////////////////////画面《3》按键/////////////////////////////

 if(get==1&&menu3_flag==1&&key_open==1)                                                                                           //取样结束处理

       {

                   

                   if((save_xx>260&&save_xx<300)&&(save_yy>190&&save_yy<210))//返回

                    {                            

                                save_xx=0;

                               save_yy=0;

menu_2();

                                key_open=0;

                                         

         

                    }

         

                   if((save_xx>146&&save_xx<=198)&&(save_yy>172&&save_yy<=205))//重练

                        {                        

                               save_xx=0;

                               save_yy=0;        

huajuxing(191,59,82,82,1);//空白

MyGraph(24,60,80,80,&kongbai);

line(191,59,273,141);

line(191,141,273,59);                              

                                key_open=0;

         

                               }

}

/////////////////////////////画面《4》按键/////////////////////////////

/////////////////////////////画面《4》按键/////////////////////////////

if(get==1&&menu4_flag==1&&key_open==1)                                                                                  //取样结束处理

       {

                   

                   if((save_xx>260&&save_xx<300)&&(save_yy>190&&save_yy<210))//返回

                    {                            

                                save_xx=0;

                               save_yy=0;

menu_2();

                                key_open=0;

                                         

         

                    }

         

                   if((save_xx>146&&save_xx<=198)&&(save_yy>172&&save_yy<=205))//重练

                        {                        

                               save_xx=0;

                               save_yy=0;        

huajuxing(191,59,82,82,1);//空白

MyGraph(24,60,80,80,&kongbai);

line(191,59,273,141);

line(191,141,273,59);                              

                                key_open=0;

         

                               }

 

  }

/////////////////////////////画面《5》按键/////////////////////////////

/////////////////////////////画面《5》按键/////////////////////////////

if(get==1&&menu5_flag==1&&key_open==1)                                                                                  //取样结束处理

       {

                   

                   if((save_xx>260&&save_xx<300)&&(save_yy>190&&save_yy<210))//返回

                    {                            

                                save_xx=0;

                               save_yy=0;

menu_2();

                                key_open=0;

                                         

         

                    }

         

                   if((save_xx>240&&save_xx<=280)&&(save_yy>200&&save_yy<=224))

                        {                        

                               save_xx=0;

                               save_yy=0;        

//功能待补                                

                                key_open=0;

         

                               }

 

  }            

get=0;                                  

EX0=1;                                                                      //开INT0中断

}

void handwrite(void)                                                        //手写输入子程序

{if(write_open==1)//&&exch_x>192&&exch_x<272&&exch_y>60&&exch_y<140)

{

huadian(exch_x,exch_y);

huadian(exch_x+1,exch_y);

huadian(exch_x,exch_y+1);

huadian(exch_x+1,exch_y+1);

//write_open=0;

}

}

                                                                                 

/***********************************************************************/

/*                                       主程序                                                                                  */

/***********************************************************************/

void main()

{

uchar m=76800;    

config();                                                                                                      //ADC0初始化                                                                                                                          //int0中断标志清零

smbus_cfg(0x40,0xf1,0x70);    

spi_cfg(0x07,0xff,0x03);                                                                   //spi_cfg(0x07,0x13,0x03);04

int0_INI();

EA=1;

EX0=0;

smbusMasterStart();

while(flag!=1);

display();                                                                                                                          //打开全局中断

menu_first();

delay(1500);

menu_2();

while(1)

{        

                   

                   if(pen_down==1)

    {              

                              EX0=0;                                                                                      //关int0外部中断

                               P5&=0xFE;                                                   //片选7843

                        get_touch();                                            //调用坐标采样子程序

                               

                               P5|=0x01;                                                   //释放7843

                               pen_down=0;                                         //笔抬起标志                            

                             EX0=1;                                              //开int0外部中断

     }

         keyb_disp();

   handwrite();

    }  

}

void int0_ISR()interrupt 0{

 

IE0=0;                                                                                                                    //关中断标志

pen_down=1;                                                                                                               //笔状态置1

key_open=1;

}

void spi_wr() interrupt6{

SPIF=0;

}

void smbus_wr()interrupt 7{                                              

//smbus中断,此中断只考虑关键状态处理,以便调试              

         

         if(SMB0STA==0x08){                                            //起始位发送成功

                   SMB0DAT=0x50;                                       //将地址和写控制装入发送缓冲区

                   k=1;

                   STA=0;                                                                                                //将STA清零,注意,若不清零则将一直为重发状态

         }

         if(SMB0STA==0x28||SMB0STA==0x18)                             //数据或地址发送成功处理

         {

       if(k>=4)

                              STO=1;                                                                                      //数据发送完毕,将STO置1,结束发送

                   if(k==1)

                              SMB0DAT=0xA9;//////////A9                  //发送第一个调试数据

                   if(k==2)  

                     SMB0DAT=0x18;                                      //送对比度数值

                   if(k==3)  

                     {SMB0DAT=0xFF;                                     //送背光数值

             flag=1;}                                                  //此标志位为使SMBUS数据发送完整

                     k++;

          }

         if(SMB0STA==0x10)                                            //重复起始条件已发出

         {SMB0DAT=0x6e;

         STA=0;

     }

         SI=0;

}