Activity 1 Commented Code
Anonymous
c_cpp
03/12/2024 7:50 PM
384 B
18
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