Afternoon all,
I have a MEGA 1280 connected to my 64 bit laptop running Windoze 7.
I have copied one of the standard blink programs (see below). It appears to compile and upload correctly
but does not blink the LED connected to pin 13.
The problem is that I seem to remember this sketch running correctly when I first got it.
Somewhere I thought I saw a note or fix for this problem but now I cant find it.
Any ideas how to fix this, its driving me crazy
Thanks
Dillon
// blink sketch attached below
/*
* Blink
*
* The basic Arduino example. Turns on an LED on for one second,
* then off for one second, and so on... We use pin 13 because,
* depending on your Arduino board, it has either a built-in LED
* or a built-in resistor so that you need only an LED.
*
*
http://www.arduino.cc/en/Tutorial/Blink */
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
Serial.begin(9600);
Serial.println("Starting...");
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(200); // waits for a second
digitalWrite(ledPin, HIGH); // sets the LED on
delay(400); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(200); // waits for a second
digitalWrite(ledPin, HIGH); // sets the LED on
delay(140); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(500); // waits for a second
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(400); // waits for a second
}