Skip to content

Commit 2570383

Browse files
per1234cmaglie
authored andcommitted
Use a consistent number of spaces after punctuation in the comments of the built-in examples
1 parent e3044a5 commit 2570383

File tree

21 files changed

+43
-43
lines changed

21 files changed

+43
-43
lines changed

build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Blink without Delay
33
44
Turns on and off a light emitting diode (LED) connected to a digital
5-
pin, without using the delay() function. This means that other code
5+
pin, without using the delay() function. This means that other code
66
can run at the same time without being interrupted by the LED code.
77
88
The circuit:

build/shared/examples/02.Digital/Debounce/Debounce.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Debounce
33
44
Each time the input pin goes from LOW to HIGH (e.g. because of a push-button
5-
press), the output pin is toggled from LOW to HIGH or HIGH to LOW. There's
5+
press), the output pin is toggled from LOW to HIGH or HIGH to LOW. There's
66
a minimum delay between toggles to debounce the circuit (i.e. to ignore
77
noise).
88
@@ -83,7 +83,7 @@ void loop() {
8383
// set the LED:
8484
digitalWrite(ledPin, ledState);
8585

86-
// save the reading. Next time through the loop,
86+
// save the reading. Next time through the loop,
8787
// it'll be the lastButtonState:
8888
lastButtonState = reading;
8989
}

build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Often, you don't need to know the state of a digital input all the time,
55
but you just need to know when the input changes from one state to another.
6-
For example, you want to know when a button goes from OFF to ON. This is called
6+
For example, you want to know when a button goes from OFF to ON. This is called
77
state change detection, or edge detection.
88
99
This example shows how to detect when a button or button changes from off to on
@@ -55,7 +55,7 @@ void loop() {
5555
// went from off to on:
5656
buttonPushCounter++;
5757
Serial.println("on");
58-
Serial.print("number of button pushes: ");
58+
Serial.print("number of button pushes: ");
5959
Serial.println(buttonPushCounter);
6060
} else {
6161
// if the current state is LOW then the button

build/shared/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
http://www.arduino.cc/en/Tutorial/AnalogInOutSerial
2121
*/
2222

23-
// These constants won't change. They're used to give names
23+
// These constants won't change. They're used to give names
2424
// to the pins used:
2525
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
2626
const int analogOutPin = 9; // Analog output pin that the LED is attached to

build/shared/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
http://www.arduino.cc/en/Tutorial/AnalogWriteMega
1616
*/
1717

18-
// These constants won't change. They're used to give names
18+
// These constants won't change. They're used to give names
1919
// to the pins used:
2020
const int lowestPin = 2;
2121
const int highestPin = 13;

build/shared/examples/03.Analog/Calibration/Calibration.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Calibration
33
4-
Demonstrates one technique for calibrating sensor input. The
4+
Demonstrates one technique for calibrating sensor input. The
55
sensor readings during the first five seconds of the sketch
66
execution define the minimum and maximum of expected values
77
attached to the sensor pin.

build/shared/examples/03.Analog/Smoothing/Smoothing.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Smoothing
33
44
Reads repeatedly from an analog input, calculating a running average
5-
and printing it to the computer. Keeps ten readings in an array and
5+
and printing it to the computer. Keeps ten readings in an array and
66
continually averages them.
77
88
The circuit:
@@ -18,9 +18,9 @@
1818
http://www.arduino.cc/en/Tutorial/Smoothing
1919
*/
2020

21-
// Define the number of samples to keep track of. The higher the number,
21+
// Define the number of samples to keep track of. The higher the number,
2222
// the more the readings will be smoothed, but the slower the output will
23-
// respond to the input. Using a constant rather than a normal variable lets
23+
// respond to the input. Using a constant rather than a normal variable lets
2424
// us use this value to determine the size of the readings array.
2525
const int numReadings = 10;
2626

build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
For more on ASCII, see http://www.asciitable.com and http://en.wikipedia.org/wiki/ASCII
99
10-
The circuit: No external hardware needed.
10+
The circuit: No external hardware needed.
1111
1212
created 2006
1313
by Nicholas Zambetti <http://www.zambetti.com>
@@ -39,7 +39,7 @@ int thisByte = 33;
3939
void loop() {
4040
// prints value unaltered, i.e. the raw binary version of the
4141
// byte. The Serial Monitor interprets all bytes as
42-
// ASCII, so 33, the first number, will show up as '!'
42+
// ASCII, so 33, the first number, will show up as '!'
4343
Serial.write(thisByte);
4444

4545
Serial.print(", dec: ");

build/shared/examples/04.Communication/Dimmer/Dimmer.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Dimmer
33
44
Demonstrates sending data from the computer to the Arduino board,
5-
in this case to control the brightness of an LED. The data is sent
6-
in individual bytes, each of which ranges from 0 to 255. Arduino
5+
in this case to control the brightness of an LED. The data is sent
6+
in individual bytes, each of which ranges from 0 to 255. Arduino
77
reads these bytes and uses them to set the brightness of the LED.
88
99
The circuit:
@@ -56,9 +56,9 @@ void loop() {
5656
// if using Processing 2.1 or later, use Serial.printArray()
5757
println(Serial.list());
5858
59-
// Uses the first port in this list (number 0). Change this to
60-
// select the port corresponding to your Arduino board. The last
61-
// parameter (e.g. 9600) is the speed of the communication. It
59+
// Uses the first port in this list (number 0). Change this to
60+
// select the port corresponding to your Arduino board. The last
61+
// parameter (e.g. 9600) is the speed of the communication. It
6262
// has to correspond to the value passed to Serial.begin() in your
6363
// Arduino sketch.
6464
port = new Serial(this, Serial.list()[0], 9600);

build/shared/examples/04.Communication/Graph/Graph.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Graph
33
44
A simple example of communication from the Arduino board to the computer:
5-
the value of analog input 0 is sent out the serial port. We call this "serial"
5+
the value of analog input 0 is sent out the serial port. We call this "serial"
66
communication because the connection appears to both the Arduino and the
77
computer as a serial port, even though it may actually use
88
a USB cable. Bytes are sent one after another (serially) from the Arduino
99
to the computer.
1010
1111
You can use the Arduino Serial Monitor to view the sent data, or it can
1212
be read by Processing, PD, Max/MSP, or any other program capable of reading
13-
data from a serial port. The Processing code below graphs the data received
13+
data from a serial port. The Processing code below graphs the data received
1414
so you can see the value of the analog input changing over time.
1515
1616
The circuit:

0 commit comments

Comments
 (0)