Untitled
unknown
plain_text
2 years ago
288 B
12
Indexable
#include<p89v51rx2.h>
void delay(unsigned int dela){
unsigned int i , j;
for(i=0; i<=10000; i++)
for(j=0; j<=dela; j++);
}
void main(){
while(1){
led1=0;
led2=1;
led3=0;
led4=1;
delay(10);
led1=1;
led2=0;
led3=1;
led4=0;
delay(10);
}
}Editor is loading...
Leave a Comment