资源简介
LED屏.rar
代码片段和文件信息
#include
#include
sbit ST_CP=P3^6;
sbit DS=P3^7;
sbit ds=P3^4;
sbit SH_CP=P3^5;
bdata unsigned char paippaip_ds;
sbit pai0=paip^0;
sbit pai_ds0=paip_ds^0;
unsigned char code tab[]={0x000x000x000x4A0x4A0x0A0x0A0x6E0x4A0x4A0x4A0x4A0x4A0xEA0x000x00
0x000x000x000x250x250x050x050x350x270x250x250x250x250x750x000x00
0x000x000x000x920x920x820x820x9A0x930x920x120x120x920xBA0x000x00
0x000x000x000x490x490x410x410x4D0x490x490x090x090x490x5D0x000x00
0x000x000x000x240x240x200x200x260x240x240x040x040x240x2E0x000x00/*Hi!*/
0x000x000x000xEE0x440x440x280x280x100x100x100x100x100x380x000x00/*“Y“0*/
0x000x000x000xCE0x840x480x480x300x300x300x480x480x840xCE0x000x00/*“X“1*/
0x000x000x000x7F0x490x080x080x080x080x080x080x080x080x1C0x000x00/*“T“2*/
0x000x000x000x7F0x490x080x080x080x080x080x080x080x080x1C0x000x00/*“T“3*/
0x000x000x000x3C0x420x420x200x180x200x400x400x420x220x1C0x000x00/*“3“0*/
0x000x000x000x080x0E0x080x080x080x080x080x080x080x080x3E0x000x00/*“1“1*/
0x000x000x000x7E0x020x020x020x1A0x260x400x400x420x220x1C0x000x00/*“5“2*/
0x000x000x000x3C0x420x420x420x200x200x100x080x040x420x7E0x000x00/*“2“3*/
0x000x000x000x3C0x420x420x420x200x200x100x080x040x420x7E0x000x00/*“2“4*/
0x000x000x000x3F0x420x120x120x1E0x120x120x020x020x020x070x000x00/*“F“5*/
0x000x000x000x080x080x080x080x080x080x080x000x000x180x180x000x00/*“!“6*/
0x000x660xff0xff0x7e0x3c0x180x000x240x240x810x810x420x3c0x180x00
};
unsigned char tabp2[]={0x000x010x020x030x040x050x060x070x080x090x0a0x0b0x0c0x0d0x0e0x0f} ;
void delay_ms(int a)
{
int ij;
for(i = a; i > 0; i--)
for(j = 110; j > 0; j--);
}
void wcs8()
{ unsigned char i;
for(i=0;i<8;i++)
{
SH_CP=0;
DS=pai0;
paip=paip>>1;
ds=pai_ds0;
paip_ds=paip_ds>>1;
SH_CP=1;
}
}
void wcs()
{ unsigned char i;
for(i=0;i<8;i++)
{
SH_CP=0;
ds=pai_ds0;
paip_ds=paip_ds>>1;
SH_CP=1;
}
}
void main()
{
while(1){
int jknm;
for(n=0;n<5;n++){
for(m=0;m<30;m++){
for(k=0;k<16;k++){
P2=tabp2[k];
paip=tab[k+n*16];
paip_ds=0x80;
ST_CP=0;
wcs8();
//wcs();
ST_CP=1;
for(j=0;j<60;j++) ;
}
}
}
for(n=0;n<5;n++){
for(m=0;m<40;m++){
for(k=0;k<16;k++){
P2=tabp2[k];
paip=tab[k+n*16+64];
paip_ds=0x00;
ST_CP=0;
wcs8();
//wcs();
ST_CP=1;
for(j=0;j<60;j++) ;
}
}
}
for(n=0;n<112;n++){
for(m=0;m<16;m++){
for(k=0;k<16;k++){
P2=tabp2[k];
paip=tab[k+n+144];
if((n/16)%2)
paip_ds=0x80;
else
paip_ds=0x00;
ST_CP=0;
wcs8();
ST_CP=1;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6259 2018-06-12 16:50 LED屏\74
文件 3736 2018-06-12 16:50 LED屏\74.hex
文件 36 2018-06-12 16:50 LED屏\74.lnp
文件 9249 2018-06-12 16:50 LED屏\74.M51
文件 183 2018-07-02 20:10 LED屏\74.plg
....... 55642 2018-07-02 20:10 LED屏\74.uvopt
文件 13388 2017-04-16 09:46 LED屏\74.uvproj
文件 742 2017-04-18 21:31 LED屏\74HC595.PWI
....... 55646 2018-06-21 07:21 LED屏\74_uvopt.bak
文件 0 2017-04-16 08:19 LED屏\74_uvproj.bak
文件 79732 2017-04-15 14:08 LED屏\Backup Of 74HC595.DBK
文件 3352 2018-06-12 16:50 LED屏\l.c
文件 7635 2018-06-12 16:50 LED屏\l.LST
文件 7029 2018-06-12 16:50 LED屏\l.OBJ
文件 99897 2017-04-16 10:58 LED屏\Last Loaded 74HC595.DBK
文件 105890 2018-06-12 11:21 LED屏\Last Loaded LED点阵屏1.DBK
文件 105890 2018-06-12 16:29 LED屏\LED点阵屏1.DSN
文件 742 2018-07-02 20:10 LED屏\LED点阵屏1.PWI
文件 6376 2009-05-07 14:37 LED屏\STARTUP.A51
文件 14048 2018-06-12 16:50 LED屏\STARTUP.LST
文件 749 2018-06-12 16:50 LED屏\STARTUP.OBJ
目录 0 2018-07-02 20:10 LED屏
----------- --------- ---------- ----- ----
576221 22
- 上一篇:转盘网页抽奖代码
- 下一篇:山东大学计算机2018年算法导论试题.
相关资源
- 测试用例模板.xlsx
- 视频地址.txt
- 详见里面的内容.txt
- 网盘地址.rar
- 30781mpvue-citypicker.rar
- 即时通信.zip
- 北京大学数字电路实验电路仿真数字
- hws.dll
- Burp_suite_Pro_v2.1.txt
- CC2530原理图元件库.zip
- 最优化导论答案.txt
- 计算机组成原理课后答案.pdf
- 百度云链接.rar
- 4.8-接插件-脚距3.96.SchLib
- meanshift算法实现.rar
- 换行插件.rar
- BC35.rar
- AnalysationofTrafficParaments.rar
- InvestigationofCar-speed.rar
- InvestigationofTrafficFlowing.rar
- vs2010破解版百度链接.rar
- 83390098XN297test.rar
- a4a957981f8dcf0175898b01a6478bfd.pdf
- 新建文本文档.txt59604
- 所有.txt
- 链接.zip
- 2019_全国大学生电子设计大赛_D题_简易
- 496782016年四川省TI杯大学生电子设计竞
- springboot.zip
- TIJ4-code.zip
评论
共有 条评论