Skip to content

Commit 0bf8b88

Browse files
authored
Merge pull request #1 from arduino-libraries/fixes
Fix naming inconsistencies and glitches in blink demos
2 parents a871a29 + 2ac77f2 commit 0bf8b88

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// the setup function runs once when you press reset or power the board
2-
void setup() {
3-
// initialize digital pin LED_BUILTIN as an output.
4-
pinMode(LEDG, OUTPUT);
5-
}
6-
7-
// the loop function runs over and over again forever
8-
void loop() {
9-
digitalWrite(LEDG, HIGH); // turn the LED on (HIGH is the voltage level)
10-
delay(500); // wait for a second
11-
digitalWrite(LEDG, LOW); // turn the LED off by making the voltage LOW
12-
delay(500); // wait for a second
13-
}
1+
// the setup function runs once when you press reset or power the board
2+
void setup() {
3+
// initialize digital pin LED_BUILTIN as an output.
4+
pinMode(LEDG, OUTPUT);
5+
}
6+
7+
// the loop function runs over and over again forever
8+
void loop() {
9+
digitalWrite(LEDG, LOW); // turn the LED on (LOW is the voltage level)
10+
delay(500); // wait for half a second
11+
digitalWrite(LEDG, HIGH); // turn the LED off by making the voltage HIGH
12+
delay(500); // wait for half a second
13+
}
+14-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// the setup function runs once when you press reset or power the board
2-
void setup() {
3-
// initialize digital pin LED_BUILTIN as an output.
4-
bootM4();
5-
pinMode(LEDR, OUTPUT);
6-
}
7-
8-
// the loop function runs over and over again forever
9-
void loop() {
10-
digitalWrite(LEDR, LOW); // turn the LED on (HIGH is the voltage level)
11-
delay(200); // wait for a second
12-
digitalWrite(LEDR, HIGH); // turn the LED off by making the voltage LOW
13-
delay(200); // wait for a second
14-
}
1+
// the setup function runs once when you press reset or power the board
2+
void setup() {
3+
// initialize digital pin LED_BUILTIN as an output.
4+
bootM4();
5+
pinMode(LEDR, OUTPUT);
6+
}
7+
8+
// the loop function runs over and over again forever
9+
void loop() {
10+
digitalWrite(LEDR, LOW); // turn the red LED on (LOW is the voltage level)
11+
delay(200); // wait for 200 milliseconds
12+
digitalWrite(LEDR, HIGH); // turn the LED off by setting the voltage HIGH
13+
delay(200); // wait for 200 milliseconds
14+
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// the setup function runs once when you press reset or power the board
2-
void setup() {
3-
// initialize digital pin LED_BUILTIN as an output.
4-
pinMode(LEDR, OUTPUT);
5-
}
6-
7-
// the loop function runs over and over again forever
8-
void loop() {
9-
digitalWrite(LEDR, HIGH); // turn the LED on (HIGH is the voltage level)
10-
delay(200); // wait for a second
11-
digitalWrite(LEDR, LOW); // turn the LED off by making the voltage LOW
12-
delay(200); // wait for a second
13-
}
1+
// the setup function runs once when you press reset or power the board
2+
void setup() {
3+
// initialize digital pin LED_BUILTIN as an output.
4+
pinMode(LEDR, OUTPUT);
5+
}
6+
7+
// the loop function runs over and over again forever
8+
void loop() {
9+
digitalWrite(LEDR, HIGH); // turn the LED off (HIGH is the voltage level)
10+
delay(200); // wait for 200 milliseconds
11+
digitalWrite(LEDR, LOW); // turn the LED on by making the voltage LOW
12+
delay(200); // wait for 200 milliseconds
13+
}

0 commit comments

Comments
 (0)