Skip to content

Commit dc4a9e9

Browse files
per1234cmaglie
authored andcommitted
Fix typos in the comments of the built-in examples
1 parent 4026b91 commit dc4a9e9

File tree

59 files changed

+169
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+169
-169
lines changed

examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
AnalogReadSerial
3-
Reads an analog input on pin 0, prints the result to the serial monitor.
4-
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
3+
Reads an analog input on pin 0, prints the result to the Serial Monitor.
4+
Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu)
55
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
66
77
This example code is in the public domain.

examples/01.Basics/Blink/Blink.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
Blink
3-
Turns on an LED on for one second, then off for one second, repeatedly.
3+
Turns an LED on for one second, then off for one second, repeatedly.
44
55
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
66
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
77
the correct LED pin independent of which board is used.
88
If you want to know what pin the on-board LED is connected to on your Arduino model, check
9-
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
9+
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
1010
1111
This example code is in the public domain.
1212

examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
DigitalReadSerial
3-
Reads a digital input on pin 2, prints the result to the serial monitor
3+
Reads a digital input on pin 2, prints the result to the Serial Monitor
44
55
This example code is in the public domain.
66
*/

examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
ReadAnalogVoltage
3-
Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.
4-
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
3+
Reads an analog input on pin 0, converts it to voltage, and prints the result to the Serial Monitor.
4+
Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu)
55
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
66
77
This example code is in the public domain.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Reads an analog input and prints the voltage to the serial monitor.
1+
Reads an analog input and prints the voltage to the Serial Monitor.

examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
1111
the correct LED pin independent of which board is used.
1212
If you want to know what pin the on-board LED is connected to on your Arduino model, check
13-
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
13+
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
1414
1515
created 2005
1616
by David A. Mellis
@@ -27,17 +27,17 @@
2727
http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
2828
*/
2929

30-
// constants won't change. Used here to set a pin number :
30+
// constants won't change. Used here to set a pin number:
3131
const int ledPin = LED_BUILTIN;// the number of the LED pin
3232

33-
// Variables will change :
33+
// Variables will change:
3434
int ledState = LOW; // ledState used to set the LED
3535

3636
// Generally, you should use "unsigned long" for variables that hold time
3737
// The value will quickly become too large for an int to store
3838
unsigned long previousMillis = 0; // will store last time LED was updated
3939

40-
// constants won't change :
40+
// constants won't change:
4141
const long interval = 1000; // interval at which to blink (milliseconds)
4242

4343
void setup() {

examples/02.Digital/Debounce/Debounce.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int ledState = HIGH; // the current state of the output pin
4040
int buttonState; // the current reading from the input pin
4141
int lastButtonState = LOW; // the previous reading from the input pin
4242

43-
// the following variables are unsigned long's because the time, measured in miliseconds,
43+
// the following variables are unsigned longs because the time, measured in milliseconds,
4444
// will quickly become a bigger number than can be stored in an int.
4545
unsigned long lastDebounceTime = 0; // the last time the output pin was toggled
4646
unsigned long debounceDelay = 50; // the debounce time; increase if the output flickers
@@ -58,7 +58,7 @@ void loop() {
5858
int reading = digitalRead(buttonPin);
5959

6060
// check to see if you just pressed the button
61-
// (i.e. the input went from LOW to HIGH), and you've waited
61+
// (i.e. the input went from LOW to HIGH), and you've waited
6262
// long enough since the last press to ignore any noise:
6363

6464
// If the switch changed, due to noise or pressing:

examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
Input Pullup Serial
2+
Input Pull-up Serial
33
44
This example demonstrates the use of pinMode(INPUT_PULLUP). It reads a
5-
digital input on pin 2 and prints the results to the serial monitor.
5+
digital input on pin 2 and prints the results to the Serial Monitor.
66
77
The circuit:
88
* Momentary switch attached from pin 2 to ground
@@ -24,7 +24,7 @@
2424
void setup() {
2525
//start serial connection
2626
Serial.begin(9600);
27-
//configure pin2 as an input and enable the internal pull-up resistor
27+
//configure pin 2 as an input and enable the internal pull-up resistor
2828
pinMode(2, INPUT_PULLUP);
2929
pinMode(13, OUTPUT);
3030

@@ -36,7 +36,7 @@ void loop() {
3636
//print out the value of the pushbutton
3737
Serial.println(sensorVal);
3838

39-
// Keep in mind the pullup means the pushbutton's
39+
// Keep in mind the pull-up means the pushbutton's
4040
// logic is inverted. It goes HIGH when it's open,
4141
// and LOW when it's pressed. Turn on pin 13 when the
4242
// button's pressed, and off when it's not:

examples/02.Digital/StateChangeDetection/StateChangeDetection.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ void loop() {
5353
// if the state has changed, increment the counter
5454
if (buttonState == HIGH) {
5555
// if the current state is HIGH then the button
56-
// wend from off to on:
56+
// went from off to on:
5757
buttonPushCounter++;
5858
Serial.println("on");
5959
Serial.print("number of button pushes: ");
6060
Serial.println(buttonPushCounter);
6161
} else {
6262
// if the current state is LOW then the button
63-
// wend from on to off:
63+
// went from on to off:
6464
Serial.println("off");
6565
}
6666
// Delay a little bit to avoid bouncing
6767
delay(50);
6868
}
6969
// save the current state as the last state,
70-
//for next time through the loop
70+
// for next time through the loop
7171
lastButtonState = buttonState;
7272

7373

examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Analog input, analog output, serial output
33
44
Reads an analog input pin, maps the result to a range from 0 to 255
5-
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
6-
Also prints the results to the serial monitor.
5+
and uses the result to set the pulse width modulation (PWM) of an output pin.
6+
Also prints the results to the Serial Monitor.
77
88
The circuit:
99
* potentiometer connected to analog pin 0.
@@ -40,7 +40,7 @@ void loop() {
4040
// change the analog out value:
4141
analogWrite(analogOutPin, outputValue);
4242

43-
// print the results to the serial monitor:
43+
// print the results to the Serial Monitor:
4444
Serial.print("sensor = ");
4545
Serial.print(sensorValue);
4646
Serial.print("\t output = ");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy