Activity 2 Commented Code
Anonymous
c_cpp
03/12/2024 8:15 PM
584 B
15
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