Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00b6086

Browse files
authored
Merge pull request#81 from per1234/knock-delay-position
Only delay after serial output in "Knock"
2 parentsf1abc30 +7f75d46 commit00b6086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎examples/06.Sensors/Knock/Knock.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ void loop() {
4949
digitalWrite(ledPin, ledState);
5050
// send the string "Knock!" back to the computer, followed by newline
5151
Serial.println("Knock!");
52+
delay(100);// delay to avoid overloading the serial port buffer
5253
}
53-
delay(100);// delay to avoid overloading the serial port buffer
5454
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp