基于stc51单片机的光立方c语言源代码

发布者:平和心态最新更新时间:2015-06-25 来源: 51hei关键字:stc51单片机  的光立方  c语言 手机看文章 扫描二维码
随时随地手机看文章

电路图等制作资料请到这里下载:http://www.51hei.com/bbs/dpj-20613-1.html
下面是程序源码:
 

#include
#define uint unsigned int
#define uchar unsigned char
sbit keyamenu=P4^4;//按键
sbit keyout=P4^5;
sbit keymenu=P4^6;
uint code tab_water[]={
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0080,0x0140,0x0080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0080,0x0140,0x0220,0x0140,0x0080,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x01c0,0x0220,0x0410,0x0410,0x0410,0x0220,0x01c0,0x0000,0x0000,0x0000,0x0000,0x0000,    
0x0000,0x0000,0x0000,0x03e0,0x0410,0x0808,0x0808,0x0808,0x0808,0x0808,0x0410,0x03e0,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x07f0,0x0808,0x1004,0x1004,0x1004,0x1004,0x1004,0x1004,0x1004,0x0808,0x07f0,0x0000,0x0000,0x0000,
0x0000,0x0ff8,0x1004,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x2002,0x1004,0x0ff8,0x0000,0x0000,
0x1ffc,0x2002,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x4001,0x2002,0x1ffc,0x0000
};
char code tab00[]={7,7,7,7,7,7,7,7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,//28
         8+6,8+6,8+6,8+6,8+6,8+6,8+5,8+4,8+3,8+2,8+1,8+1,8+1,8+1,8+1,8+1,8+2,8+3,8+4,8+5,//20
         16+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//12
       24+4,24+4,24+3,24+3,//24+4
       32+4,32+4,32+3,32+3,
         40+5,40+5,40+5,40+5,40+4,40+3,40+2,40+2,40+2,40+2,40+3,40+4,//12
         48+6,48+6,48+6,48+6,48+6,48+6,48+5,48+4,48+3,48+2,48+1,48+1,48+1,48+1,48+1,48+1,48+2,48+3,48+4,48+5,//20
       56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+6,56+5,56+4,56+3,56+2,56+1,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+1,56+2,56+3,56+4,56+5,56+6//28
};
char code tab10[]={56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+7,56+6,56+5,56+4,56+3,56+2,56+1,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+0,56+1,56+2,56+3,56+4,56+5,56+6,//56+28
         48+6,48+6,48+6,48+6,48+6,48+6,48+5,48+4,48+3,48+2,48+1,48+1,48+1,48+1,48+1,48+1,48+2,48+3,48+4,48+5,//20
         40+5,40+5,40+5,40+5,40+4,40+3,40+2,40+2,40+2,40+2,40+3,40+4,//12
       32+4,32+4,32+3,32+3,
       24+4,24+4,24+3,24+3,//24+4
         16+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//12
         8+6,8+6,8+6,8+6,8+6,8+6,8+5,8+4,8+3,8+2,8+1,8+1,8+1,8+1,8+1,8+1,8+2,8+3,8+4,8+5,//20
       7,7,7,7,7,7,7,7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6//28
};
char code tab01[]={7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,7,7,7,7,7,7,//28
       6,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//20
       5,4,3,2,2,2,2,3,4,5,5,5,//12
       4,3,3,4,//
      4,3,3,4,
      5,4,3,2,2,2,2,3,4,5,5,5,//12
      6,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//20
       7,6,5,4,3,2,1,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,7,7,7,7,7,7,//28
};
uchar code tab_print[]={//打印函数使用
0X00,0X00,0X81,0XFF,0XFF,0X81,0X00,0X00,//I
0X1C,0X3E,0X7E,0XFC,0XFC,0X7E,0X3E,0X1C,//心
0X3F,0X7F,0X80,0X80,0X80,0X80,0X7F,0X3F,//U
0X3C,0X42,0X14,0XA1,0XA1,0X14,0X42,0X3C,//笑脸
0X00,0X73,0XE9,0X89,0X89,0X8F,0X4F,0X00,//5
0X00,0XC6,0X86,0X89,0X99,0XB1,0XE7,0XC6,//2
0X3C,0X7E,0X81,0X81,0X81,0X7E,0X3C,0X00,//0
0X00,0X00,0X3C,0X3C,0X3C,0X3C,0X00,0X00,//正方形
0X20,0X30,0X38,0X3C,0X3C,0X38,0X30,0X20,//三角形
0X08,0X14,0X22,0X77,0X14,0X14,0X14,0X1C,//箭头
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,//全亮
0X00,0X00,0X80,0XFF,0XFF,0X82,0X00,0X00,//1
0X00,0X76,0XFF,0X89,0X89,0X81,0XC2,0X00,//3
0X00,0X00,0X80,0XFF,0XFF,0X82,0X00,0X00,//1
0X20,0XA0,0XFF,0XFF,0XA3,0X22,0X3C,0X30//4
};
char code tab_mian[]={4,3,7,2,0,6,1,5};
char code tab_xian[]={5,0,3,6,1,7,4,2};
char code tab_dian[]={
0,1,3,4,7,2,6,5,
1,7,5,0,4,2,3,6,
1,6,4,0,7,5,2,3,
5,7,4,2,0,1,6,3,
1,6,3,4,5,2,0,7,
6,7,1,5,4,2,0,3,
2,0,3,1,5,7,6,4,
5,2,1,0,3,6,7,4,

0,7,4,3,2,6,5,1,
4,7,2,6,5,3,1,0,
0,1,4,3,2,5,6,7,
3,6,7,2,1,4,0,5,
5,2,1,0,7,6,4,3,
1,4,0,2,3,5,7,6,
4,2,1,5,6,0,7,3,
0,4,7,3,1,5,2,6,

1,0,6,7,4,5,3,2,
6,0,4,2,7,5,1,3,
3,1,2,6,7,5,0,4,
2,4,1,0,6,5,3,7,
6,2,1,5,7,4,3,0,
1,0,5,3,2,6,7,4,
7,1,0,4,2,5,6,3,
6,4,1,0,2,5,7,3,

2,6,7,0,3,5,1,4,
6,3,7,2,1,4,5,0,
7,0,5,6,1,3,4,2,
5,2,3,4,0,7,1,6,
2,3,0,7,6,4,1,5,
1,3,0,4,5,2,7,6,
3,4,2,5,6,0,1,7,
4,2,0,6,3,7,5,1,

4,1,6,0,7,3,2,5,
7,6,0,5,1,4,2,3,
6,1,3,2,7,0,5,4,
2,7,3,6,0,5,1,4,
6,5,2,1,0,3,7,4,
7,1,0,5,4,6,3,2,
1,7,3,2,6,0,5,4,
0,2,6,7,4,3,5,1,

0,5,4,1,6,3,2,7,
0,1,5,4,7,2,3,6,
1,4,2,3,5,7,6,0,
2,7,0,5,6,1,3,4,
2,1,6,0,4,5,3,7,
6,1,5,4,2,7,3,0,
4,0,5,2,1,6,7,3,
1,2,0,6,3,7,4,5,

5,0,1,2,4,3,7,6,
4,2,0,6,7,5,1,3,
2,3,7,4,6,1,0,5,
1,5,7,0,3,4,2,6,
2,7,6,3,5,1,0,4,
4,5,7,0,2,3,1,6,
0,5,7,3,2,1,6,4,
6,4,5,7,1,0,3,2,

1,6,5,7,0,2,3,4,
2,1,5,3,6,4,0,7,
0,6,5,4,3,7,0,2,
6,4,2,0,3,1,5,7,
4,5,7,6,0,3,1,2,
0,3,7,2,1,5,6,4,
5,2,4,0,1,3,7,2,
4,5,3,1,7,0,2,6
};
uchar code tab_shandian[]={
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//1

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//2

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//3

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//4

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 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,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//5

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 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,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//6

 0x00,0x00,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,0x00,0x00,0x00,0x00,0x00,

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//7

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8


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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x80,0x00,0x00,0x00,0x00,0x00,0x00,//9

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x00,0x00,0x00,0x00,0x00,//10

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//11

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//12


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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//13

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//14

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

 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//15

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

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//16

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

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//17

 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x0f,
 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
 0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,
 0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//18

 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x1f,
 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
 0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
 0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//19

 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x3f,
 0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
 0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
 0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//20


 0x00,0x00,0x00,0x00,0x00,0x01,0x81,0x7f,
 0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
 0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
 0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//21

 0x00,0x00,0x00,0x00,0x00,0x01,0x81,0xff,
 0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
 0x00,0x00,0x01,0x01,0x01,0x01,0x80,0x00,
 0x00,0x00,0x01,0x00,0x00,0x80,0x80,0x00,

 0x01,0x01,0x01,0x00,0x00,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x80,0x80,0x00,0x00,
 0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
 0xff,0x80,0x80,0x80,0x00,0x00,0x00,0x00,//22
};
uchar code yc_table[]={//2帧,yinchu函数使用
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,//1I
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,

 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,//2心脏
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x18,0x7e,0x7e,0x18,0x00,0x00,
 0x00,0x00,0x3c,0x7e,0x7e,0x3c,0x00,0x00,
 0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
 0x00,0x00,0x7e,0xff,0xff,0x7e,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,//3U
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,

 0x00,0x00,0x00,0x24,0x24,0x00,0x00,0x00,//4苹果
 0x00,0x00,0x00,0x7e,0x7e,0x00,0x00,0x00,
 0x00,0x00,0x3c,0xff,0x7e,0x3c,0x00,0x00,
 0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
 0x00,0x00,0x3c,0xfe,0xfe,0x3c,0x00,0x00,
 0x00,0x00,0x00,0x6e,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x18,0x10,0x00,0x00,0x00,
 0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//5五角星
 0x00,0x00,0x00,0x22,0x22,0x00,0x00,0x00,
 0x00,0x00,0x00,0x36,0x36,0x00,0x00,0x00,
 0x00,0x00,0x00,0x1c,0x1c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x3e,0x3e,0x00,0x00,0x00,
 0x00,0x00,0x00,0x7f,0x7f,0x00,0x00,0x00,
 0x00,0x00,0x00,0x1c,0x1c,0x00,0x00,0x00,
 0x00,0x00,0x00,0x08,0x08,0x00,0x00,0x00
};
uchar code tab_xuanzhuantiao[]=//旋转条
{
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x00,0x0f,0xf0,0x00,0x00,0x00,
 0x00,0x00,0x00,0xf0,0x0f,0x00,0x00,0x00,
 0x00,0x00,0x80,0x70,0x0e,0x01,0x00,0x00,
 0x00,0x80,0x60,0x10,0x08,0x06,0x01,0x00,//
 0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01,//1
 0x40,0x20,0x20,0x10,0x08,0x04,0x04,0x02,
 0x20,0x10,0x10,0x10,0x08,0x08,0x08,0x04,
 0x10,0x10,0x10,0x10,0x08,0x08,0x08,0x08,
 0x08,0x08,0x08,0x08,0x10,0x10,0x10,0x10,
 0x04,0x08,0x08,0x08,0x10,0x10,0x10,0x20,
 0x02,0x04,0x04,0x08,0x10,0x20,0x20,0x40//7
};
uchar code flash0__tab[]=
{
0X03,0X07,0X06,0X08,0X10,0X20,0X40,0X80,
0X07,0X07,0X0F,0X1C,0X18,0X20,0X40,0X80,
0X0F,0X0F,0X1F,0X3F,0X3C,0X78,0X60,0X80,
0X1F,0X1F,0X3F,0X3F,0X7F,0X7C,0X70,0X80,
0X3F,0X3F,0X3F,0X7F,0X7F,0X7F,0XF8,0XC0,
0X7F,0X7F,0X7F,0X7F,0XFF,0XFF,0XFF,0XF0,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF//7
};
uchar code tab_xuanzhuantiao2[]=//旋转条
{
0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80,//1
0X02,0X04,0X08,0X00,0X10,0X20,0X40,0X80,//
0X04,0X08,0X00,0X10,0X20,0X20,0X40,0X80,//
0X08,0X10,0X10,0X20,0X20,0X40,0X40,0X80,//
0X10,0X10,0X20,0X20,0X20,0X40,0X40,0X80,//
0X20,0X20,0X40,0X40,0X40,0X80,0X80,0X80,//
0X40,0X40,0X40,0X40,0X80,0X80,0X80,0X80,//

0X80,0X80,0X80,0X80,0X80,0X80,0X80,0X80,//8
0X80,0X80,0X80,0X80,0X40,0X40,0X40,0X40,//
0X80,0X80,0X00,0X40,0X40,0X40,0X20,0X20,//10
0X80,0X80,0X40,0X40,0X20,0X20,0X10,0X10,//
0X80,0X40,0X40,0X20,0X20,0X10,0X10,0X08,//
0X80,0X40,0X20,0X20,0X10,0X10,0X08,0X04,//
0X80,0X40,0X20,0X10,0X08,0X08,0X04,0X02,//
0X80,0X40,0X20,0X10,0X08,0X04,0X02,0X01,//15
0X80,0X40,0X20,0X10,0X0C,0X02,0X01,0X00,//16
0X80,0X40,0X30,0X0C,0X02,0X01,0X00,0X00,//
0X80,0X60,0X18,0X06,0X01,0X00,0X00,0X00,//18
0XC0,0X30,0X0E,0X01,0X00,0X00,0X00,0X00,//
0XE0,0X1C,0X03,0X00,0X00,0X00,0X00,0X00,//20
0XF0,0X0F,0X00,0X00,0X00,0X00,0X00,0X00,//
0XFF,0X00,0X00,0X00,0X00,0X00,0X00,0X00,//22

0X0F,0XF0,0X00,0X00,0X00,0X00,0X00,0X00,//23
0X07,0X38,0XC0,0X00,0X00,0X00,0X00,0X00,
0X03,0X0C,0X20,0XC0,0X00,0X00,0X00,0X00,
0X01,0X02,0X0C,0X30,0XC0,0X00,0X00,0X00,
0X01,0X02,0X04,0X08,0X30,0XC0,0X00,0X00,
0X01,0X02,0X04,0X08,0X10,0X60,0X80,0X00,
0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80,
0X01,0X02,0X04,0X08,0X10,0X20,0X20,0X40,
0X01,0X02,0X04,0X08,0X08,0X10,0X20,0X20,
0X01,0X02,0X04,0X04,0X08,0X08,0X10,0X10,
0X01,0X01,0X02,0X02,0X04,0X04,0X08,0X08,
0X01,0X01,0X01,0X02,0X02,0X02,0X04,0X04,
0X01,0X01,0X01,0X01,0X02,0X02,0X02,0X02,
0X01,0X01,0X01,0X01,0X01,0X01,0X01,0X01,//36


0X02,0X02,0X02,0X02,0X01,0X01,0X01,0X01,//37
0X04,0X04,0X02,0X02,0X02,0X01,0X01,0X01,
0X08,0X08,0X04,0X04,0X02,0X02,0X01,0X01,
0X10,0X10,0X08,0X08,0X04,0X04,0X02,0X01,
0X20,0X10,0X00,0X08,0X08,0X04,0X02,0X01,
0X40,0X20,0X10,0X08,0X08,0X04,0X02,0X01,
0X80,0X40,0X20,0X10,0X08,0X04,0X02,0X01,
0X00,0X80,0X40,0X20,0X18,0X04,0X02,0X01,
0X00,0X00,0X80,0X40,0X38,0X04,0X02,0X01,
0X00,0X00,0X00,0X80,0X60,0X1C,0X02,0X01,
0X00,0X00,0X00,0X00,0X80,0X70,0X0E,0X01,
0X00,0X00,0X00,0X00,0X00,0XC0,0X3C,0X03,
0X00,0X00,0X00,0X00,0X00,0X00,0XF0,0X0F,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,//50

0X00,0X00,0X00,0X00,0X00,0X00,0X0F,0XF0,//51
0X00,0X00,0X00,0X00,0X00,0X03,0X1C,0XE0,
0X00,0X00,0X00,0X00,0X03,0X0C,0X30,0XC0,
0X00,0X00,0X00,0X01,0X06,0X18,0X20,0XC0,
0X00,0X00,0X01,0X02,0X0C,0X30,0X40,0X80,
0X00,0X01,0X02,0X04,0X18,0X20,0X40,0X80,
//0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80//57
};
uchar code bianxing_table[]={//变形
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,//1 

 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,
 0x00,0x01,0x06,0x08,0x10,0x60,0x80,0x00,//2

 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,
 0x00,0x00,0x01,0x0e,0x70,0x80,0x00,0x00,//3

 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X00,0X0F,0XF0,0X00,0X00,0X00,//4变形开始

 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,//5

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,
 0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
 0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
 0X00,0X00,0X0F,0X00,0XF0,0X00,0X00,0X00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//6

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
 0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
 0X00,0X00,0X0f,0X0F,0Xf0,0XF0,0X00,0X00,
 0X00,0X00,0X0F,0X0f,0XF0,0Xf0,0X00,0X00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//7
 
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
 0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
 0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
 0x00,0x00,0x1e,0x1e,0x78,0x78,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
 0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
 0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
 0x00,0x00,0x3c,0x3c,0x3c,0x3c,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//9,方体成型

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
 0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
 0x00,0x66,0x66,0x00,0x00,0x66,0x66,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//10
 
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//11
};
uchar code y_table[]={//6帧四方块外轴心旋转
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1

 0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,
 0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
 0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,//2

 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x03,0x03,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x03,0x03,
 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,//3

 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,//4

 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,//5

 0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,
 0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc0,0xc0,0x00,0x00,0x00,0x00,0xc0,0xc0,
 0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
 0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06//6
};
uchar code z_table[]=
{
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1

0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,
0x60,0x63,0x03,0x00,0x00,0xc0,0xc6,0x06,//2

0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,
0x30,0x30,0x03,0x03,0xc0,0xc0,0x0c,0x0c,//3

0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,
0x18,0x18,0x00,0xc3,0xc3,0x00,0x18,0x18,//4

0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,
0x0c,0x0c,0xc0,0xc0,0x03,0x03,0x30,0x30,//5

0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,
0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,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,
0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,
0x06,0xc6,0xc0,0x00,0x00,0x03,0x63,0x60,//6
};[page]
uchar code xz_table[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//1

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//2

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//3

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//4

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//5

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//6

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//7

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//8


0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//9

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//10

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,
0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//11

0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,//12

0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,//13

0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,//14

0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,
0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x3f,//15

0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,
0x00,0x00,0x00,0x00,0xc0,0xc0,0x3f,0x3f,//16

0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,
0x00,0x00,0x00,0xc0,0xc0,0x00,0x3f,0x3f,//17

0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,
0x00,0x00,0xc0,0xc0,0x00,0x00,0x3f,0x3f,//18

0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,
0x00,0xc0,0xc0,0x00,0x00,0x00,0x6f,0x6f,//19

0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,
0xc0,0xc0,0x00,0x00,0x00,0x00,0xcf,0xcf,//20

0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,
0x60,0x60,0x00,0x00,0x00,0xc0,0xcf,0x0f,//21

0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,
0x18,0x18,0x00,0x00,0xc0,0xc0,0x0f,0x0f,//22

0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,
0x18,0x18,0x00,0xc0,0xc0,0x00,0x0f,0x0f,//23


0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,
0x0c,0x0c,0xc0,0xc0,0x00,0x00,0x1b,0x1b,//24

0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,
0x06,0xc6,0xc0,0x00,0x00,0x00,0x33,0x33,//25

0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,
0x03,0xc3,0xc0,0x00,0x00,0x00,0x63,0x63,//26
};
uchar code yx_table[]={//Y轴心切换至X轴心变形
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1

 0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
 0xc6,0xc6,0x00,0x00,0x00,0x00,0xc6,0xc6,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x63,0x63,0x00,0x00,0x00,0x00,0x63,0x63,
 0x60,0x60,0x00,0x00,0x00,0x00,0x60,0x60,//2

 0xcc,0xcc,0x00,0x00,0x00,0x00,0xcc,0xcc,
 0xcc,0xcc,0x00,0x00,0x00,0x00,0xcc,0xcc,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,
 0x30,0x30,0x00,0x00,0x00,0x00,0x30,0x30,//3

 0xd8,0xd8,0x00,0x00,0x00,0x00,0xd8,0xd8,
 0xd8,0xd8,0x00,0x00,0x00,0x00,0xd8,0xd8,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,
 0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,//4

 0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
 0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,
 0x0c,0x0c,0x00,0x00,0x00,0x00,0x0c,0x0c,//5

 0xf0,0xf0,0x00,0x00,0x00,0x00,0xf0,0xf0,
 0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,
 0x06,0x06,0x00,0x00,0x00,0x00,0x06,0x06,//6

 0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
 0xf3,0xf3,0x00,0x00,0x00,0x00,0xf3,0xf3,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,//7

 0xf6,0xf6,0x00,0x00,0x00,0x00,0xf6,0xf6,
 0xf6,0xf6,0x00,0x00,0x00,0x00,0xf6,0xf6,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//8

 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//9

 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//10

 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//11

 0xfc,0xfc,0x00,0x00,0x00,0x00,0xfc,0xfc,
 0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
 0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//12

 0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
 0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//13

 0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xff,0xff,//完成
 0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xff,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//14

 0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//15

 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0xff,0xff,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//16

 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//17

 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//18

 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0xc3,0xc3,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//19

 0x00,0xc3,0xc3,0x00,0xc3,0xc3,0xc3,0xc3,
 0x00,0xc3,0xc3,0x00,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//20

 0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,//21

 0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//22

 0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//23

 0x00,0x00,0x00,0xc3,0xc3,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//24

 0x00,0x00,0xc3,0xc3,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//25

 0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//26

};
uchar code x_table[]={//四方块X轴心旋转
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,//1

 0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,//2

 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,//3

 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,
 0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,//4

 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
 0x00,0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,
 0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,0x00,//5

 0x00,0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,
 0x00,0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0x00,0x00,0x00,
 0xc3,0xc3,0x00,0x00,0x00,0xc3,0xc3,0x00,
 0x00,0x00,0x00,0x00,0x00,0xc3,0xc3,0x00,//6
};
/***************************************************************/
uchar code tab_rain[]={//rain
0X00,0X84,0X01,0X00,0X00,0X01,0X02,0X44,
0X84,0X00,0X24,0X08,0X04,0X20,0X80,0X00,
0X00,0X20,0X00,0X00,0X20,0X00,0X40,0X00,
0X00,0X04,0X00,0X40,0X00,0X00,0X08,0X00,

0X40,0X00,0X10,0X00,0X00,0X04,0X04,0X11,
0X00,0X41,0X00,0X00,0X80,0X00,0X40,0X00,
0X00,0X00,0X00,0X24,0X01,0X18,0X00,0X00,
0X22,0X10,0X02,0X00,0X40,0X00,0X02,0X00
};
uchar code sin_cube_table[]={//14帧
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0xff,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xff,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0xff,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0xff,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0xff,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,

 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xff,
 0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0xff,0x00,0x00,0x00,0x00,0xff,
 0x00,0x00,0x00,0xff,0x00,0x00,0xff,0x00,
 0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,

 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
 0x00,0xff,0x00,0x00,0x00,0x00,0xff,0x00,
 0x00,0x00,0xff,0x00,0x00,0xff,0x00,0x00,
 0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
};
uchar code hart_table[]={//2帧心跳
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,
 0x00,0x18,0x3c,0x18,0x00,0x00,0x00,0x00,
 0x00,0x18,0x3c,0x18,0x00,0x00,0x00,0x00,
 0x00,0x3c,0x7e,0x3c,0x18,0x00,0x00,0x00,
 0x00,0x18,0x7e,0x18,0x00,0x00,0x00,0x00,
 0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,
 0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,
 0x00,0x00,0x18,0x7e,0x7e,0x18,0x00,0x00,
 0x00,0x00,0x3c,0x7e,0x7e,0x3c,0x00,0x00,
 0x00,0x18,0x7e,0xff,0xff,0x7e,0x18,0x00,
 0x00,0x00,0x7e,0xff,0xff,0x7e,0x00,0x00,
 0x00,0x00,0x00,0x66,0x66,0x00,0x00,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
uchar code szfc_table[]={//数字浮出
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 0X38,0X64,0X06,0X3E,0X66,0X66,0X24,0X18,//9
 0x00,0x00,0x00,0x00,
 0X3C,0X66,0X66,0X3C,0X66,0X66,0X24,0X18,//8
 0x00,0x00,0x00,0x00,
 0X30,0X30,0X30,0X18,0X0C,0X04,0X46,0X7E,//7
 0x00,0x00,0x00,0x00,
 0X18,0X26,0X66,0X78,0X60,0X66,0X24,0X18,//6
 0x00,0x00,0x00,0x00,
 0X18,0X64,0X46,0X06,0X1C,0X60,0X62,0X7E,//5
 0x00,0x00,0x00,0x00,
 0X0C,0X0C,0X7E,0X68,0X6C,0X2C,0X3C,0X1C,//4
 0x00,0x00,0x00,0x00,
 0x78,0x46,0x06,0x06,0x1c,0x06,0x46,0x3c,//3
 0x00,0x00,0x00,0x00,
 0xfc,0xc0,0x60,0x30,0x18,0xc6,0xc6,0x78,//2
 0x00,0x00,0x00,0x00,
 0x3c,0x18,0x18,0x18,0x18,0x18,0x38,0x18,//1
 0x00,0x00,0x00,0x00,
 0X18,0X24,0X66,0X66,0X66,0X66,0X24,0X18,//0
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
[page]

/*音柱编码*/
uchar code tuku1[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff,0xff};
uchar code table1[]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff/*0X1C,0X3E,0X7E,0XFC,0XFC,0X7E,0X3E,0X1C*/};
uchar code table2[]={
0Xe0,0Xe0,0Xe0,0xe0,0Xe0,0Xe0,0Xe0,0Xe0,
0X07,0X07,0X07,0X07,0X07,0X07,0X07,0X07
};
/*uchar code table2[]={
0X80,0Xc0,0Xe0,0xf0,0Xf0,0Xe0,0Xc0,0X80,
0X01,0X03,0X07,0X0f,0X0f,0X07,0X03,0X01
};*/
uchar code table3[]={
0Xf0,0Xe0,0Xc0,0x80,0X00,0X00,0X00,0X00,
0X03,0X07,0X0e,0x1c,0X38,0X70,0Xe0,0Xc0,
0X00,0X00,0X00,0X00,0X01,0X03,0X07,0X0f
};
uchar code table4[]={
0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
0X00,0X00,0X30,0x30,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X0c,0X0c,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
};
uchar code table5[]={
0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
0X18,0X18,0X00,0x00,0X00,0X00,0X00,0X00,
0X03,0X03,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X03,0X03,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
};
uchar code table6[]={
0x0f,0x0f,0x0f,0x0f,0x00,0x00,0x00,0x00,
0Xc0,0Xc0,0X00,0x00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0xc0,0Xc0,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0xc0,0Xc0,
0X00,0X00,0X00,0X00,0X00,0X00,0X18,0X18,
0X00,0X00,0X00,0X00,0X00,0X00,0X03,0X03
};
uchar code number[]={//数字,滚动字幕使用,从上至下
0x00,0x40,0x40,0x40,0x40,0x40,0x7E,0x00,/*"L",0*/

0x00,0x7E,0x40,0x7E,0x40,0x40,0x7E,0x00,/*"E",1*/

0x00,0x7C,0x46,0x42,0x42,0x46,0x7C,0x00,/*"D",2*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",3*/

0x00,0x3C,0x62,0x40,0x40,0x61,0x3E,0x00,/*"C",4*/

0x00,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,/*"U",5*/

0x00,0x7C,0x42,0x7C,0x42,0x41,0x7E,0x00,/*"B",6*/

0x00,0x7E,0x40,0x7E,0x40,0x40,0x7E,0x00,/*"E",7*/

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",8*/

0x00,0x42,0x42,0x7E,0x42,0x42,0x42,0x00,/*"H",9*/

0x00,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,/*"U",10*/

0x00,0xC2,0x64,0x38,0x10,0x10,0x10,0x00,/*"Y",11*/

0x00,0x18,0x18,0x24,0x7E,0x42,0x81,0x00,/*"A",12*/

0x00,0x62,0x62,0x52,0x4A,0x46,0x46,0x00,/*"N",13*/

0x00,0x3C,0x62,0x40,0x4E,0x62,0x3E,0x00,/*"G",14*/
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",15*/
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",16*/
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",17*/
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"Y",18*/
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",19*/
 0x00,0x44,0x44,0x7C,0x44,0x44,0x44,0x00,/*"H",20*/
 0x00,0x44,0x44,0x44,0x44,0x44,0x38,0x00,/*"U",21*/
 0x00,0x82,0x44,0x28,0x10,0x10,0x10,0x00,/*"Y",22*/
 0x00,0x10,0x28,0x28,0x7C,0x44,0x82,0x00,/*"A",23*/
 0x00,0x64,0x64,0x54,0x54,0x4C,0x44,0x00,/*"N",24*/
 0x00,0x78,0xC4,0x80,0x9C,0xC4,0x7C,0x00,/*"G",25*/
 0x00,0x10,0x10,0x10,0x10,0x00,0x10,0x00,/*"!",26*/
 0X38,0X64,0X06,0X3E,0X66,0X66,0X24,0X18,//"9"27
 0X3C,0X66,0X66,0X3C,0X66,0X66,0X24,0X18,//"8"28
 0X30,0X30,0X30,0X18,0X0C,0X04,0X46,0X7E,//"7"29
 0X18,0X26,0X66,0X78,0X60,0X66,0X24,0X18,//"6"30
 0X18,0X64,0X46,0X06,0X1C,0X60,0X62,0X7E,//"5"31
 0X0C,0X0C,0X7E,0X68,0X6C,0X2C,0X3C,0X1C,//"4"32
 0x78,0x46,0x06,0x06,0x1c,0x06,0x46,0x3c,//"3"33
 0xfc,0xc0,0x60,0x30,0x18,0xc6,0xc6,0x78,//"2"34
 0x3c,0x18,0x18,0x18,0x18,0x18,0x38,0x18,//"1"35
 0X18,0X24,0X66,0X66,0X66,0X66,0X24,0X18,//"0"36

//0XCC,0XCC,0X44,0X44,0X22,0X22,0X1f,0X00,

 //0XCC,0XCC,0X44,0X44,0X22,0X22,0X1f,0X00,
   0X66,0X66,0X66,0X7E,0X66,0X66,0X3C,0X18,/*"A",37*/
 //0X00,0X99,0X99,0X99,0X99,0X99,0X66,0X00,
 0XC3,0XC7,0XCF,0XDF,0XFB,0XF3,0XE3,0XC3,/*"N",38*/
 //0X03,0X05,0XF9,0X81,0X81,0XF9,0X05,0X03,
  0X7E,0X62,0X62,0X60,0X60,0X60,0X60,0X60/*"L",39*/
};
/*音柱编码*/
uchar code tuku[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};
uchar code BRTable[64] ={ 0,32,16,48,8,40,24,56,4,36,20,52,12,44,28,60,2,34,18,50,10,42,26,58,6,38,22,54,14,46,30,62,1,33,17,49,9,41,25,57,5,37,21,53,13,45,29,61,3,35,19,51,11,43,27,59,7,39,23,55,15,47,31,63};
char code sin_tabb[64] = { 0 ,12 ,25 ,37 ,49 ,60 ,71 ,81 ,90 ,98 ,106 ,112 ,117 ,122 ,125 ,126 ,127 ,126 ,125 ,122 ,117 ,112 ,106 ,98 ,90 ,81 ,71 ,60 ,49 ,37 ,25 ,12 ,0 ,-12 ,-25 ,-37 ,-49 ,-60 ,-71 ,-81 ,-90 ,-98 ,-106 ,-112 ,-117 ,-122 ,-125 ,-126 ,-127 ,-126 ,-125 ,-122 ,-117 ,-112 ,-106 ,-98 ,-90 ,-81 ,-71 ,-60 ,-49 ,-37 ,-25 ,-12  }; 
char code cos_tabb[64] = {127 ,126 ,125 ,122 ,117 ,112 ,106 ,98 ,90 ,81 ,71 ,60 ,49 ,37 ,25 ,12 ,0 ,-12 ,-25 ,-37 ,-49 ,-60 ,-71 ,-81 ,-90 ,-98 ,-106 ,-112 ,-117 ,-122 ,-125 ,-126 ,-127 ,-126 ,-125 ,-122 ,-117 ,-112 ,-106 ,-98 ,-90 ,-81 ,-71 ,-60 ,-49 ,-37 ,-25 ,-12 ,0 ,12 ,25 ,37 ,49 ,60 ,71 ,81 ,90 ,98 ,106 ,112 ,117 ,122 ,125 ,126 };
char num;
char c[6];//用于存储5个不同频率的幅值
char b[6];//用于使音谱柱形显示的平滑
char amenu,menu,out;
int xdata Real[64];//实部 
int xdata Image[64];//虚部
void delay(int t)
{
 int i;
 while(t--)
  for(i=0;i<700;i++);
}
void delay1(int t)
{
 char i;
 while(t--)
  for(i=0;i<20;i++);
}
void clc()//全局清屏
{
 P3=0;
 P2=0xff;
 P0=0;
 P2=0;
}
uchar daoxu(uchar x)//一字节倒序
{
 uchar k=0;
 char i;
 for(i=0;i<8;i++)
 {
  if((x>>(7-i))&0x01)
   k|=0x01<>=1;
 }
}
*/
void fun1(uchar *a,uchar d,uchar b,uchar c,uchar e)//滚动字幕数据处理
{
 char i;
 for(i=0;i<8;i++)
 {
  a[i]=e&0x01;
  e>>=1;
 }
 a[7]|=(c<<1);
 a[6]|=(c&0x80);
 for(i=0;i<6;i++)
 {
  a[5-i]|=((b<<(7-i))&0x80);
 }
 d=daoxu(d);
 a[0]|=((d>>1)&0x7e);
}
void zhen(uchar *a,uchar v)//一帧,a是一帧编码起始地址
{
 uchar p;
 char i;
 while(v--)
 {
  p=1;
  for(i=0;i<8;i++)
  {
   key_out_scan();
   key_amenu_scan();
   key_menu_scan();
   if(amenu)
    break;
   P3=0;
   fun(a+i*8);
   P3=p;
   delay(2);
   p<<=1;
  }
 } 
}
void turn_on(uchar v)
{
 uchar a[64]={0};
 char i,j;
 a[7]=0x80;
 zhen(a,v);
 for(i=1;i<8;i++)
 {
  a[i*8+7]=0x80;
  zhen(a,v);
 }
 for(i=6;i>=0;i--)
 {
  for(j=0;j<8;j++)
   a[j*8+i]=0x80;
  zhen(a,v);
 } 
 for(i=0;i<64;i++)
  a[i]=0; 
}
void H_scan(uchar v)
{ 
 uchar b[64]={0};
 char i,j;
 for(i=0;i<64;i++)
  b[i]=0x80;
 for(i=0;i<7;i++)
 {
  for(j=0;j<64;j++)
   b[j]>>=1;
  zhen(b,v);
 }
}
void V_scan(uchar v)
{
 uchar a[64]={0};
 char i,j;
 for(i=0;i<8;i++)
  a[i]=0xff;
 zhen(a,v);
 for(i=1;i<8;i++)
 {
  for(j=0;j<8;j++)
  {
   a[i*8+j]=0xff;
   a[(i-1)*8+j]=0;
  }
  zhen(a,v);
 }
}
void jb0(char num,char v)///////////////////////////////
{
 char i,k;
 uchar c[64]={0};
 for(i=0;i<64;i++)
  c[i]=0x80;
 zhen(c,v);
 while(num--)
  for(i=0;i<28;i++)
  {
   if(i<7)
    for(k=0;k<8;k++)
    {
     c[k*8]|=(0x80>>(i+1));
     c[k*8+7-i]=0;
    }
   else if(i<14)
    for(k=0;k<8;k++)
    {
     c[k*8+i-6]=0x01;
     c[k*8]>>=0x01;
    }
   else if(i<21)
    for(k=0;k<8;k++)
    {
     c[k*8+i-14]=0;
     c[k*8+7]|=(0x01<<(i-13));
    }
   else if(i<28)
    for(k=0;k<8;k++)
    {
     c[k*8+27-i]=0x80;
     c[k*8+7]<<=1;
    }
   zhen(c,v);
  }
 clc();
}
void link_pingmian1(char v)
{
 uchar a[64]={0};
 char i,j;
 for(i=0;i<8;i++)
  for(j=0;j<8;j++)
  {
   a[7*8+j]|=(0x01<>=1;
    }
   else if(i<14)
    for(k=0;k<8;k++)
    {
     a[k]|=0x01<<(i-6);
     a[(14-i)*8+k]=0;
    }
   else if(i<21)
    for(k=0;k<8;k++)
    {
     a[(i-13)*8+k]=0x80;
     a[k]<<=1;
    } 
   else 
    for(k=0;k<8;k++)
    {
     a[7*8+k]|=0x80>>(i-20);
     a[(i-21)*8+k]=0;
    }
   zhen(a,v);
  }
 clc();
}
void move(uchar *a,char kind,char direction,char length)//length不能为8
//kind=0 x轴,1 x轴,2 z轴;direction=0,负向,1正向
{
 char i,j;
 if(kind==0)
 {
  if(direction==1)
   for(i=0;i<64;i++)
    a[i]<<=length;
  else
   for(i=0;i<64;i++)
    a[i]>>=length; 
 }
 else if(kind==1)
 {
  if(direction==1)
   for(j=0;j<8;j++)
   {
    for(i=7;i>=length;i--)
     a[i+j*8]=a[i-length+j*8];
    for(i=0;i=length;i--)
     a[j+i*8]=a[j+(i-length)*8];
    for(i=0;i>(8-n);
   else
    a[j+i*8]=0;
  } 
}
void produce_empty(uchar *a,char n)//0>(8-n);
/************X4列*************/
 a[(n-1)*8+n-1]=p;
 a[(n-1)*8]=p;
 a[0]=p;
 a[n-1]=p;
 for(j=0;j0;i--)//退出
 {
  if(empty==0)
   produce_cube(a,i);
  else
   produce_empty(a,i);
  if(kind==0)
  {
   move(a,1,1,8-i);
   move(a,0,1,8-i);
  }
  else if(kind==1)
   move(a,0,1,8-i);
  else if(kind==2)
   {;}
  else
   move(a,1,1,8-i);    
  zhen(a,v);
 }
}
/***************************************************************************/
void yinchu(uchar *table,char n,char v)
{
/****************************
n为帧数
******************************/
 char i,j,k;
 uchar a[64]={0},p;
 for(k=0;k>i))&(p<<(7-i));
   }
   zhen(a,v); 
  }
  zhen(table+k*64,50);
 }

}
void rain(char menu,char num,char v)
{//menu=0,up;menu=1,down
 uchar a[64]={0};
 char i,j;
 if(menu==0)
 {
  for(i=0;i<8;i++)
   a[i]=tab_rain[i];
  zhen(a,v);
  for(i=1;i<8;i++)
  {
   move(a,2,1,1);
   for(j=0;j<8;j++)
    a[j]=tab_rain[i*8+j];
   zhen(a,v);
  } 
  while(num--)
  { 
   for(i=0;i<8;i++)
   {
    move(a,2,1,1);
    for(j=0;j<8;j++)
     a[j]=tab_rain[i*8+j];
    zhen(a,v);
   }
  }
 }
 else
 {
  for(i=0;i<8;i++)
   a[7*8+i]=tab_rain[i];
  zhen(a,v);
  for(i=1;i<8;i++)
  {
   move(a,2,0,1);
   for(j=0;j<8;j++)
    a[7*8+j]=tab_rain[i*8+j];
   zhen(a,v);
  }
  while(num--)
  { 
   for(i=0;i<8;i++)
   {
    move(a,2,0,1);
    for(j=0;j<8;j++)
     a[j+7*8]=tab_rain[i*8+j];
    zhen(a,v);
   }    
  }
 }
}
void LED()
{
 char i;
 uchar p=0x01;
 for(i=0;i<8;i++)
 {
  P2=p;
  delay1(1);
  P0=0xff;
  delay1(1);
  p<<=1;
 }
 P2=0;
 while(!out)
 {
  key_out_scan();
  key_amenu_scan();
  P3=0xff;
  delay1(amenu*30);
  P3=0;
  delay1((6-amenu)*30);
 }
 P3=0;
}
void pc1(char num,char v)
{
 uchar a[64]={0};
 char i,j;
 while(num--)
 {
  for(i=1;i<8;i++)
   a[i]=0xff;
  zhen(a,v);
  for(i=1;i<8;i++)
  {
   move(a,2,1,1);
   for(j=0;j<8;j++)
    a[j]=0xff;
   zhen(a,v);
  }
  for(i=0;i<8;i++)
  {
   if(num==0&&i==7)
    continue;
   move(a,2,1,1);
   zhen(a,v);
  }
 }
 for(i=0;i<7;i++)
 {
  move(a,2,0,1);
  zhen(a,v+5);
 }
}
void link(char v)
{
/****************************
旋转衔接
******************************/
 char i,j,k;
 uchar a[64]={0};
 for(i=0;i<64;i++)
  a[i]=0x80;
 zhen(a,3);
 for(i=0;i<8;i++)
 {
  for(j=0;j<8;j++)
  {
   if(i<7)
    a[j*8+7-i]&=0x7f;
   a[j*8+i]|=(0x80>>i);
  }
  zhen(a,v);
 }
 for(i=0;i<6;i++)
 {
  for(j=0;j<8;j++)
   for(k=0;k<8;k++)
    a[j*8+k]=tab_xuanzhuantiao[(i+8)*8+k];
  zhen(a,3);
 }
}
void leitu(uchar *b,char num,char v)//V>1
{
 uchar a[64]={0},p;
 char i,j,k,m;
 for(m=0;m=8)
   a[tab10[i-8]]^=(0x01<1&&k<6&&j>1&&j<6&&kind!=1)
      a[k+j*8]=tab_xuanzhuantiao[i*8+k]&0xc3;
     else
      a[k+j*8]=tab_xuanzhuantiao[i*8+k];
    }
   }
   zhen(a,v);
  }
 }
}

