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

Commit 76285aa

Browse files
agdlcmaglie
authored andcommitted
USe LED_BUILTIN in BlinkWithoutDelay
1 parent fcb5520 commit 76285aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
by Paul Stoffregen
1616
modified 11 Nov 2013
1717
by Scott Fitzgerald
18+
modified 9 Jan 2017
19+
by Arturo Guadalupi
1820
1921
2022
This example code is in the public domain.
@@ -23,7 +25,7 @@
2325
*/
2426

2527
// constants won't change. Used here to set a pin number :
26-
const int ledPin = 13; // the number of the LED pin
28+
const int ledPin = LED_BUILTIN;// the number of the LED pin
2729

2830
// Variables will change :
2931
int ledState = LOW; // ledState used to set the LED

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /