help with my Mega2560!

Hello Everyone.

for the last few months i have been playing around creating projects for my Mega 2560.

I came to start it up last night and... nothing coming out... :roll_eyes:

the LED for power ON is lit.. the LED by the L (near pin 13) is lit.. and im getting 5v out of the board...
for some reason it is not lighting up my 3x8 segment display...

Code is here and i know its not the code at fault as it has been working fine before:

int pinArray[] = {26, 31, 30, 29, 39, 49, 48, 47, 46, 36};
//int pinArray[] = {26, 27, 28, 29, 30, 31, 32, 36, 37, 38, 39, 40, 41, 42, 46, 47, 48, 49, 50, 51, 52};
int count = 0;
int timer = 100;

void setup(){
  for (count=0;count<10;count++) {
    pinMode(pinArray[count], OUTPUT);

void loop() {
  for (count=0;count<9;count++) {
   digitalWrite(pinArray[count], HIGH);
   digitalWrite(pinArray[count + 1], HIGH);
   digitalWrite(pinArray[count], LOW);
   digitalWrite(pinArray[count + 1], LOW);


This was working fine less than 1 week ago, so no idea why on earth its not working now =(

Any help would be great !


There seems nothing wrong with the code,
have you checked the wires?

wires have been untouched since i last used it....

even flashing this bit of basic code on to it yields no results...

  Turns on an LED on for one second, then off for one second, repeatedly.
  This example code is in the public domain.
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 12;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);    

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second

If i connect the 5v rail directly to the 220R -> LED -> ground, the led lights up..

im stumped....

oh by the way, thanks for your help Rob....

I have sorted it...

I dont know what on earth has changed but on the arduino code window there is a tick (Verify) and an Arrow (Upload)..
now before i used to just click (Cntrl + R) (Verify and compile shortcut) and that would upload it..... well its not doing that now and i have to use the arrow (upload) button....

Serious Blonde moment going on here..... can i blame it on the man flu ?

Of course you can :wink: