标题:
单片机花样流水灯程序
[打印本页]
作者:
liulan19971118
时间:
2020-2-14 17:38
标题:
单片机花样流水灯程序
这是我最近做的花样流水灯。
花了几天时间做了一个,还做了实物焊接。
我用proteus做出了实物仿真,可以实现三种不同花色:红,绿,蓝,并且还可以以各种形式变换。
#include<reg52.h>
#define uchar unsigned char
#define uint unsigned int
uchar code Pattern_P0[]=
{
0xfc,0xf9,0xf3,0xe7,0xcf,0x9f,0x3f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xe7,0xdb,0xbd,0x7e,0xbd,0xdb,0xe7,0xff,0xe7,0xc3,0x81,0x00,0x81,0xc3,0xe7,0xff,
0xaa,0x55,0x18,0xff,0xf0,0x0f,0x00,0xff,0xf8,0xf1,0xe3,0xc7,0x8f,0x1f,0x3f,0x7f,
0x7f,0x3f,0x1f,0x8f,0xc7,0xe3,0xf1,0xf8,0xff,0x00,0x00,0xff,0xff,0x0f,0xf0,0xff,
0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,
0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff
};
uchar code Pattern_P2[]=
复制代码
花样流水灯.zip
2020-2-14 17:38 上传
点击文件名下载附件
下载积分: 黑币 -5
33.31 KB, 下载次数: 20, 下载积分: 黑币 -5
作者:
hei51com
时间:
2020-4-17 15:55
感谢分享,以后有空下载学习学习
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1