@@ -64,15 +64,15 @@ The following sketch blinks the red LED at an interval of 200ms controlled by th
64
64
``` cpp
65
65
// the setup function runs once when you press reset or power the board
66
66
void setup () {
67
- // initialize digital pin LEDR as an output.
67
+ // initialize digital pin LEDR as an output.
68
68
pinMode (LEDR, OUTPUT);
69
69
}
70
70
71
71
// the loop function runs over and over again forever
72
72
void loop () {
73
73
digitalWrite (LEDR, LOW); // turn the red LED on (LOW is the voltage level)
74
74
delay (200); // wait for 200 milliseconds
75
- digitalWrite (LEDR, HIGH); // turn the LED off by making the voltage HIGH
75
+ digitalWrite (LEDR, HIGH); // turn the LED off by making the voltage HIGH
76
76
delay (200); // wait for 200 milliseconds
77
77
}
78
78
```
@@ -88,15 +88,15 @@ Let's write another sketch that makes the RGB LED on the board blink green. Open
88
88
``` cpp
89
89
// the setup function runs once when you press reset or power the board
90
90
void setup () {
91
- // initialize digital pin LEDG as an output.
91
+ // initialize digital pin LEDG as an output.
92
92
pinMode (LEDG, OUTPUT);
93
93
}
94
94
95
95
// the loop function runs over and over again forever
96
96
void loop () {
97
97
digitalWrite (LEDG, LOW); // turn the LED on (LOW is the voltage level)
98
98
delay (500); // wait for half a second
99
- digitalWrite (LEDG, HIGH); // turn the LED off by making the voltage HIGH
99
+ digitalWrite (LEDG, HIGH); // turn the LED off by making the voltage HIGH
100
100
delay (500); // wait for half a second
101
101
}
102
102
```
@@ -113,7 +113,7 @@ Before you can upload the code for the M4 core to the Flash memory you need to a
113
113
``` cpp
114
114
// the setup function runs once when you press reset or power the board
115
115
void setup () {
116
- // initialize digital pin LED_BUILTIN as an output.
116
+ // initialize digital pin LED_BUILTIN as an output.
117
117
bootM4 ();
118
118
pinMode (LEDR, OUTPUT);
119
119
}
0 commit comments