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:
parent
3db052c5ad
commit
a8f74c89d0
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user