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.
This commit is contained in:
per1234 2017-07-12 12:00:32 -07:00 committed by Cristian Maglie
parent e57c9625cf
commit 827a933eed
40 changed files with 2 additions and 96 deletions

View File

@ -24,6 +24,3 @@ void loop() {
Serial.println(buttonState);
delay(1); // delay in between reads for stability
}

View File

@ -69,4 +69,3 @@ void loop() {
digitalWrite(ledPin, ledState);
}
}

View File

@ -52,4 +52,4 @@ void loop() {
// turn LED off:
digitalWrite(ledPin, LOW);
}
}
}

View File

@ -89,4 +89,3 @@ void loop() {
// it'll be the lastButtonState:
lastButtonState = reading;
}

View File

@ -46,6 +46,3 @@ void loop() {
digitalWrite(13, HIGH);
}
}

View File

@ -39,9 +39,3 @@ void loop() {
tone(9, thisPitch, 10);
delay(1); // delay in between reads for stability
}

View File

@ -47,4 +47,4 @@ void loop() {
digitalWrite(ledPin, LOW);
// stop the program for for <sensorValue> milliseconds:
delay(sensorValue);
}
}

View File

@ -41,5 +41,3 @@ void loop() {
delay(30);
}
}

View File

@ -65,5 +65,3 @@ void loop() {
Serial.println(average);
delay(1); // delay in between reads for stability
}

View File

@ -46,4 +46,3 @@ void noteOn(int cmd, int pitch, int velocity) {
Serial.write(pitch);
Serial.write(velocity);
}

View File

@ -67,11 +67,3 @@ void loop() {
}
}
}

View File

@ -59,5 +59,3 @@ void serialEvent() {
}
}
}

View File

@ -52,4 +52,3 @@ void loop() {
Serial.println(analogValue);
delay(1); // delay in between reads for stability
}

View File

@ -86,5 +86,3 @@ void calibrate() {
sensorMin = sensorValue;
}
}

View File

@ -56,8 +56,3 @@ void loop() {
}
delay(1); // delay in between reads for stability
}

View File

@ -63,4 +63,3 @@ void loop() {
}
}
}

View File

@ -52,4 +52,3 @@ void loop() {
}
delay(100); // delay to avoid overloading the serial port buffer
}

View File

@ -56,6 +56,3 @@ void loop() {
}
}
}

View File

@ -70,4 +70,3 @@ void loop() {
// do nothing while true:
while (true);
}

View File

@ -43,4 +43,3 @@ void loop() {
// do nothing while true:
while (true);
}

View File

@ -63,4 +63,3 @@ void loop() {
// do nothing while true:
while (true);
}

View File

@ -48,4 +48,3 @@ void loop() {
}
}
}

View File

@ -88,11 +88,3 @@ void loop() {
// do nothing:
while (true);
}

View File

@ -50,4 +50,3 @@ void loop() {
// save the current button state for comparison next time:
previousButtonState = buttonState;
}

View File

@ -105,10 +105,3 @@ void loop() {
// wait for the sweet oblivion of reprogramming:
while (true);
}

View File

@ -37,4 +37,3 @@ void loop() {
Keyboard.write(inChar + 1);
}
}

View File

@ -118,6 +118,3 @@ int readAxis(int thisAxis) {
// return the distance for this axis:
return distance;
}

View File

@ -95,4 +95,3 @@ void loop() {
analogWrite(greenLEDPin, greenValue);
analogWrite(blueLEDPin, blueValue);
}

View File

@ -51,5 +51,3 @@ void loop() {
// wait for the servo to get there
delay(15);
}

View File

@ -61,4 +61,3 @@ void loop() {
// wait for a moment
delay(10);
}

View File

@ -54,4 +54,3 @@ void loop() {
noTone(8);
}
}

View File

@ -102,7 +102,3 @@ void loop() {
// save the current switch state as the previous
previousOnOffSwitchState = onOffSwitchState;
}

View File

@ -115,4 +115,3 @@ void loop() {
// save the current switch state as the last state
prevSwitchState = switchState;
}

View File

@ -171,4 +171,3 @@ boolean checkForKnock(int value) {
return false;
}
}

View File

@ -66,6 +66,3 @@ void loop() {
delay(10);
}

View File

@ -33,5 +33,3 @@ void loop() {
digitalWrite(optoPin, LOW); // pull pin 2 low until you're ready to activate again
delay(21000); // wait for 21 seconds
}

View File

@ -722,4 +722,3 @@ void avrisp() {
SERIAL.print((char)STK_NOSYNC);
}
}