Activity 2 Commented Code
unknown
c_cpp
a year ago
436 B
5
Indexable
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: }
Editor is loading...
Leave a Comment