Skip to content

Replace non-breaking space characters in code snippets #2288

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 1 commit into from
Nov 15, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ The following sketch blinks the red LED at an interval of 200ms controlled by th
```cpp
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LEDR as an output.
// initialize digital pin LEDR as an output.
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 making the voltage HIGH
digitalWrite(LEDR, HIGH); // turn the LED off by making the voltage HIGH
delay(200); // wait for 200 milliseconds
}
```
Expand All @@ -88,15 +88,15 @@ Let's write another sketch that makes the RGB LED on the board blink green. Open
```cpp
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LEDG as an output.
// initialize digital pin LEDG 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
digitalWrite(LEDG, HIGH); // turn the LED off by making the voltage HIGH
delay(500); // wait for half a second
}
```
Expand All @@ -113,7 +113,7 @@ Before you can upload the code for the M4 core to the Flash memory you need to a
```cpp
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
// initialize digital pin LED_BUILTIN as an output.
bootM4();
pinMode(LEDR, OUTPUT);
}
Expand Down
Loading