void qumianxuanzhuan(char kind,char num,char v)//曲面旋转
{
 uchar a[64]={0};
 char i,j,k;
 for(j=0;j<8;j++)
  for(i=0;i<8;i++)
   a[i+j*8]=tab_xuanzhuantiao[i];
 zhen(a,v);
 if(kind==1)
 {
  for(j=1;j<8;j++)//顺时针初形变换
  {
   for(i=0;i=0;i--)
  {
   move(a,2,1,1);
   for(j=0;j<8;j++)
    a[j]=tab_xuanzhuantiao[i*8+j];
   zhen(a,v);
  }
 }

 while(num--)//主循环
 {
  if(kind==1)
   for(i=0;i<14;i++)
   {
    move(a,2,1,1);
    for(j=0;j<8;j++)
     a[j]=tab_xuanzhuantiao[i*8+j];
    zhen(a,v);
   }
  else
   for(i=13;i>=0;i--)
   {
    move(a,2,1,1);    
    for(j=0;j<8;j++)
     a[j]=tab_xuanzhuantiao[i*8+j];
    zhen(a,v);
   }
 }
 if(kind==1)
  for(j=0;j<7;j++)
  {
   for(i=7;i>=j;i--)
   {
    if(i>j)
     for(k=0;k<8;k++)
      a[k+i*8]=tab_xuanzhuantiao[(14-i+j)*8+k];
    else
     for(k=0;k<8;k++)
      a[k+i*8]=tab_xuanzhuantiao[k];
   }
   zhen(a,v);
  }
 else
  for(j=1;j<7;j++)
  {
   for(i=7;i>=j;i--)
   {
    if(i>j)
     for(k=0;k<8;k++)
      a[k+i*8]=tab_xuanzhuantiao[(i-j)*8+k];
    else
     for(k=0;k<8;k++)
      a[k+i*8]=tab_xuanzhuantiao[k];
   }
   zhen(a,v);
  }
}
void qumianxuanzhuan2(char num,char v)//曲面旋转
{
 uchar a[64]={0};
 char i,j,k;
 for(j=0;j<8;j++)
  for(i=0;i<8;i++)
   a[i+j*8]=tab_xuanzhuantiao[i];
 zhen(a,v);
 for(j=1;j<8;j++)
 {
  for(i=0;i=0;i--)
 {
  for(j=0;j<8;j++)
  {
   a[j*8+i]=0xff;
   a[j*8+i+1]=0;
  }
  zhen(a,v);
 }
 clc();
}
void zimu(uchar *x,char n,char v,int num)//滚动字幕,num表示循环次数,v表示滚动速度,n字符个数
{
 char i,j,k;
 uchar xdata a[64]={0},temp0[8],temp1[8],temp2[8],temp3[8],temp[8];
 for(i=0;i<8;i++)
 {
  temp0[i]=0;
  temp1[i]=0;
  temp2[i]=0;
  temp3[i]=0;
 }
 while(num--)
  for(j=0;j=0;k--)//读取数据
    temp[7-k]=x[j*8+k];
   for(k=0;k<8;k++)//移动8位
   {
    for(i=0;i<8;i++)
    {
     temp0[i]=(temp0[i]<<1)|(temp1[i]>>7);
     temp1[i]=(temp1[i]<<1)|(temp2[i]>>7);
     temp2[i]=(temp2[i]<<1)|(temp3[i]>>7);
     temp3[i]=(temp3[i]<<1)|(temp[i]>>7);
     temp[i]<<=1;
     fun1(a+i*8,temp0[i],temp1[i],temp2[i],temp3[i]);
    }
    zhen(a,v);
   }
  }
}
void hy(uchar *tab,char v)
{
 uchar a[64]={0};
 char i,j;
 for(i=0;i<8;i++)
  a[i*8]=tab[i];
 zhen(a,v);
 for(i=1;i<8;i++)
 {
     for(j=0;j<8;j++)
      a[i+j*8]=a[i-1+j*8];
     zhen(a,v);
 } 
        for(i=0;i<7;i++)
 {
     for(j=0;j<8;j++)
      a[i+j*8]=0;
     zhen(a,v);
 }
        zhen(a,23); 
}
void W_side(uchar *tab,char num,char v)
{
 uchar a[64]={0};
 int i,j;
 for(j=0;j0;k--)
    {
     if(m==1&&k==6)
     {;}
     else
      b[(k+1)*8+7-i]&=(~p);
     b[k*8+7-i]|=(0x01<0;j--)
 {
  for(i=7;i>0;i--)
  {
   b[i]=b[i-1];

  }
   zhen(b,5);  
 }
 clc();
}
void water1(char x,char y,char v)
{
 uchar a[64]={0};
 char i,r;
 a[7*8+y]=0x01<=0;i--)
 {
  a[i*8+y]=a[(i+1)*8+y];
  a[(i+1)*8+y]=0;
  zhen(a,v);
 }//下落
 for(r=0;r<7;r++)
 {
  for(i=0;i<8;i++)
   a[i]=tab_water[r*16+7-y+i]>>(7-x);
  zhen(a,v+1);
 }//扩散
}
void water2(char x1,char y1,char x2,char y2,char v)
{
 uchar a[64]={0};
 char i,r;
 a[7*8+y1]=0x01<=0;i--)
 {
  move(a,2,0,1);
  if(i==5)
  {
   a[7*8+y2]=0x01<>(7-x2);  
  if(r<7)
   for(i=0;i<8;i++)
    a[i]|=(tab_water[r*16+7-y1+i]>>(7-x1));
  if(r==1)
   a[y2]|=0x01<=0;i--)
 {
  move(a,2,0,1);
  if(i==5)//第二点
   a[7*8+y2]=0x01<=4)
   for(i=0;i<8;i++)
    a[i]=tab_water[(r-4)*16+7-y3+i]>>(7-x3);
  if(r<9&&r>=2)
   for(i=0;i<8;i++)
    a[i]|=tab_water[(r-2)*16+7-y2+i]>>(7-x2);  
  if(r<7)
   for(i=0;i<8;i++)
    a[i]|=(tab_water[r*16+7-y1+i]>>(7-x1));
  if(r==1)
   a[y2]|=0x01<=0;i--)
  {
   a[i]=0x01<55)
    a[i]=0xff;
   else
    a[i]=0;
  }*/
  zhen(a,20);
  for(i=7;i>=0;i--)//1
   for(j=6;j>=0;j--)
   {
    a[i+j*8]=0xff;
    a[i+(j+1)*8]=0;
    zhen(a,v);
   }
  zhen(a,27);
  for(i=7;i>=0;i--)//2
   for(j=1;j<8;j++)
   {
    a[i+j*8]=0xff;
    a[i+(j-1)*8]=0;
    zhen(a,v);
   }
  zhen(a,27);
  for(i=7;i>=0;i--)//3
   for(k=6;k>=0;k--)
   {
    for(j=0;j<8;j++)
    {
     if(k==0)
      a[j+k*8]|=(0x80>>(7-i));
     else
      a[j+k*8]=(0x80>>(7-i));
     a[j+(k+1)*8]^=(0x80>>(7-i));
    }
    zhen(a,v);
   }
  zhen(a,27);
  for(i=7;i>=0;i--)//4
   for(k=1;k<8;k++)
   {
    for(j=0;j<8;j++)
    {
     if(k==7)
      a[j+k*8]|=(0x80>>(7-i));
     else
      a[j+k*8]=(0x80>>(7-i));
     a[j+(k-1)*8]^=(0x80>>(7-i));
    }
    zhen(a,v);
   }
  zhen(a,27);
}
void donghua(uchar *tab,uchar num,uchar n,char v)
{
 char i;
 while(n--)
 {
  for(i=0;i=0;j--)
 {
  for(i=7;i>=0;i--)
  {
   a[i*8+3]=szfc_table[j+i];
   a[i*8+4]=szfc_table[j+i];
  }
  zhen(a,v);
 }
}[page]
void shandian(char v)
{
  char i,j;
  uchar a[64];
  for(i=0;i<64;i++)
   a[i]=tab_shandian[64*21+i];
  for(i=0;i<22;i++)
   zhen(tab_shandian+64*i,v);
  for(i=0;i<22;i++)
  {
   for(j=0;j<64;j++)
    a[j]=a[j]&(~tab_shandian[64*i+j]);
   zhen(a,v);
  }
}
void cut()
{
 uchar a[64]={0};
 char i;
 for(i=0;i<4;i++)
 {
  a[i*8+7]=0xff;
  a[(7-i)*8+7]=0xff;
  zhen(a,8);
 }
 zhen(a,30);
 for(i=3;i>=0;i--)
 {
  a[i*8+7]=0;
  a[(7-i)*8+7]=0;
  zhen(a,8);
 }
}
void shensuo(uchar v)
{
 char i,j;
 uchar a[64]={0};
 for(i=0;i<64;i++)
  a[i]=0xff;
 for(i=0;i<7;i++)
 {
  move(a,0,0,1);
  zhen(a,v);
 }
 for(i=0;i<7;i++)
 {
  move(a,0,1,1);
  for(j=0;j<64;j++)
   a[j]|=0x01;
  zhen(a,v);
 }
 for(i=0;i<7;i++)
 {
  move(a,2,0,1);
  zhen(a,v);
 }
 for(i=0;i<7;i++)
 {
  move(a,2,1,1);
  for(j=0;j<8;j++)
   a[j]|=0xff;
  zhen(a,v);
 }
 for(i=7;i>0;i--)
 {
  for(j=0;j<8;j++)
   a[j*8+i]=0;
  zhen(a,v);
 }
 for(i=1;i<8;i++)
 {
  for(j=0;j<8;j++)
   a[j*8+i]|=0xff;
  zhen(a,v);
 }
}
void linkpc1(char v)
{
 uchar i,a[64]={0};
 for(i=0;i<7;i++)
  a[7*8+i]=0xff;
 for(i=0;i<8;i++)
 {
  move(a,2,0,1);
  zhen(a,v);
 }
}
void link00()
{
 uchar a[64]={0};
 char i;
 for(i=10;i>7;i--)
 {
  zhen(bianxing_table+i*64,70);
 }
 produce_cube(a,6);
 move(a,1,1,1);
 move(a,0,1,1);
 zhen(a,110);
 produce_cube(a,8);
 zhen(a,110);
}
void link_jb0(char v)
{
 uchar a[64]={0};
 char i;
 for(i=0;i<64;i++)
 {
  a[i]=0x80;
  zhen(a,v);
 }
}
int STC_ADC()
{
  uchar i;
    ADC_RES=0;
    ADC_RESL=0;
  ADC_CONTR=0x88;
  i=3;
    while(i--);
    while(1)                      
    {
       if(ADC_CONTR&0x10)       
    break;
    }
    ADC_CONTR=0x80;
  return(ADC_RESL+ADC_RES<<2);
}
short sqrt_16( unsigned long M)   
{
    unsigned int N,i;
    unsigned long tmp,ttp; 
    if(M==0)             
        return 0;
    N=0;
    tmp=(M>>30);        
    M<<=2;
    if(tmp>1)            
    {
        N++;               
        tmp-=N;
    }
    for(i=15;i>0;i--)   
    {
        N<<=1;           
        tmp<<=2;
        tmp+=(M>>30);  
        ttp=N;
        ttp=(ttp<<1)+1;
        M<<=2;
        if(tmp>=ttp)    
        {
            tmp-=ttp;
            N++;
        }       
    }
    return N;
}
void FFT()
{
 int xdata i,bb,j,k,p;
 int max,a[6];
 int xdata TR,TI,temp;
   for(i=0; i<64;i++)
 {
      Real[BRTable[i]]=STC_ADC();
      Image[i]=0;
 }
   for(i=1;i<=6;i++)                          
   { 
      bb=1;
      bb<<=(i-1);                                      
      for(j=0;j<=bb-1;j++)                            
      { 
         p=1;
         p<<=(6-i);            
         p=p*j;
         for(k=j;k<64;k=k+2*bb)               
         { 
      key_amenu_scan();    
    key_out_scan();
            TR = Real[k]; 
    TI = Image[k];
    temp=Real[k+bb];
            Real[k]=Real[k]+((Real[k+bb]*cos_tabb[p])>>7)+((Image[k+bb]*sin_tabb[p])>>7);
            Image[k]=Image[k]-((Real[k+bb]*sin_tabb[p])>>7)+((Image[k+bb]*cos_tabb[p])>>7);
            Real[k+bb]=TR-((Real[k+bb]*cos_tabb[p])>>7)-((Image[k+bb]*sin_tabb[p])>>7);
            Image[k+bb]=TI+((temp*sin_tabb[p])>>7)-((Image[k+bb]*cos_tabb[p])>>7); 
            Real[k]>>=1;             
            Image[k]>>=1; 
            Real[k+bb]>>=1;                 
            Image[k+bb]>>=1; 
         }  
      }
   }
 max=0;
 for(i=0;i<6;i++)
 {
    a[i]=sqrt_16((Real[i+1]*Real[i+1]+Image[i+1]*Image[i+1])>>1);
    if(a[i]<2 )     
       a[i]=0;
    else
       a[i]-=2;
  if(max7)
 {
  max/=7;
  for(i=0;i<6;i++)
  {
   a[i]/=max;
  }
 }
 for(i=0;i<6;i++)
  c[i]=a[i];
}
void disp() interrupt 1
{
 TR0=0;
 TH0=(65536-2500)/256;
 TL0=(65536-2500)%256;
 if(num>=(amenu-1))
  num=0;
 else
  num++;
 if(b[num]c[num])
  b[num]--;
 if(b[num]>8)
  b[num]=8;
 if(amenu==1)
  fun(table1+num*8);
 else if(amenu==2)
  fun(table2+num*8);
 else if(amenu==3)
  fun(table3+num*8);
 else if(amenu==4)
  fun(table4+num*8);
 else if(amenu==5)
  fun(table5+num*8);
 else
  fun(table6+num*8); 
 P3=tuku1[b[num]];
 TR0=1;
}
/**********初始化函数*****************/
void init()
{
 /***********I/O口初始化*************/
 P1M1=1;  //p1.0口高阻输入
 P1ASF=1; 
 P3M0=0xff;  //P3口推挽输出
 P2M0=0xff;
 P0M0=0xff;
 P4SW = 0x31;
 TMOD=0x01;
 TH0=(65536-4000)/256; 
 TL0=(65536-4000)%256;
 EA=1;  
 ET0=1; 
 TR0=0;  
   menu=0;
 out=0;
 amenu=0;
 num=0;
}
/*************主函数******************/
void main()
{
 int i,j;
 char go;
 delay(800);
 init(); //初始化函数
////////////////////////呼吸灯
 P2=0xff;
 P0=0;
 P2=0x80;
 P3=1;
 while(!menu)
 {
  for(i=0;i<400;i++)
  {
   key_menu_scan();
   if(menu)
    break;
   P0=0x80;
   delay1(i);
   P0=0;
   delay1(400-i);
   if(i<200)
   {
    j=2;
    while(j--)
    {
     P0=0x80;
     delay1(i);
     P0=0;
     delay1(400-i);
    }
   }
  }
  for(i=0;i<401;i++)
  {
   if(menu)
    break; 
   key_menu_scan();
   P0=0x80;
   delay1(400-i);
   P0=0;
   delay1(i);
   if(i>200)
   {
    j=2;
    while(j--)
    {
     P0=0x80;
     delay1(400-i);
     P0=0;
     delay1(i);
    }
   }
  }
 }
 P3M0=0x00;
///////////////////////////开机扫描
 turn_on(10);
 H_scan(20);
 V_scan(20);
 W_scan(20);
/////////////////主菜单选项
 while(1)
 {
  hy(number+37*8,2);
  while(!amenu)
  {
   W_side(number+(36+menu)*8,1,45);
  }
  switch(menu){
  case 1://音谱显示
   delay(400);
   while(!out)
   {
    TR0=1;
    FFT();
   } 
   TR0=0;
   break;
  case 2://动画显示
   delay(400);
   amenu=0;//menu=1;
   go=1;
   cut();
   while(go)
   {
    for(i=0;i<10;i++)
     hy(number+27*8+i*8,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    zimu(number,19,12,1);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    fn(4);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    out=0;
    flash0(2);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    linkpc1(10);
    pc1(4,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    leitu(yc_table,5,2); 
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    denghuo(3);
    if(out==1)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    water1(1,2,10);water1(2,4,10);
    water1(4,3,10);water1(7,1,10);
    water1(5,6,10);   
    water2(0,2,7,1,9);
    water2(2,4,7,7,9);
    water2(4,7,7,1,9);
    water2(3,6,7,7,9);
    water2(4,1,6,6,9);
    water2(7,3,1,2,9);
    water3(0,4,7,4,5,1,9);
    water3(7,7,0,0,0,7,9);
    water3(0,6,6,6,5,1,9);
    water3(6,7,0,0,2,2,9);
    water3(3,3,6,6,2,2,9);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    clc();
    link_pingmian1(1);
    pingmian1(8,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    for(i=0;i<7;i++)
     print(tab_print+i*8,1);
    for(i=7;i<11;i++)
     print(tab_print+i*8,0);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    clc();
    link_jb0(1);
    jb0(10,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    yinchu(yc_table,5,9);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    clc();
    link_jb0(1);
    jb0(10,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    link(9);
    xuanzhuantiao(1,8,4);
    xuanzhuantiao(0,8,4);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    xuanzhuantiao2(3,3);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    qumianxuanzhuan(1,10,4);
    qumianxuanzhuan(0,10,4);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    qumianxuanzhuan2(13,4);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    xuanzhuantiao(1,4,4);
    xuanzhuantiao(1,3,5);
    xuanzhuantiao(1,2,6);
    xuanzhuantiao(1,1,7);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    donghua(bianxing_table,11,1,24);
    xzcube();
    donghua(y_table,6,5,5);
    donghua(x_table,6,5,5);
    donghua(z_table,6,5,5);
    link00();
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    shensuo(5);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    donghua(sin_cube_table,14,22,5);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    for(i=0;i<3;i++)
     for(j=0;j<3;j++)
      cube(0,j,6);
    for(i=0;i<3;i++)
     for(j=0;j<3;j++)
      cube(1,j,6);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;   
   while(go)
   {
    donghua(hart_table,2,10,32);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    for(i=2;i>0;i--)
      shandian(i);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    szfc0(10);
    if(out)
     go=1;
    else
     go=0;
   }
   go=1;
   while(go)
   {
    rain(1,10,9);
    rain(0,10,9);
    if(out)
     go=1;
    else
     go=0;
   }
   break;
  case 3://夜灯模式
   delay(200);
   LED();break;
  }
  out=0;
  amenu=0;
  menu=1;
 }
}
关键字:stc51单片机  的光立方  c语言 引用地址:基于stc51单片机的光立方c语言源代码

上一篇:51单片机实现贪食蛇的子程序
下一篇:基于stc单片机的AT89S52离线烧录器程序

推荐阅读最新更新时间:2024-03-16 14:05

51单片机——ADC模数转换、DAC数模转换PWM C语言入门编程
ADC: ADC(analog to digital converter)也称为模数转换器,是指一个将模拟信号转变为数字信号。单片机在采集模拟信号时,通常都需要在前端加上A/D芯片。AD转换器(ADC)将模拟量转换为数字量通常要经过4个步骤:采样、保持、量化和编码。 ADC的分辨率是指对于允许范围内的模拟信号,它能输出离散数字信号值的个数。这些信号值通常用二进制数来存储,因此分辨率经常用比特作为单位,且 这些离散值的个数是 2 的幂指数。 例如:12位ADC的分辨率就是12位,或者说分辨率为满刻度的1/(2^12)。 一个10V满刻度的12位ADC能分辨输入电压变化最小值是10V×1/(2^12 )=2.4mV
[单片机]
51单片机——ADC模数转换、DAC数模转换PWM <font color='red'>C语言</font>入门编程
51单片机C语言程序(三)数码管
程序一 利用动态扫描方法在六位数码管上显示出稳定的654321. 时钟频率为11.0592M #include reg52.h //52单片机头文件 #include intrins.h //包含有左右循环移位子函数的库 #define uint unsigned int //宏定义 #define uchar unsigned char //宏定义 sbit dula=P2^6; //数码管段选锁存端 sbit wela=P2^7; ////数码管位选锁存端 uchar code table ={ //数码管显示编码 0x3f,0x06,0x5b,0x4f, 0x66,0x6d,0x7d,0
[单片机]
单片机c语言教程第三章--C51数据类型
每写一个程序,总离不开数据的应用,在学习 c51 语言的过程中掌握理解数据类型也是 很关键的。先看表 3-1,表中列出了 KEIL uVision2 单片机c语言编译器所支持的数据类型。在标准C语言中基本的数据类型为 char,int,short,long,float 和 double,而在c51编译器中int 和 short 相同,float 和 double 相同,这里就不列出说明了。下面来看看它们的具体定 义 数据类型 长 度 值 域 unsigned char 单字节 0~255 signed char 单字节 -128~+127 unsigned int 双字节 0~65535
[单片机]
基于STM32从零写操作系统系列---使用C语言
目的 C语言,相对于汇编有更好的可读性,便于维护等优点。下面实验将使用C语言实现点亮LED灯。C语言与硬件是紧密连在一起的,结合芯片中的flash和sram,简单了解C语言。 要求 1.有一定的C语言基础 2.了解编译链接脚本 3.了解stm32F103的硬件结构 实验源代码在这下载,代码中有详细注释! 分析 1.首先了解硬件,如图 FLASH,就是存放.bin文件的地方。SRAM,用于存放程序的堆栈,全局变量。 2.了解链接脚本,如图: MEMORY,用于定义存储器范围。 AT rom,表示将对应的SECTION放置到rom中,即Flash中。 _data_start / _data_end,用
[单片机]
基于STM32从零写操作系统系列---使用<font color='red'>C语言</font>
一个跳舞机器人C语言程序
先写预处理命令和变量定义.   编写简谱的数组,其中第一项为音符,第二项为节拍,第三项为小车动作值。   还有定时器中断处理程序,用它来输出方波。   再写一个读简谱子程序,就是把数组中的数据分别放到定时器初值变量、节拍延时变量、小车动作变量中。   最后是主程序,基本流程和汇编语言一样。   分支程序   这里使用了条件语句,也就是当条件符合时就执行语句。条件语句又被称为分支语句,也有人称为判断语句。它是由关键字if构成。就如同我平常说话一样,C语言中也用“如果……就……”或“如果……就……否则……”。if语句根据所给定的条件是否满足,即根据判定的结果是真是假来决定后面的语句是否执行。C语
[单片机]
一个跳舞机器人<font color='red'>的</font><font color='red'>C语言</font>程序
详解i2c(三)c语言实现
为了加深对I2C总线的理解,用C语言模拟IIC总线,边看源代码边读波形: 如下图所示的写操作的时序图: 读时序的理解同理。对于时序不理解的朋友请参考“I2C总线之(二)---时序” 完整的程序如下: #include reg51.h #define uchar unsigned char #define uint unsigned int #define write_ADD 0xa0 #define read_ADD 0xa1 uchar a; sbit SDA=P2^0; sbit SCL=P2^1; void SomeNop(); //短延时 void init(); //初始化 void check_ACK
[单片机]
详解i2c(三)<font color='red'>c语言</font>实现
pic单片机驱动CAN接口收发数据C语言程序,11位标准标识符
/********************************************* ** 功能描述: CAN口测试,11位标准标识符** *********************************************/ #include p30f6014.h int failmemory ; _FWDT(WDT_OFF); //_FOSC(CSW_FSCM_OFF & XT); _FOSC(CSW_FSCM_OFF & XT_PLL4); unsigned int buffer1; unsigned int buffer2; unsigned int buffer3; unsigned int buffe
[单片机]
51单片机ST7565C语言驱动程序
#include reg51.h #include intrins.h #define uchar unsigned char #define uint unsigned int /////////////////////////////////Serial/////////////////////////////////////////////////// sbit R_S= P3^5;//指令/数据选择信号 sbit RES= P3^4;//复位信号 sbit SCK= P1^6; sbit SDA= P1^7;
[单片机]
小广播
添点儿料...
无论热点新闻、行业分析、技术干货……
设计资源 培训 开发板 精华推荐

最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

换一换 更多 相关热搜器件
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved