|
@ -8,26 +8,24 @@ |
|
|
*/ |
|
|
*/ |
|
|
#include "Arduino.h" |
|
|
#include "Arduino.h" |
|
|
|
|
|
|
|
|
#ifndef LED_BUILTIN |
|
|
#define LED_PIN 5 |
|
|
#define LED_BUILTIN 13 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
void setup() |
|
|
void setup() |
|
|
{ |
|
|
{ |
|
|
// initialize LED digital pin as an output.
|
|
|
// initialize LED digital pin as an output.
|
|
|
pinMode(LED_BUILTIN, OUTPUT); |
|
|
pinMode(LED_PIN, OUTPUT); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void loop() |
|
|
void loop() |
|
|
{ |
|
|
{ |
|
|
// turn the LED on (HIGH is the voltage level)
|
|
|
// turn the LED on (HIGH is the voltage level)
|
|
|
digitalWrite(LED_BUILTIN, HIGH); |
|
|
digitalWrite(LED_PIN, HIGH); |
|
|
|
|
|
|
|
|
// wait for a second
|
|
|
// wait for a second
|
|
|
delay(1000); |
|
|
delay(1000); |
|
|
|
|
|
|
|
|
// turn the LED off by making the voltage LOW
|
|
|
// turn the LED off by making the voltage LOW
|
|
|
digitalWrite(LED_BUILTIN, LOW); |
|
|
digitalWrite(LED_PIN, LOW); |
|
|
|
|
|
|
|
|
// wait for a second
|
|
|
// wait for a second
|
|
|
delay(1000); |
|
|
delay(1000); |
|
|