Activity 2 Commented Code

mail@pastecode.io avatar
unknown
c_cpp
a month ago
436 B
1
Indexable
Never
void setup() {
  // put your setup code here, to run once:
digitalWrite(3,HIGH); //turn on LED
delay(5000); //wait 5 sec
digitalWrite(3,LOW); //turn off LED
delay(3000); //wait 3 sec
for(int i=0; i<10; i++){ //loop 10 times
digitalWrite(3,HIGH); // Turn on LED
delay(500); //wait .5 sec
digitalWrite(3,LOW); //Turn off LED
delay(500);} //wait .5 sec
}

void loop() {
  // put your main code here, to run repeatedly:

}
Leave a Comment