   system("/home/root/startAP");
 
   // Init Galileo HW
-  pinMode(led, OUTPUT);
-  digitalWrite(led, LOW);
+  
+  // Enable all digital pins as outputs
+  for(int i=0; i<14; i++)
+  {
+    pinMode(i, OUTPUT);
+    digitalWrite(i, LOW);
+  }
 
   // Init pin state variables
   int i=0;

  for(i=0; i<TOTAL_NUM_Px; i++)
    g_aiP[i] = 0;   


  _udpIn.begin(3333);
  _udpIn.listen();



  Serial.println("Starting WebSocket");
  initWebsocket();  


}


//-----------------------------------------------------------
// Process recieved message from the webpage here.... 
//------------------------------------------------------------
void procWebMsg(char* _in, size_t _len) {

  /*
  g_abD[i] = false;      digitalWrite(i, LOW);    
  g_aiP[i] = 0;        analogWrite(i, LOW);    
  */
  
  Serial.print("input: "); 
  Serial.println(String(_in));
    Serial.print("_len: "); 
  Serial.println(String(_len));
  if(String(_in) == "trigger"){
    Serial.println("Trigger found");
    if(currentLED){
      digitalWrite(led, LOW);
