mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
More delays in serial examples to avoid crashing serial monitor
This commit is contained in:
parent
bde00b9be9
commit
0cdc7e59c6
@ -12,4 +12,5 @@ void setup() {
|
||||
void loop() {
|
||||
int sensorValue = analogRead(A0);
|
||||
Serial.println(sensorValue);
|
||||
delay(1); // delay in between reads for stability
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ void setup() {
|
||||
void loop() {
|
||||
int sensorValue = digitalRead(2);
|
||||
Serial.println(sensorValue);
|
||||
delay(1); // short delay in between reads for stability
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user