#include<reg52.h>
#include<intrins.h>
#define LED unsigned char
#define a1 unsigned char
void Delay10ms( unsigned int a1);
sbit t=P0^0;
sbit s=P0^1;
sbit r=P0^2;
sbit q=P0^3;
/*层控制*/
sbit a=P1^0;
sbit b=P1^1;
sbit c=P1^2;
sbit d=P1^3;
sbit e=P1^4;
sbit f=P1^5;
sbit g=P1^6;
sbit h=P1^7;
/*左到右0^7*/
sbit i=P2^0;
sbit j=P2^1;
sbit k=P2^2;
sbit l=P2^3;
sbit n=P2^4;
sbit m=P2^5;
sbit o=P2^6;
sbit p=P2^7;
/*左到右0^7*/
void Delay10ms (unsigned int a1)
{
unsigned char b1,c1;
for(;a1>0;a1--)
{
for(b1=38;b1>0;b1--)
{
for(c1=130;c1>0;c1--);
}
}
}
#include<intrins.h>
#define LED unsigned char
#define a1 unsigned char
void Delay10ms( unsigned int a1);
sbit t=P0^0;
sbit s=P0^1;
sbit r=P0^2;
sbit q=P0^3;
/*层控制*/
sbit a=P1^0;
sbit b=P1^1;
sbit c=P1^2;
sbit d=P1^3;
sbit e=P1^4;
sbit f=P1^5;
sbit g=P1^6;
sbit h=P1^7;
/*左到右0^7*/
sbit i=P2^0;
sbit j=P2^1;
sbit k=P2^2;
sbit l=P2^3;
sbit n=P2^4;
sbit m=P2^5;
sbit o=P2^6;
sbit p=P2^7;
/*左到右0^7*/
void Delay10ms (unsigned int a1)
{
unsigned char b1,c1;
for(;a1>0;a1--)
{
for(b1=38;b1>0;b1--)
{
for(c1=130;c1>0;c1--);
}
}
}