From 6590f76117b164274d0e6a6c867345fe0aa24443 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 29 Mar 2017 21:51:50 +0200 Subject: [PATCH] change LED pin --- src/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b87a9e5..90d54ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,26 +8,24 @@ */ #include "Arduino.h" -#ifndef LED_BUILTIN -#define LED_BUILTIN 13 -#endif +#define LED_PIN 5 void setup() { // initialize LED digital pin as an output. - pinMode(LED_BUILTIN, OUTPUT); + pinMode(LED_PIN, OUTPUT); } void loop() { // turn the LED on (HIGH is the voltage level) - digitalWrite(LED_BUILTIN, HIGH); + digitalWrite(LED_PIN, HIGH); // wait for a second delay(1000); // turn the LED off by making the voltage LOW - digitalWrite(LED_BUILTIN, LOW); + digitalWrite(LED_PIN, LOW); // wait for a second delay(1000);