#include"reg51.h"
void delay(void)
{
unsigned int i,j;
for(i=0;i<400;i++)
for(j=0;j<400;j++)
;
}
void main(void)
{ unsigned int i;
unsigned char codep2[]={139,251,141,169,249,169,137,187,137,169};
unsigned char codep0[]={246,254,254,254,246,247,247,254,246,246};
while(1)
{
for(i=0;i<10;i++)
{P2=codep2[i];P0=codep0[i];delay(); P0=0xff;P2=0xff;}
}
}
能看出来我这是干啥用的代码不?
|