Skip to content

Commit c9437b2

Browse files
per1234cmaglie
authored andcommitted
Maintain a consistent number of newlines at end of built-in examples
A single newline at the end of the examples was most common so I fixed all examples that did not follow this convention.
1 parent 3edfceb commit c9437b2

File tree

40 files changed

+2
-96
lines changed

40 files changed

+2
-96
lines changed

examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ void loop() {
2424
Serial.println(buttonState);
2525
delay(1); // delay in between reads for stability
2626
}
27-
28-
29-

examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,3 @@ void loop() {
6969
digitalWrite(ledPin, ledState);
7070
}
7171
}
72-

examples/02.Digital/Button/Button.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ void loop() {
5252
// turn LED off:
5353
digitalWrite(ledPin, LOW);
5454
}
55-
}
55+
}

examples/02.Digital/Debounce/Debounce.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,3 @@ void loop() {
8989
// it'll be the lastButtonState:
9090
lastButtonState = reading;
9191
}
92-

examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,3 @@ void loop() {
4646
digitalWrite(13, HIGH);
4747
}
4848
}
49-
50-
51-

examples/02.Digital/StateChangeDetection/StateChangeDetection.ino

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,3 @@ void loop() {
8282
}
8383

8484
}
85-
86-
87-
88-
89-
90-
91-
92-
93-

examples/02.Digital/tonePitchFollower/tonePitchFollower.ino

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,3 @@ void loop() {
3939
tone(9, thisPitch, 10);
4040
delay(1); // delay in between reads for stability
4141
}
42-
43-
44-
45-
46-
47-

examples/03.Analog/AnalogInput/AnalogInput.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ void loop() {
4747
digitalWrite(ledPin, LOW);
4848
// stop the program for for <sensorValue> milliseconds:
4949
delay(sensorValue);
50-
}
50+
}

examples/03.Analog/Fading/Fading.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,3 @@ void loop() {
4141
delay(30);
4242
}
4343
}
44-
45-

examples/03.Analog/Smoothing/Smoothing.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ void loop() {
6565
Serial.println(average);
6666
delay(1); // delay in between reads for stability
6767
}
68-
69-

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