#include <reg52.h>
void delay(void)
{
unsigned char a,b;
for(a=0;a<200;a++)
for(b=0;b<200;b++);
}
void main{
ler0=1
ler1=1
ler2=1
ler3=1
ler4=1
ler5=1
ler6=1
ler7=1
}
while(1)
{
led0=0;
delay();
led0=1:
delay();
led2=0;
delay();
led2=1:
delay();
led3=0;
delay();
led3=1:
delay();
led4=0;
delay();
led4=1:
delay();
led5=0;
delay();
led5=1:
delay();
led6=0;
delay();
led6=1:
delay();
led7=0;
delay();
led7=1:
delay();
}