[SOLVED] Intel Edison pinMode Constructor not working

First post alert....I'm attempting to write a library that can be used on an Uno or an Intel Edison. For the purposes of this post I have simplified it but basically the class constructor is not behaving. When uploaded to an Uno the main sketch runs fine (led blinks), on an edison it uploads but the led is constantly on (nothing happens). If anyone can shed some light on why it isn't working it would be greatly appreciated.

Main

#include "blinkClass.h"

blinkClass bClass(13);

void setup()
{
}

void loop()
{
  bClass.on(); 
}

blinkClass.cpp

#include "Arduino.h"
#include "blinkClass.h"

blinkClass::blinkClass(int pin)
{
  pinMode(pin, OUTPUT);
  _pin = pin;
}

void blinkClass::on()
{
  digitalWrite(_pin, HIGH);
  delay(250);
  digitalWrite(_pin, LOW);
  delay(250);
}

blinkClass.h

#ifndef blinkClass_h
#define blinkClass_h

#include "Arduino.h"

class blinkClass
{
  public:
    blinkClass(int pin);
    void on();
  private:
    int _pin;
};

#endif

Can you suggest a .begin() method that would for any number of objects created? So if I do this:

blinkClass bClass1(13);
blinkClass bClass2(12);
blinkClass bClass3(11);

All thats needed is single .begin() instead of

void setup{
   bClass1.begin();
   bClass2.begin();
   bClass3.begin();
}

Delta_G:

blinkClass bClass[3] = {blinkClass(13), blinkClass(12), blinkClass(11)};

Then in setup you can roll through them in a for loop:

for (int i = 0; i < 3; i++){

bClass[i].begin();
}

Since Arduino now uses the C++11 standard, there's a nicer way to do that:

for( auto element : bClass )
{
  element.begin();
}

Don't know. At least about 1.7-ish.

C++11 has a couple of cool things to help with variable typing, like auto which automatically selects the type based on the initialization statement, or decltype() which can evaluate the type of a variable, function return, or expression.

Don't want to remember what kind of variable you need for millis()?

auto t_now = millis();

Or

decltype(millis()) t_now;

It's like magic.

C++11 has been the default since IDE 1.6.6 (AVR 1.6.9, SAM 1.6.5).