图片附件: 游客没有浏览图片的权限,请
登录 或
注册
#include<at89x51.h>
void delay(void)
{
unsigned char i;
for(i=0;i<255;i++);
}
void main(void)
{
unsigned char a[10]={0x06,0x5b,0x4f,0x66,0x6d,0x7d};
unsigned char b[6]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf};
unsigned char k;
while(1)
{
for(k=0;k<6;k++)
{
P2=b[k];
P1=a[k];
delay();
}
}
}