Hello
I am having trouble with my Serial Monitor, it seems to stop updating data. I try to run a simple sketch (as seen below) to see the values change when i press and release a button, however once I press the button the monitor stops updating.
int buttonPin = 2;
int buttonState = 0;
void setup () {
pinMode(buttonPin, INPUT);
Serial.begin(9600);
}
void loop() {
buttonState = digitalRead(buttonPin);
Serial.println(buttonState);
}
This should be a very easy and straight forward sketch that displays either a 1 or a 0 in the monitor depending on if the button is pressed or not. When I upload the sketch and open the monitor I can clearly see the zeros updating (because the button is not pushed) but as soon I press the button the monitor stops updating and I cant even see the 1 that should appear.