 
     delay(1000); //wait for I2C init
     /* Initialise the sensor */
-    if(!accel.begin())
-    {
+   // if(!accel.begin())
+   // {
         /* There was a problem detecting the ADXL345 ... check your connections */
-        Serial.println("Ooops, no ADXL345 detected ... Check your wiring!");
-        while(1);  //will cause watchdog time out
-    }
+   //     Serial.println("Ooops, no ADXL345 detected ... Check your wiring!");
+   //     while(1);  //will cause watchdog time out
+   // }
 
     /* Set the range to whatever is appropriate for your project */
-    accel.setRange(ADXL345_RANGE_16_G);
+   // accel.setRange(ADXL345_RANGE_16_G);
     // displaySetRange(ADXL345_RANGE_8_G);
     // displaySetRange(ADXL345_RANGE_4_G);
     // displaySetRange(ADXL345_RANGE_2_G);
   
     /* Display some basic information on this sensor */
-    displaySensorDetails(&accel);
+   // displaySensorDetails(&accel);
   
     /* Display additional settings (outside the scope of sensor_t) */
-    displayDataRate(&accel);
-    displayRange(&accel);
-    Serial.println("");
+   // displayDataRate(&accel);
+   // displayRange(&accel);
+   // Serial.println("");
+	
+	pinMode(D5, INPUT);
+	
+	
 
 }
 

	    sendOSCMessage(noteMsg, 0);
	}
}


void sendCC(unsigned int nb, unsigned int value)
{
    String prefix = "/vkb_midi/0/cc/";

char pass[] = "xxx";       // your network password

WiFiUDP Udp;                                // A UDP instance to let us send and receive packets over UDP
const IPAddress outIp(192,168,1,64);        // remote IP of your computer
const unsigned int outPort = 8000;          // remote port to receive OSC
const unsigned int localPort = 8888;        // local port to listen for OSC packets (actually not used for sending)

