Knight Rider Lights–Andrea

I’m not sure how to use the plugin we’re supposed to use for this, but here is my code using some built-in tool.

/*andrea gershuny
cmu ems II, fall 2012
reproduction of KITT's flashing light pattern from Knight Rider*/

void setup() { 
// nothing happens in setup! how boring. 
}

void loop() { 
for (int i = 4; i3; j-=1){ 
  digitalWrite(j,HIGH);
  delay(100);
  digitalWrite(j,LOW);
 }
}

Post a comment