資源簡介
8x8x8光立方.rar

代碼片段和文件信息
#include?
#include?
#define?uchar?unsigned?char
#define?uint?unsigned?int
uchar?display[8][8];
/*rank:A1234I心U*/
uchar?code?table_cha[8][8]={
0x510x510x510x4a0x4a0x4a0x440x440x180x1c0x180x180x180x180x180x3c
0x3c0x660x660x300x180xc0x60xf60x3c0x660x600x380x600x600x660x3c
0x300x380x3c0x3e0x360x7e0x300x300x3c0x3c0x180x180x180x180x3c0x3c
0x660xff0xff0xff0x7e0x3c0x180x180x660x660x660x660x660x660x7e0x3c};
/*the?“ideasoft“*/
uchar?code?table_id[40]={
0x810xff0x810x000xff0x810x810x7e0x000xff0x890x890x000xf80x270x27
0xf80x000x8f0x890x890xf90x000xff0x810x810xff0x000xff0x090x090x09
0x010x00x010x010xff0x010x010x00};
/*railway*/
uchar?code?dat[128]={
0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc
0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x40x250x450x650x85
0xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x390x350x310x2d0x29
0x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e0x6f0x8f0x930x73
0x6f0x8f0x930x730x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e
0x250x450x650x850xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x39
0x350x310x2d0x290x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf0
0xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};
/*railway?2*/
uchar?code?dat2[28]={
0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc
0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};
/*railway?3*/
uchar?code?dat3[24]={
0x000x010x020x030x040x050x060x160x260x360x460x560x660x650x640x63
0x620x610x600x500x400x300x200x10};
/*3p?char*/
uchar?code?table_3p[3][8]={
0xff0x890xf50x930x930xf50x890xff0x0e0x1f0x3f0x7e0x7e0x3f0x1f0x0e0x18
0x3c0x7e0xff0x180x180x180x18};
/*initializtion
That?is?to?initialize?the?program?.
It?is?write?to?set?the?timer?in?c52?mcu.
So?the?program?can?renovate?the?led_3d_cube?in?fixed?time?use?the?interrupt?function.*/
void?sinter()
{
IE=0x82;
TCON=0x01;
TH0=0xc0;
TL0=0;
TR0=1;
}
void?delay5us(void)???//誤差?-0.026765046296us?STC?1T?22.1184Mhz
{
unsigned?char?ab;
for(b=7;b>0;b--)
for(a=2;a>0;a--);
}
void?delay(uint?i)
{?????????????????????????????????????????????????????????????????????????????????????????????????????
while?(i--)
{
delay5us();
}//12t的mcu?注釋這個延時即可
}
/*To?judge?the?num?bit*/
uchar?judgebit(uchar?numuchar?b)
{
char?n;
num=num&(1< if?(num)
n=1;
else
n=0;
return?n;
}
/*To?figure?out?the?round?number*/
uchar?abs(uchar?a)
{
uchar?b;
b=a/10;
a=a-b*10;
if?(a>=5)
b++;
return?b;
}
/*To?figure?out?the?absolute?value*/
uchar?abss(char?a)
{
if?(a<0)
a=-a;
return?a;
}
/*The?function?can?comparat?the?character.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20531??2009-01-01?23:48??8x8x8光立方\3D8.c
?????文件??????24769??2013-04-17?16:49??8x8x8光立方\3D8.hex
?????文件?????????39??2009-01-01?23:51??8x8x8光立方\3D8.lnp
?????文件??????55883??2009-01-01?23:51??8x8x8光立方\3D8.LST
?????文件??????68584??2009-01-01?23:51??8x8x8光立方\3D8.M51
?????文件??????75132??2009-01-01?23:51??8x8x8光立方\3D8.OBJ
?????文件????????154??2013-08-05?14:46??8x8x8光立方\3D8.plg
?????文件??????70821??2013-04-17?15:35??8x8x8光立方\3D8.uvgui.Administrator
?????文件??????70821??2013-04-17?15:21??8x8x8光立方\3D8.uvgui_Administrator.bak
????.......?????74655??2013-08-05?14:46??8x8x8光立方\3D8.uvopt
?????文件??????13393??2013-04-17?16:22??8x8x8光立方\3D8.uvproj
????.......?????74677??2009-01-01?23:55??8x8x8光立方\3D8_uvopt.bak
?????文件??????13423??2013-04-17?14:52??8x8x8光立方\3D8_uvproj.bak
?????文件?????142772??2013-03-19?22:57??8x8x8光立方\dian路\3D8.DSN
?????文件??????16384??2013-08-05?10:08??8x8x8光立方\dian路\3D8.DSNlck
?????文件????????768??2013-08-12?11:48??8x8x8光立方\dian路\3D8.PWI
?????文件?????139451??2013-03-19?20:43??8x8x8光立方\dian路\Last?Loaded?3D8.DBK
?????文件????2422784??2013-05-13?15:45??8x8x8光立方\dian路\PCB\3D8.Bkp
?????文件????2422784??2013-05-13?15:45??8x8x8光立方\dian路\PCB\3D8.ddb
?????文件??????59215??2013-03-20?23:02??8x8x8光立方\dian路\PCB\Backup?of?3D8.lib
?????文件????2039734??2013-05-06?20:43??8x8x8光立方\dian路\PCB\Backup?of?3D8.PCB
?????文件??????48315??2013-04-16?19:17??8x8x8光立方\dian路\PCB\Backup?of?3D8.Sch
?????文件??????10752??2013-04-07?17:10??8x8x8光立方\dian路\PCB\Backup?of?3D8.XLS
?????文件????2039734??2013-04-16?19:17??8x8x8光立方\dian路\PCB\Previous?Backup?of?3D8.PCB
?????文件??????48315??2013-04-16?19:08??8x8x8光立方\dian路\PCB\Previous?Backup?of?3D8.Sch
?????文件???????6376??2005-03-22?15:22??8x8x8光立方\STARTUP.A51
?????文件??????14068??2009-01-01?23:51??8x8x8光立方\STARTUP.LST
?????文件????????758??2009-01-01?23:51??8x8x8光立方\STARTUP.OBJ
?????目錄??????????0??2013-08-05?10:00??8x8x8光立方\dian路\PCB
?????目錄??????????0??2013-08-12?11:48??8x8x8光立方\dian路
............此處省略4個文件信息
- 上一篇:漫灣水庫調(diào)度程序
- 下一篇:電動車智能充電樁全套
評論
共有 條評論