1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-27 21:54:30 +01:00

Fixed StringCharacters example

This commit is contained in:
Cristian Maglie 2012-08-06 12:03:04 +02:00
parent 3db052c5ad
commit a8f74c89d0

View File

@ -29,7 +29,9 @@ void loop() {
// the reading's most significant digit is at position 15 in the reportString: // the reading's most significant digit is at position 15 in the reportString:
char mostSignificantDigit = reportString.charAt(15); char mostSignificantDigit = reportString.charAt(15);
Serial.println("Most significant digit of the sensor reading is: " + mostSignificantDigit);
String message = "Most significant digit of the sensor reading is: ";
Serial.println(message + mostSignificantDigit);
// add blank space: // add blank space:
Serial.println(); Serial.println();