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

Corrected formatting errors in String examples

This commit is contained in:
Tom Igoe
2010-08-11 20:27:28 +00:00
parent 50b05cb3cc
commit 564fd29edd

View File

@ -17,12 +17,17 @@ void setup() {
void loop() {
// toUpperCase() changes all letters to upper case:
String stringOne = "<html><head><body>";
Serial.println(stringOne.toUpperCase());
Serial.println(stringOne);
stringOne = (stringOne.toUpperCase());
Serial.println(stringOne);
// toLowerCase() changes all letters to lower case:
String stringTwo = "</BODY></HTML>";
Serial.println(stringTwo.toLowerCase());
Serial.println(stringTwo);
stringTwo = stringTwo.toLowerCase();
Serial.println(stringTwo);
// do nothing while true:
while(true);
}
}