Closed slavicd closed 1 year ago
Can you share the entire code to reproduce this ? Also the newest release is 2.0.1. Are you referring to a newer build than that?
The newest build is 2.0.2: https://downloads.arduino.cc/arduino-ide/nightly/arduino-ide_nightly-latest_Linux_64bit.AppImage As instructed by the bug reporting page, I downloaded a "nightly" instead of latest release. But the issue was present in 2.0.1 too, hence the reason for my nightly download.
Here is an MVE:
void mySetup()
{
pinMode(A1, INPUT);
Serial.begin(115200);
delay(100);
}
int main(void)
{
init();
mySetup();
while(1) {
Serial.print("A1: ");
Serial.println(analogRead(A1));
delay(300);
}
return 0;
}
Apparently it's (the plotter) thrown off by the "A1:" label. I can not reproduce without the label. This used to work just fine, though, in 2.0. Is there a new way of printing labels, perhaps?
I've had a look at your code. You will have to remove the space after the label i.e change it to Serial.print("A1:");
.
Please have a look at the Serial Protocol. The Label and Value message format does not have a space after the colon :
.
This is one of those cases where the protocol was "reverse engineered" and it so happens it used to work with a space before 2.0.1 . Thanks for the doc.
Describe the problem
Latest IDE (2.0.2) serial plotter is empty. No value gets plotted and
To reproduce
Install a fresh nightly build and try to plot some values:
Expected behavior
Plotter shows a plot of values.
Arduino IDE version
2.0.2
Operating system
Linux
Operating system version
Fedora 36
Additional context
Wayland 42.4
Issue checklist