Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9437b2

Browse filesBrowse 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
Copy full SHA for c9437b2

File tree

Expand file treeCollapse file tree

40 files changed

+2
-96
lines changed
Filter options
Expand file treeCollapse file tree

40 files changed

+2
-96
lines changed

‎examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino

Copy file name to clipboardExpand all lines: examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino
-3Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino
-1Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/Button/Button.ino
+1-1Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/Debounce/Debounce.ino
-1Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino
-3Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/StateChangeDetection/StateChangeDetection.ino
-9Lines 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

Copy file name to clipboardExpand all lines: examples/02.Digital/tonePitchFollower/tonePitchFollower.ino
-6Lines 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

Copy file name to clipboardExpand all lines: examples/03.Analog/AnalogInput/AnalogInput.ino
+1-1Lines 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

Copy file name to clipboardExpand all lines: examples/03.Analog/Fading/Fading.ino
-2Lines 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

Copy file name to clipboardExpand all lines: examples/03.Analog/Smoothing/Smoothing.ino
-2Lines 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-

‎examples/04.Communication/Midi/Midi.ino

Copy file name to clipboardExpand all lines: examples/04.Communication/Midi/Midi.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ void noteOn(int cmd, int pitch, int velocity) {
4646
Serial.write(pitch);
4747
Serial.write(velocity);
4848
}
49-

‎examples/04.Communication/ReadASCIIString/ReadASCIIString.ino

Copy file name to clipboardExpand all lines: examples/04.Communication/ReadASCIIString/ReadASCIIString.ino
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,3 @@ void loop() {
6767
}
6868
}
6969
}
70-
71-
72-
73-
74-
75-
76-
77-

‎examples/04.Communication/SerialEvent/SerialEvent.ino

Copy file name to clipboardExpand all lines: examples/04.Communication/SerialEvent/SerialEvent.ino
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,3 @@ void serialEvent() {
5959
}
6060
}
6161
}
62-
63-

‎examples/05.Control/IfStatementConditional/IfStatementConditional.ino

Copy file name to clipboardExpand all lines: examples/05.Control/IfStatementConditional/IfStatementConditional.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ void loop() {
5252
Serial.println(analogValue);
5353
delay(1); // delay in between reads for stability
5454
}
55-

‎examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino

Copy file name to clipboardExpand all lines: examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,3 @@ void calibrate() {
8686
sensorMin = sensorValue;
8787
}
8888
}
89-
90-

‎examples/05.Control/switchCase/switchCase.ino

Copy file name to clipboardExpand all lines: examples/05.Control/switchCase/switchCase.ino
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,3 @@ void loop() {
5656
}
5757
delay(1); // delay in between reads for stability
5858
}
59-
60-
61-
62-
63-

‎examples/05.Control/switchCase2/switchCase2.ino

Copy file name to clipboardExpand all lines: examples/05.Control/switchCase2/switchCase2.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,3 @@ void loop() {
6363
}
6464
}
6565
}
66-

‎examples/06.Sensors/Knock/Knock.ino

Copy file name to clipboardExpand all lines: examples/06.Sensors/Knock/Knock.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ void loop() {
5252
}
5353
delay(100); // delay to avoid overloading the serial port buffer
5454
}
55-

‎examples/07.Display/barGraph/barGraph.ino

Copy file name to clipboardExpand all lines: examples/07.Display/barGraph/barGraph.ino
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,3 @@ void loop() {
5656
}
5757
}
5858
}
59-
60-
61-

‎examples/08.Strings/StringAppendOperator/StringAppendOperator.ino

Copy file name to clipboardExpand all lines: examples/08.Strings/StringAppendOperator/StringAppendOperator.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,3 @@ void loop() {
7070
// do nothing while true:
7171
while (true);
7272
}
73-

‎examples/08.Strings/StringCharacters/StringCharacters.ino

Copy file name to clipboardExpand all lines: examples/08.Strings/StringCharacters/StringCharacters.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ void loop() {
4343
// do nothing while true:
4444
while (true);
4545
}
46-

‎examples/08.Strings/StringIndexOf/StringIndexOf.ino

Copy file name to clipboardExpand all lines: examples/08.Strings/StringIndexOf/StringIndexOf.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,3 @@ void loop() {
6363
// do nothing while true:
6464
while (true);
6565
}
66-

‎examples/08.Strings/StringToInt/StringToInt.ino

Copy file name to clipboardExpand all lines: examples/08.Strings/StringToInt/StringToInt.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ void loop() {
4848
}
4949
}
5050
}
51-

‎examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino

Copy file name to clipboardExpand all lines: examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,3 @@ void loop() {
8888
// do nothing:
8989
while (true);
9090
}
91-
92-
93-
94-
95-
96-
97-
98-

‎examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino

Copy file name to clipboardExpand all lines: examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ void loop() {
5050
// save the current button state for comparison next time:
5151
previousButtonState = buttonState;
5252
}
53-

‎examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino

Copy file name to clipboardExpand all lines: examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,3 @@ void loop() {
105105
// wait for the sweet oblivion of reprogramming:
106106
while (true);
107107
}
108-
109-
110-
111-
112-
113-
114-

‎examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino

Copy file name to clipboardExpand all lines: examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ void loop() {
3737
Keyboard.write(inChar + 1);
3838
}
3939
}
40-

‎examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino

Copy file name to clipboardExpand all lines: examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,3 @@ void loop() {
9191
}
9292

9393
}
94-

‎examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino

Copy file name to clipboardExpand all lines: examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,3 @@ int readAxis(int thisAxis) {
118118
// return the distance for this axis:
119119
return distance;
120120
}
121-
122-
123-

‎examples/10.StarterKit_BasicKit/p02_SpaceshipInterface/p02_SpaceshipInterface.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p02_SpaceshipInterface/p02_SpaceshipInterface.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ void loop() {
6565
delay(250);
6666
}
6767
}
68-

‎examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,3 @@ void loop() {
9595
analogWrite(greenLEDPin, greenValue);
9696
analogWrite(blueLEDPin, blueValue);
9797
}
98-

‎examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@ void loop() {
5151
// wait for the servo to get there
5252
delay(15);
5353
}
54-
55-

‎examples/10.StarterKit_BasicKit/p06_LightTheremin/p06_LightTheremin.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p06_LightTheremin/p06_LightTheremin.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ void loop() {
6161
// wait for a moment
6262
delay(10);
6363
}
64-

‎examples/10.StarterKit_BasicKit/p07_Keyboard/p07_Keyboard.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p07_Keyboard/p07_Keyboard.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ void loop() {
5454
noTone(8);
5555
}
5656
}
57-

‎examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,3 @@ void loop() {
102102
// save the current switch state as the previous
103103
previousOnOffSwitchState = onOffSwitchState;
104104
}
105-
106-
107-
108-

‎examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,3 @@ void loop() {
115115
// save the current switch state as the last state
116116
prevSwitchState = switchState;
117117
}
118-

‎examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,3 @@ boolean checkForKnock(int value) {
171171
return false;
172172
}
173173
}
174-

‎examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,3 @@ void loop() {
6666

6767
delay(10);
6868
}
69-
70-
71-

‎examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino

Copy file name to clipboardExpand all lines: examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ void loop() {
3333
digitalWrite(optoPin, LOW); // pull pin 2 low until you're ready to activate again
3434
delay(21000); // wait for 21 seconds
3535
}
36-
37-

‎examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino

Copy file name to clipboardExpand all lines: examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,4 +722,3 @@ void avrisp() {
722722
SERIAL.print((char)STK_NOSYNC);
723723
}
724724
}
725-

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.