USe LED_BUILTIN in BlinkWithoutDelay

This commit is contained in:
agdl 2017-01-09 11:45:45 +01:00 committed by Cristian Maglie
parent e00e7bc427
commit 62c0f0f79f
1 changed files with 3 additions and 1 deletions

View File

@ -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