Activity 1 Commented Code

mail@pastecode.io avatar
unknown
c_cpp
a month ago
286 B
1
Indexable
Never
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
}
Leave a Comment