diff --git a/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino b/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino index ca4ac95fadd..6b8ae577d33 100644 --- a/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino +++ b/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino @@ -5,9 +5,12 @@ can run at the same time without being interrupted by the LED code. The circuit: - * LED attached from pin 13 to ground. - * Note: on most Arduinos, there is already an LED on the board - that's attached to pin 13, so no hardware is needed for this example. + * Use the onboard LED. + * Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO + it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to + the correct LED pin independent of which board is used. + If you want to know what pin the on-board LED is connected to on your Arduino model, check + the Technical Specs of your board at https://www.arduino.cc/en/Main/Products created 2005 by David A. Mellis @@ -15,6 +18,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 +28,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