Skip to content

Commit 265a327

Browse files
committed
2 parents 48103e7 + a9e8956 commit 265a327

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// the setup function runs once when you press reset or power the board
2-
void setup() {
2+
void setup(){
33
// initialize digital pin LED_BUILTIN as an output.
44
pinMode(LED_BUILTIN, OUTPUT);
5+
digitalWrite(LED_BUILTIN, HIGH); // turn the LED off after being turned on by pinMode()
56
}
67

78
// the loop function runs over and over again forever
8-
void loop() {
9-
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
10-
delay(1000); // wait for a second
11-
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
12-
delay(1000); // wait for a second
9+
void loop(){
10+
digitalWrite(LED_BUILTIN, LOW); // turn the LED on (LOW is the voltage level)
11+
delay(1000); // wait for a second
12+
digitalWrite(LED_BUILTIN, HIGH); // turn the LED off by making the voltage HIGH
13+
delay(1000); // wait for a second
1314
}

0 commit comments

Comments
 (0)