   {
     g_aPins[i].is_analog = true;
     g_aPins[i].is_input = true;
+    g_aPins[i].sensitivity = 0.5;
+    g_aPins[i].is_inverted = false;
+    g_aPins[i].is_visible = true;
   }
 
   // Set the HW state

aJsonObject* getJsonBoardState()
{

  aJsonObject* poJsonBoardState = aJson.createObject();

  // Creating status JSON object

    // Populate the pin's type    
    if( g_aPins[i].is_analog )
    {
      aJson.addItemToObject(apoPin[i],"is_analog", aJson.createTrue() );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_analog", aJson.createFalse() );
    }

    // Populate the pin's direction
    if( g_aPins[i].is_input )
    {
      aJson.addItemToObject(apoPin[i],"is_input", aJson.createTrue() );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_input", aJson.createFalse() );
    }

    // Populate sensitivity
//    snprintf(buff, sizeof(buff),"%f", g_aPins[i].sensitivity);
//    aJson.addItemToObject(apoPin[i],"sensitivity", aJson.createItem( buff ) );
    aJson.addItemToObject(apoPin[i],"sensitivity", aJson.createItem( g_aPins[i].sensitivity ) );
    
    // Populate pin's inversion
    if( g_aPins[i].is_inverted )
    {
      aJson.addItemToObject(apoPin[i],"is_inverted", aJson.createTrue() );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_inverted", aJson.createFalse() );
    }
    
    // Populate pin's visibility
    if( g_aPins[i].is_visible )
    {
      aJson.addItemToObject(apoPin[i],"is_visible", aJson.createTrue() );
    }
    else
    {
      aJson.addItemToObject(apoPin[i],"is_visible", aJson.createFalse() );
    }
    
    /*
      float sensitivity;
  int is_inverted;
  int is_visible;
    */

    // Populate pin's value
//    snprintf(buff, sizeof(buff),"%f", g_aPins[i].value);
//    aJson.addItemToObject(apoPin[i],"value", aJson.createItem( buff ) );
    aJson.addItemToObject(apoPin[i],"sensitivity", aJson.createItem( g_aPins[i].value ) );

    // Push to JSON structure
    sprintf(caPinNumBuffer,"%d",i);
    aJson.addItemToObject(poPins,caPinNumBuffer,apoPin[i]);

  }
  
  /*
  {"status":<OK,ERROR>,  "pins":{"<0,1,…,13,A0,…,A5>":  {
  "label":"<label text>",  
	"is_analog":"<true,false>",  
	"is_input":"<true,false>", 
“sensitivity”:”<0.0,1.0>”, 
“is_inverted”:”<true,false>”, 
“is_visible”:”<true,false>”,
"value":"<0.0,1.0>",  },  ...,  }, 
"connections":[ {"source":"<0,1,…,13,A0,…,A5>","target":"<0,1,…,13,A0,…,A5>",”is_connected”:”<true,false>”},  ...,  ]  }
  */
  

  // Create CONNECTIONS
  int iaConnections[10];
