ImageVerifierCode 换一换
格式:DOCX , 页数:55 ,大小:28.20KB ,
资源ID:6279262      下载积分:10 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.docduoduo.com/d-6279262.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(3D8光立方程序解析.docx)为本站会员(ysd1539)主动上传,道客多多仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知道客多多(发送邮件至docduoduo@163.com或直接QQ联系客服),我们立即给予删除!

3D8光立方程序解析.docx

1、关于光立方的程序相信新手会比较模糊,想、这段是给新手准备的一小段解析其他的跑马灯咱不说,关于文字(字母)的显示在这段程序中是 Flash_8 所完成的Display 数组存放的是所要显示是内容,而要显示多少则只需改 flash_8 的 i 的值即可而关于在那一排显示则是修改 tranoutchar 中 displayk后面的中括号内容即可#include #include #define uchar unsigned char#define uint unsigned intuchar display118;/*rank:A,1,2,3,4,I,心,U*/uchar code table_ch

2、a148=0x30,0x30,0x30,0x30,0x30,0x30,0x3e,0x3e,/L0xc3,0xc3,0xc3,0xc3,0xc3,0x66,0x3c,0x18,/v0x3c,0x7e,0x66,0x66,0x66,0x66,0x66,0x66,/n0x18,0x18,0x00,0x18,0x18,0x18,0x18,0x18,/i0x3c,0x7e,0x66,0x66,0x66,0x66,0x66,0x66,/n0x38,0x44,0x44,0x44,0x3c,0x04,0x44,0x3c,/g0x60,0x60,0x7e,0x7e,0x66,0x66,0x66,0x66,/h0

3、x00,0x3c,0x44,0x44,0x46,0x45,0x3c,0x00,/a0x3c,0x22,0x22,0x22,0x3c,0x20,0x20,0x20,/p0x3c,0x22,0x22,0x22,0x3c,0x20,0x20,0x20,/p0x24,0x24,0x24,0x3c,0x04,0x08,0x10,0x20,/y0x3c,0x3c,0x18,0x18,0x18,0x18,0x3c,0x3c,/i0x66,0xff,0xff,0xff,0x7e,0x3c,0x18,0x18,/xin0x66,0x66,0x66,0x66,0x66,0x66,0x7e,0x3c /u;/*th

4、e “ideasoft“*/uchar code table_id40=0x81,0xff,0x81,0x00,0xff,0x81,0x81,0x7e,0x00,0xff,0x89,0x89,0x00,0xf8,0x27,0x27,0xf8,0x00,0x8f,0x89,0x89,0xf9,0x00,0xff,0x81,0x81,0xff,0x00,0xff,0x09,0x09,0x09,0x01,0x0,0x01,0x01,0xff,0x01,0x01,0x00;/*railway*/uchar code dat128=0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0x

5、e0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x6f,0x8f,0x93,0x73,0x6f,0x8f,0x93,0x73,

6、0x4a,0x6a,0x8a,0xaa,0xae,0xb2,0xb6,0x96,0x76,0x56,0x52,0x4e,0x25,0x45,0x65,0x85,0xa5,0xc5,0xc9,0xcd,0xd1,0xd5,0xd9,0xb9,0x99,0x79,0x59,0x39,0x35,0x31,0x2d,0x29,0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4;/*ra

7、ilway 2*/uchar code dat228=0x0,0x20,0x40,0x60,0x80,0xa0,0xc0,0xe0,0xe4,0xe8,0xec,0xf0,0xf4,0xf8,0xfc,0xdc,0xbc,0x9c,0x7c,0x5c,0x3c,0x1c,0x18,0x14,0x10,0xc,0x8,0x4;/*railway 3*/uchar code dat324=0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x16,0x26,0x36,0x46,0x56,0x66,0x65,0x64,0x63,0x62,0x61,0x60,0x50,0x40,0

8、x30,0x20,0x10;/*3p char*/uchar code table_3p38=0xff,0x89,0xf5,0x93,0x93,0xf5,0x89,0xff,0x0e,0x1f,0x3f,0x7e,0x7e,0x3f,0x1f,0x0e,0x18,0x3c,0x7e,0xff,0x18,0x18,0x18,0x18;/*initializtionThat is to initialize the program .It is write to set the timer in c52 mcu.So the program can renovate the led_3d_cube

9、 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.1184Mhzunsigned char a,b;for(b=7;b0;b-)for(a=2;a0;a-);void delay(uint i) while (i-)delay5us();/12t 的 mcu 注释这个延时即可/*To judge the num bit*/uchar judgebit(

10、uchar num,uchar b)char n;num=numreturn b;/*To figure out the absolute value*/uchar abss(char a)if (a(*b)t=(*a);(*a)=(*b);(*b)=t; /*The function is to figure out the max number and return it.*/uchar maxt(uchar a,uchar b,uchar c)if (a=-3;i-)if (i=0)for (j=0;j=0)if (dir)cp=127-cpp;else cp=cpp; a=(datcp

11、5)b=(datcp2)c=datcpif (cpp63)c=7-c;point (a,b,c,le);void line(uchar x1,uchar y1,uchar z1,uchar x2,uchar y2,uchar z2,uchar le)char t,a,b,c,a1,b1,c1,i;a1=x2-x1;b1=y2-y1;c1=z2-z1;t=maxt(abss(a1),abss(b1),abss(c1);a=x1*10;b=y1*10;c=z1*10;a1=a1*10/t;b1=b1*10/t;c1=c1*10/t;for (i=0;i=0)i-)for (j=0;j=0)dela

12、y(speed);void tranoutchar(uchar c,uint speed)uchar i,j,k,a,i2=0;for (i=0;i0;i-)cirp(i-2,0,1);delay(8000);cirp(i-1,0,0);delay(8000); for (i=0;i0;i-)cirp(i-2,0,1);delay(8000);delay(8000);for (i=0;i=0;i-)box_apeak_xy(0,i,0,7,i,7,1,1);delay(20000);if (i0)box_apeak_xy(0,i,0,7,i,7,1,0);for (i=0;i=0)line(0,anj,j,7,anj,j,1);for (j=0;j=0)line(0,anj+1,j,7,anj+1,j,0);for (j=0;j0)anj-;delay(15000);for (j=0;j=0)line(0,anj,j,7,anj,j,1);for (j=0;j0)line(0,anj-1,j,7,anj-1,j,0);for (j=0;j3)anj-;delay(a);/2i=3;for (j=0;j0)anj-;delay(a);/3i=3;for (j=1;j4;j+)anj=4-j;while(i-)

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报