Skip to content

Commit 40b945a

Browse files
authored
Merge pull request #621 from per1234/fix-plotter-labels
Fix Serial Plotter sketches for compatibility with all IDE versions
2 parents bb503f3 + bf49cfb commit 40b945a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/software/ide-v2/tutorials/ide-v2-serial-plotter/ide-v2-serial-plotter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ void setup() {
5454
void loop() {
5555
potentiometer = analogRead(A1);
5656
57-
Serial.print("Variable 1:");
57+
Serial.print("Variable_1:");
5858
Serial.print(potentiometer);
5959
Serial.print(",");
60-
Serial.print("Variable 2:");
60+
Serial.print("Variable_2:");
6161
Serial.println(static_variable);
6262
}
6363
```
@@ -78,10 +78,10 @@ void setup() {
7878
void loop() {
7979
random_variable = random(0, 1000);
8080
81-
Serial.print("Variable 1:");
81+
Serial.print("Variable_1:");
8282
Serial.print(random_variable);
8383
Serial.print(",");
84-
Serial.print("Variable 2:");
84+
Serial.print("Variable_2:");
8585
Serial.println(static_variable);
8686
}
8787
```

0 commit comments

Comments
 (0)