mirror of https://github.com/noisymime/Arduino.git
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…
Reference in New Issue