  
 // Pin 13 has an LED connected on most Arduino boards.
 // give it a name:
+
+#include <stdio.h>
+#include <stdlib.h>
+
 const int led = 2; //using external LED
 
 const int boardLED=13;

// the loop routine runs over and over again forever:
void loop() {            // wait for a second
  //digitalWrite(led, HIGH);  
  /*
  sendHeader();
  //wave is 0x88


void sendOne()
{
  //Serial.println("sendOne!");
  sendPair(onePulse, oneSpace, waitMS);
};


void sendZero()
{
  //Serial.println("sendZero!");
  sendPair(zeroPulse, zeroSpace, waitMS);
};

void sendCommand(unsigned char cmdIn)
{
  unsigned char cmd=cmdIn;
  Serial.println("Start cmd");
  Serial.println(cmd);
  sendHeader();
  for(int i=0; i<8; i++)
  {
    //Serial.println(cmd);
    if(cmd&128)
      sendOne();
    else
      sendZero();
    cmd=cmd<<1;
  }
  Serial.println("End cmd");
  
}
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output. 
  Serial.begin(9600);
  //Serial.println("Launching node");
  //system("node &");
  //Serial.println("Finished node launch");
  pinMode(boardLED, OUTPUT);   
  pinMode(led, OUTPUT);   
  
