From 79dd1d6952d8087b473383a2e2205377a827c7dc Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 11 Apr 2012 01:48:46 +0200 Subject: [PATCH] Minor edit --- examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino b/examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino index 303335af..19433c61 100644 --- a/examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino +++ b/examples/adk/ArduinoBlinkLED/ArduinoBlinkLED.ino @@ -12,7 +12,7 @@ ADK adk(&Usb,"TKJElectronics", // Manufacturer Name "http://www.tkjelectronics.dk/uploads/ArduinoBlinkLED.apk", // URL (web page to visit if no installed apps support the accessory) "123456789"); // Serial Number (optional) -#define LED_RED 13 // Pin 13 is occupied by the SCK pin on a normal Arduino (Uno, Duemilanove etc.), so use a different pin +#define LED 13 // Pin 13 is occupied by the SCK pin on a normal Arduino (Uno, Duemilanove etc.), so use a different pin void setup() { @@ -22,7 +22,7 @@ void setup() Serial.print("\r\nOSCOKIRQ failed to assert"); while(1); //halt } - pinMode(LED_RED, OUTPUT); + pinMode(LED, OUTPUT); } void loop() @@ -37,10 +37,9 @@ void loop() if(len > 0) { Serial.print(F("\r\nData Packet: ")); Serial.print(msg[0]); - digitalWrite(LED_RED,msg[0] ? HIGH : LOW); + digitalWrite(LED,msg[0] ? HIGH : LOW); } } else - digitalWrite(LED_RED, LOW); - delay(10); + digitalWrite(LED, LOW); }