 
 void setup() 
 {
-//  BleFirmata.setFirmwareVersion(FIRMATA_MAJOR_VERSION, FIRMATA_MINOR_VERSION);
+  BleFirmata.setFirmwareVersion(FIRMATA_MAJOR_VERSION, FIRMATA_MINOR_VERSION);
 
   BleFirmata.attach(ANALOG_MESSAGE, analogWriteCallback);
   BleFirmata.attach(DIGITAL_MESSAGE, digitalWriteCallback);

  //ble_set_pins(3, 2);
  
  // Set your BLE Shield name here, max. length 10
  //ble_set_name("My Name");
  
  // Init. BLE and start BLE library.
  ble_begin();

  for (byte i=0; i < TOTAL_PINS; i++) {

    // skip pin 8, 9 for BLE Shield
    //if ((i == 8) || (i == 9))
    //  continue;

    // skip pin 4, 6, 7 for BlendMicro BLE controll
    if ((i == 4) || (i == 6) || (i == 7))
      continue;
    
    // skip SPI pins
    if ( (i==MOSI) || (i==MISO) || (i==SCK) || (i==SS) )
      continue;
     
    // Default all to digital pins
    if (IS_PIN_ANALOG(i)) {
      // turns off pullup, configures everything
      setPinModeCallback(i, ANALOG);
    } else {
      // sets the output to 0, configures portConfigInputs
      //setPinModeCallback(i, OUTPUT);
    }
  }
  // by default, do not report any analog inputs
  analogInputsToReport = 0;
