Activity 1 Commented Code

 avatar
unknown
c_cpp
a year ago
286 B
4
Indexable
void setup() {
  // put your setup code here, to run once:
pinMode(13,OUTPUT); //set pin 13 to output
}

void loop() {
  // flashes LED at 2 hz
digitalWrite(13,HIGH); //turn on LED
delay(250); //wait .25 sec
digitalWrite(13,LOW); //turn off LED
delay(250); //wait .25 sec
}
Editor is loading...
Leave a Comment