Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.26 kB
void setup(){
for (int i=0;i<5;i++)
pinMode(i,OUTPUT);
}
int c=0;
void loop(){
int pin = c % 5;
int mydelay = c % 24 < 12 ? 100 : 250;
digitalWrite(pin,0);
c++;
pin = c % 5;
digitalWrite(pin,1);
digitalWrite((c+1)%5,1);
delay(mydelay);
}
Jump to Line
Something went wrong with that request. Please try again.