Skip to content

Commit

Permalink
Merge pull request #1 from arduino-libraries/fixes
Browse files Browse the repository at this point in the history
Fix naming inconsistencies and glitches in blink demos
  • Loading branch information
sebromero authored Feb 9, 2021
2 parents a871a29 + 2ac77f2 commit 0bf8b88
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 40 deletions.
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
}

0 comments on commit 0bf8b88

Please sign in to comment.