const int potPin = A0; //Circuit is a potentiometer from 5V to GND, with middle pin at A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int reading = analogRead(potPin);
Serial.println(reading);
}
When I open up the serial monitor window, and then semi-rapidly adjust the potentiometer, the values on the Serial monitor lag substantially behind the actual movements.
When I run this same code using the IDE 1.8.13, there is no perceptible lag on the serial monitor window values.
The highest the IDE BETA serial monitor baud goes to 115200. I tried that and the lag was still just as bad.
I am really not looking for a "work around" though, I am trying to provide feedback to the Arduino IDE developers of possible issues.
When I downloaded the beta, the note on the download page said:
Note: this software is still in beta status, which means that it’s almost complete but there might be minor issues. Help us test it and report your feedback in the forum!
So every time I write a sketch, I try in the BETA first, and if I run into an issue (like this one), I compare it with the stable Arduino IDE. If I see a difference that doesn't seem correct behavior to me, I have been making posts here.
Yes it will but this is not the point. The problem is getting more frequent updates, not delaying the system so that it is veer very slow. We want it fast, not only for debugging but for serial outputs that have to be sent quickly.