新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 基于stc51單片機的光立方c語言源代碼

基于stc51單片機的光立方c語言源代碼

作者: 時間:2016-11-30 來源:網(wǎng)絡(luò) 收藏

電路圖等制作資料請到這里下載:http://www.51hei.com/bbs/dpj-20613-1.html
下面是程序源碼:

本文引用地址:http://butianyuan.cn/article/201611/323825.htm
#include#define uint unsigned int#define uchar unsigned charsbit 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,//288+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,//2016+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//1224+4,24+4,24+3,24+3,//24+432+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,//1248+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,//2056+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+2848+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,//2040+5,40+5,40+5,40+5,40+4,40+3,40+2,40+2,40+2,40+2,40+3,40+4,//1232+4,32+4,32+3,32+3,24+4,24+4,24+3,24+3,//24+416+5,16+5,16+5,16+5,16+4,16+3,16+2,16+2,16+2,16+2,16+3,16+4,//128+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,//207,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,//286,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//205,4,3,2,2,2,2,3,4,5,5,5,//124,3,3,4,//4,3,3,4,5,4,3,2,2,2,2,3,4,5,5,5,//126,5,4,3,2,1,1,1,1,1,1,2,3,4,5,6,6,6,6,6,//207,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[]={//打印函數(shù)使用0X00,0X00,0X81,0XFF,0XFF,0X81,0X00,0X00,//I0X1C,0X3E,0X7E,0XFC,0XFC,0X7E,0X3E,0X1C,//心0X3F,0X7F,0X80,0X80,0X80,0X80,0X7F,0X3F,//U0X3C,0X42,0X14,0XA1,0XA1,0X14,0X42,0X3C,//笑臉0X00,0X73,0XE9,0X89,0X89,0X8F,0X4F,0X00,//50X00,0XC6,0X86,0X89,0X99,0XB1,0XE7,0XC6,//20X3C,0X7E,0X81,0X81,0X81,0X7E,0X3C,0X00,//00X00,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,//10X00,0X76,0XFF,0X89,0X89,0X81,0XC2,0X00,//30X00,0X00,0X80,0XFF,0XFF,0X82,0X00,0X00,//10X20,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,//10x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,//20x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,//30x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,//40x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,//50x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,//60x00,0x00,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,//70x00,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,//80x00,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,//90x00,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,//100x00,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,//110x00,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,//120x00,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,//130x00,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,//140x00,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,//150x00,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,//160x00,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,//170x00,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,//180x00,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,//190x00,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,//200x00,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,//210x00,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函數(shù)使用0x00,0x00,0x00,0x3c,0x3c,0x00,0x00,0x00,//1I0x00,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,//3U0x00,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[]=//旋轉(zhuǎn)條{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,//10x40,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[]=//旋轉(zhuǎn)條{0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80,//10X02,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,//80X80,0X80,0X80,0X80,0X40,0X40,0X40,0X40,//0X80,0X80,0X00,0X40,0X40,0X40,0X20,0X20,//100X80,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,//150X80,0X40,0X20,0X10,0X0C,0X02,0X01,0X00,//160X80,0X40,0X30,0X0C,0X02,0X01,0X00,0X00,//0X80,0X60,0X18,0X06,0X01,0X00,0X00,0X00,//180XC0,0X30,0X0E,0X01,0X00,0X00,0X00,0X00,//0XE0,0X1C,0X03,0X00,0X00,0X00,0X00,0X00,//200XF0,0X0F,0X00,0X00,0X00,0X00,0X00,0X00,//0XFF,0X00,0X00,0X00,0X00,0X00,0X00,0X00,//220X0F,0XF0,0X00,0X00,0X00,0X00,0X00,0X00,//230X07,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,//360X02,0X02,0X02,0X02,0X01,0X01,0X01,0X01,//370X04,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,//500X00,0X00,0X00,0X00,0X00,0X00,0X0F,0XF0,//510X00,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,//20x00,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,//30X00,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,//50x00,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,//60x00,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,//70x00,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,//80x00,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,//100xc3,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幀四方塊外軸心旋轉(zhuǎn)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,//10x06,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,//20x0c,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,//30x18,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,//40x30,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,//50x60,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,//10x60,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,//20x30,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,//30x18,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,//40x0c,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,//50x06,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};				   
				
            
                
			
							
上一頁 1 2 3 4 下一頁

關(guān)鍵詞: stc51單片機的光立方c語

評論


技術(shù)專區(qū)

關(guān)閉