mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
More delays in serial examples to avoid crashing serial monitor
This commit is contained in:
@ -13,6 +13,7 @@ void setup() {
|
||||
void loop() {
|
||||
int sensorValue = digitalRead(2);
|
||||
Serial.println(sensorValue);
|
||||
delay(1); // short delay in between reads for stability
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user