-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from arduino-libraries/fixes
Fix naming inconsistencies and glitches in blink demos
- Loading branch information
Showing
7 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions
26
examples/Dual Core Processing/BlinkGreenLed_M4/BlinkGreenLed_M4.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
pinMode(LEDG, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDG, HIGH); // turn the LED on (HIGH is the voltage level) | ||
delay(500); // wait for a second | ||
digitalWrite(LEDG, LOW); // turn the LED off by making the voltage LOW | ||
delay(500); // wait for a second | ||
} | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
pinMode(LEDG, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDG, LOW); // turn the LED on (LOW is the voltage level) | ||
delay(500); // wait for half a second | ||
digitalWrite(LEDG, HIGH); // turn the LED off by making the voltage HIGH | ||
delay(500); // wait for half a second | ||
} |
28 changes: 14 additions & 14 deletions
28
examples/Dual Core Processing/BlinkRedLed/BlinkRedLed.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
bootM4(); | ||
pinMode(LEDR, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDR, LOW); // turn the LED on (HIGH is the voltage level) | ||
delay(200); // wait for a second | ||
digitalWrite(LEDR, HIGH); // turn the LED off by making the voltage LOW | ||
delay(200); // wait for a second | ||
} | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
bootM4(); | ||
pinMode(LEDR, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDR, LOW); // turn the red LED on (LOW is the voltage level) | ||
delay(200); // wait for 200 milliseconds | ||
digitalWrite(LEDR, HIGH); // turn the LED off by setting the voltage HIGH | ||
delay(200); // wait for 200 milliseconds | ||
} |
26 changes: 13 additions & 13 deletions
26
examples/Dual Core Processing/BlinkRedLed_M7/BlinkRedLed_M7.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
pinMode(LEDR, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDR, HIGH); // turn the LED on (HIGH is the voltage level) | ||
delay(200); // wait for a second | ||
digitalWrite(LEDR, LOW); // turn the LED off by making the voltage LOW | ||
delay(200); // wait for a second | ||
} | ||
// the setup function runs once when you press reset or power the board | ||
void setup() { | ||
// initialize digital pin LED_BUILTIN as an output. | ||
pinMode(LEDR, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop() { | ||
digitalWrite(LEDR, HIGH); // turn the LED off (HIGH is the voltage level) | ||
delay(200); // wait for 200 milliseconds | ||
digitalWrite(LEDR, LOW); // turn the LED on by making the voltage LOW | ||
delay(200); // wait for 200 milliseconds | ||
} |
File renamed without changes.