应用介绍
超大屏幕点阵显示
#include<reg51.h>
typedef unsigned char uchar;
typedef unsigned int uint;
sbit E1=P3^4;
sbit ST=P3^5;
sbit SS=P3^6;
unsigned char code mo[6][2][16]=
{{{0x00,0x00,0x01,0x02,0x12,0x13,0x1E,0xF2,0x23,0x24,0x24,0x04,0x07,0x00,0x00,0x00},
{0x00,0x00,0xF8,0x00,0x50,0x50,0xD0,0x78,0xA0,0xA0,0x08,0x04,0xFC,0x00,0x00,0x00}},
{{0x00,0x00,0x00,0x00,0x78,0x54,0x54,0x55,0x95,0x85,0x99,0xE1,0x01,0x00,0x00,0x00},
{0x00,0x00,0x00,0xF0,0xA8,0xA8,0xA8,0x28,0x48,0x48,0x04,0x0E,0xF0,0x00,0x00,0x00}},
{{0x00,0x00,0x0F,0x15,0xF1,0x1F,0x00,0x00,0x09,0x89,0x4A,0x13,0x10,0x10,0x00,0x00},
{0x84,0x88,0xF0,0x40,0x08,0xFC,0x00,0x08,0xF0,0x00,0x00,0xF0,0x08,0x08,0x38,0x00}},
{{0x00,0x04,0x18,0x10,0x11,0x16,0x90,0x50,0x10,0x24,0x22,0x20,0x28,0x10,0x00,0x00},
{0x00,0x04,0x04,0x84,0x04,0x44,0x44,0x78,0x88,0x88,0x88,0x08,0x0C,0x04,0x00,0x00}},
{{0x00,0x00,0x02,0x02,0x02,0x02,0xFF,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00},
{0x00,0x04,0x08,0x10,0x20,0xC0,0x00,0x80,0x40,0x20,0x10,0x08,0x0C,0x04,0x04,0x00}},
{{0x00,0x03,0x0E,0x44,0x24,0x05,0x4A,0x2A,0x0B,0x1A,0xE8,0x08,0x0C,0x08,0x00,0x00},
{0x00,0x20,0x20,0x20,0x20,0x20,0x24,0xC2,0x7C,0x40,0x40,0x40,0x40,0x00,0x00,0x00}}};
void yiwei(int i,int j,int k)
{
SBUF=mo[i][j][k];
while(~TI){};
TI=0;
}
void main() /*主函数*/
{ int i=0,j=0,k=0,n,u;
SM0=0;
SM1=0;
ST=0;
TI=0;
yiwei(i,j,k);
n=0;
while(1)
{for(i=0;i<6;i++)
{yiwei(i,0,k);
yiwei(i,1,k);
}
i=0;
k++;
if(k>15)
k=0;
P2=n;
E1=0;
ST=1;
for(u=0;u<150;u++){}
n++;
if(n>15)
n=0;
E1=1;
ST=0;
}
}
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 超大屏幕点阵显示
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
huan | 1.73 KB | 2019-06-24 |
huan.c | 0.59 KB | 2019-06-24 |
huan.hex | 0.56 KB | 2019-06-24 |
huan.lnp | 0.05 KB | 2019-06-24 |
huan.LST | 1.05 KB | 2019-06-24 |
huan.M51 | 1.17 KB | 2019-06-24 |
huan.OBJ | 1.61 KB | 2019-06-24 |
huan.Opt | 0.51 KB | 2019-06-24 |
huan.plg | 0.17 KB | 2019-06-24 |
huan.Uv2 | 0.87 KB | 2019-06-24 |
huan_Opt.Bak | 0.50 KB | 2019-06-24 |
huan_Uv2.Bak | 0.00 KB | 2019-06-24 |
Last Loaded 点阵.DBK | 24.04 KB | 2019-06-24 |
STARTUP.A51 | 1.73 KB | 2019-06-24 |
STARTUP.LST | 1.71 KB | 2019-06-24 |
STARTUP.OBJ | 0.43 KB | 2019-06-24 |
点阵.DSN | 24.04 KB | 2019-06-24 |
点阵.PWI | 0.36 KB | 2019-06-24 |
0032、超大屏幕点阵显示 | 0.00 KB | 2019-06-24 |
发表评论 取消回复