Skip to content

Fix naming inconsistencies and glitches in blink demos #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions examples/Dual Core Processing/BlinkGreenLed_M4/BlinkGreenLed_M4.ino
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 examples/Dual Core Processing/BlinkRedLed/BlinkRedLed.ino
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 examples/Dual Core Processing/BlinkRedLed_M7/BlinkRedLed_M7.ino
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
}