mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-17 11:54:33 +01:00
USe LED_BUILTIN in BlinkWithoutDelay
This commit is contained in:
parent
e00e7bc427
commit
62c0f0f79f
@ -15,6 +15,8 @@
|
||||
by Paul Stoffregen
|
||||
modified 11 Nov 2013
|
||||
by Scott Fitzgerald
|
||||
modified 9 Jan 2017
|
||||
by Arturo Guadalupi
|
||||
|
||||
|
||||
This example code is in the public domain.
|
||||
@ -23,7 +25,7 @@
|
||||
*/
|
||||
|
||||
// constants won't change. Used here to set a pin number :
|
||||
const int ledPin = 13; // the number of the LED pin
|
||||
const int ledPin = LED_BUILTIN;// the number of the LED pin
|
||||
|
||||
// Variables will change :
|
||||
int ledState = LOW; // ledState used to set the LED
|
||||
|
Loading…
x
Reference in New Issue
Block a user