• 大小: 106.85 KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-12-03
  • 语言: 其他
  • 标签: 光立方  

资源简介

这个是我自己自己设计的光立方电路和程序,效果很好,集成了几项功能。有音频频谱显示,动画,夜灯模式,爱好者还可以在我程序的基础上进行扩展,演示视频在此
http://v.youku.com/v_show/id_XMzI1ODQ5NjAw.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[]={
0x00000x00000x00000x00000x00000x00000x00800x01400x00800x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00800x01400x02200x01400x00800x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x01c00x02200x04100x04100x04100x02200x01c00x00000x00000x00000x00000x0000  
0x00000x00000x00000x03e00x04100x08080x08080x08080x08080x08080x04100x03e00x00000x00000x00000x0000
0x00000x00000x07f00x08080x10040x10040x10040x10040x10040x10040x10040x08080x07f00x00000x00000x0000
0x00000x0ff80x10040x20020x20020x20020x20020x20020x20020x20020x20020x20020x10040x0ff80x00000x0000
0x1ffc0x20020x40010x40010x40010x40010x40010x40010x40010x40010x40010x40010x40010x20020x1ffc0x0000
};
char code tab00[]={7777777765432100000000123456//28
    8+68+68+68+68+68+68+58+48+38+28+18+18+18+18+18+18+28+38+48+5//20
    16+516+516+516+516+416+316+216+216+216+216+316+4//12
 24+424+424+324+3//24+4
 32+432+432+332+3
    40+540+540+540+540+440+340+240+240+240+240+340+4//12
    48+648+648+648+648+648+648+548+448+348+248+148+148+148+148+148+148+248+348+448+5//20
 56+756+756+756+756+756+756+756+756+656+556+456+356+256+156+056+056+056+056+056+056+056+056+156+256+356+456+556+6//28
};
char code tab10[]={56+756+756+756+756+756+756+756+756+656+556+456+356+256+156+056+056+056+056+056+056+056+056+156+256+356+456+556+6//56+28
    48+648+648+648+648+648+648+548+448+348+248+148+148+148+148+148+148+248+348+448+5//20
    40+540+540+540+540+440+340+240+240+240+240+340+4//12
 32+432+432+332+3
 24+424+424+324+3//24+4
    16+516+516+516+516+416+316+216+216+216+216+316+4//12
    8+68+68+68+68+68+68+58+48+38+28+18+18+18+18+18+18+28+38+48+5//20
 7777777765432100000000123456//28
};
char code tab01[]={7654321000000001234567777777//28
 65432111111234566666//20
 543222234555//12
 4334//
4334
543222234555//12
65432111111234566666//20
 7654321000000001234567777777//28
};
uchar code tab_print[]={//打印函数使用
0X000X000X810XFF0XFF0X810X000X00//I
0X1C0X3E0X7E0XFC0XFC0X7E0X3E0X1C//心
0X3F0X7F0X800X800X800X800X7F0X3F//U
0X3C0X420X140XA10XA10X140X420X3C//笑脸
0X000X730XE90X890X890X8F0X4F0X00//5
0X000XC60X860X890X990XB10XE70XC6//2
0X3C0X7E0X810X810X810X

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      22981  2011-12-17 13:05  光立方制作\CUBE原理图.pdf

     文件      85406  2012-08-12 19:40  光立方制作\CUBE源代码.c

     文件      79783  2012-07-28 18:57  光立方制作\方形LED建议使用这种方式搭接.jpg

     目录          0  2012-08-12 19:42  光立方制作

----------- ---------  ---------- -----  ----

               188170                    4


评论

共有 条评论