资源简介
一整套光立方8*8*8 所需的文件 包括头文件 源程序 仿真电路图 使用2083和573 构成的电路
![](http://www.nz998.com/pic/66721.jpg)
代码片段和文件信息
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar display[8][8];
/*rank:A1234I心U*/
uchar code table_cha[8][8]={0x510x510x510x4a0x4a0x4a0x440x440x180x1c0x180x180x180x180x180x3c0x3c0x660x660x300x180xc0x60xf60x3c0x660x600x380x600x600x660x3c0x300x380x3c0x3e0x360x7e0x300x300x3c0x3c0x180x180x180x180x3c0x3c0x660xff0xff0xff0x7e0x3c0x180x180x660x660x660x660x660x660x7e0x3c};
/*the “ideasoft“*/
uchar code table_id[40]={0x810xff0x810x000xff0x810x810x7e0x000xff0x890x890x000xf80x270x270xf80x000x8f0x890x890xf90x000xff0x810x810xff0x000xff0x090x090x090x010x00x010x010xff0x010x010x00};
/*railway*/
uchar code dat[128]={0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x40x250x450x650x850xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x390x350x310x2d0x290x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e0x6f0x8f0x930x730x6f0x8f0x930x730x4a0x6a0x8a0xaa0xae0xb20xb60x960x760x560x520x4e0x250x450x650x850xa50xc50xc90xcd0xd10xd50xd90xb90x990x790x590x390x350x310x2d0x290x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};
/*railway 2*/
uchar code dat2[28]={0x00x200x400x600x800xa00xc00xe00xe40xe80xec0xf00xf40xf80xfc0xdc0xbc0x9c0x7c0x5c0x3c0x1c0x180x140x100xc0x80x4};
/*railway 3*/
uchar code dat3[24]={0x000x010x020x030x040x050x060x160x260x360x460x560x660x650x640x630x620x610x600x500x400x300x200x10};
/*3p char*/
uchar code table_3p[3][8]={0xff0x890xf50x930x930xf50x890xff0x0e0x1f0x3f0x7e0x7e0x3f0x1f0x0e0x180x3c0x7e0xff0x180x180x180x18};
/*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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 73644 2012-02-04 20:27 光立方2803+573\001.jpg
文件 64613 2012-02-04 20:27 光立方2803+573\002.jpg
文件 56906 2012-12-01 19:28 光立方2803+573\8X8X8
文件 38266 2012-02-06 21:50 光立方2803+573\8X8X8.c
文件 24769 2012-12-01 19:28 光立方2803+573\8X8X8.hex
文件 42 2012-12-01 19:28 光立方2803+573\8X8X8.lnp
文件 77062 2012-12-01 19:28 光立方2803+573\8X8X8.LST
文件 67197 2012-12-01 19:28 光立方2803+573\8X8X8.M51
文件 75206 2012-12-01 19:28 光立方2803+573\8X8X8.OBJ
....... 975 2012-02-25 19:43 光立方2803+573\8X8X8.opt.bak
文件 459 2012-12-02 00:27 光立方2803+573\8X8X8.plg
....... 2143 2012-02-25 19:43 光立方2803+573\8X8X8.Uv2.bak
....... 57309 2012-12-02 00:27 光立方2803+573\8X8X8.uvopt
....... 13235 2012-12-02 00:27 光立方2803+573\8X8X8.uvproj
....... 0 2012-02-25 19:42 光立方2803+573\8X8X8_Uv2.Bak
文件 1004806 2012-02-04 20:33 光立方2803+573\yuanli.jpg
目录 0 2012-12-02 00:27 光立方2803+573
文件 604255 2013-01-30 15:45 原理图new.pdf
----------- --------- ---------- ----- ----
2160887 18
相关资源
- scratch3.0 源程序(说相声)
- 清翔电子MCS51开发板资料_新版 01_开发
- 改进的BP神经网络算法
- 光立方制作(原理图 源程序 LED搭接方
- FM1702调试源程序
- HEX到Bin文件源代码
- 智能寻迹机器人源程序及pcb图
- 单片机数字时钟包附电路图 源程序
- C 纸牌游戏——21点
- 16X16点阵程序(附仿真图和源程序)
- 基于ARM蓝牙传输源程序
- C读DXF源程序及AutoCAD中的DXF参考文件
- 路由选择算法源程序(最短路径算法
- 51多机通信(内附Proteus及.hex文件)
- 数字电压表(源程序 protues仿真)
- 十六进制与字符串互转
- Winhex 15 官方中文语言包
- 源程序量统计小工具
- delphi rfid 读写卡读卡器/写卡器源程序
- PMW-HEX2.4破解版
- 全屏的俄罗斯方块源程序
- 获取外网IP地址小工具,VC 简单源程
- Synthesis of Cyclohexanone-formaldehyde Resi
- 好用winhex16进制编辑器
- 无刷电机控制源程序
- 指纹识别源程序与指纹库
- 暗通道去霾处理源程序
- 四路抢答器源程序+Pro7仿真文件
- OpenGL绘制可运动自行车源程序.zip
- 光滑粒子流体动力学SPH源程序
评论
共有 条评论