forward for 2sec ,, stop 3sec ,, backward 2.5sec

forward for 2sec ,, stop 3sec ,, backward 2.5sec
mail@pastecode.io avatar
unknown
abc
2 years ago
238 B
3
Indexable
Never
// forward for 2sec ,, stop 3sec ,, backward 2.5sec
void main() {
trisd.f0=0;
trisd.f1=0;
while(1){
portd.f0=1;
portd.f1=0;
delay_ms(2000);
portd.f0=0;
portd.f1=0;
delay_ms(3000);
portd.f0=0;
portd.f1=1;
delay_ms(2500);
}
}