1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Run new astyle formatter against all the examples

This commit is contained in:
Federico Fissore
2013-10-21 09:58:40 +02:00
parent 3c6ee46828
commit b4c68b3dff
259 changed files with 5160 additions and 5217 deletions

View File

@ -1,16 +1,16 @@
/*
String to Integer conversion
Reads a serial input string until it sees a newline, then converts
the string to a number if the characters are digits.
The circuit:
No external components needed.
created 29 Nov 2010
by Tom Igoe
This example code is in the public domain.
This example code is in the public domain.
*/
String inString = ""; // string to hold input
@ -32,9 +32,9 @@ void loop() {
while (Serial.available() > 0) {
int inChar = Serial.read();
if (isDigit(inChar)) {
// convert the incoming byte to a char
// convert the incoming byte to a char
// and add it to the string:
inString += (char)inChar;
inString += (char)inChar;
}
// if you get a newline, print the string,
// then the string's value:
@ -44,7 +44,7 @@ void loop() {
Serial.print("String: ");
Serial.println(inString);
// clear the string for new input:
inString = "";
inString = "";
}
}
}