 // ADXL335 Test Program
+
+// Old Values
+// Coincidentally, the difference between these is 127, perfect for MIDI
+//#define MIN 270
+//#define MAX 397
 
 #define CENTER 371  // Same for x, y, and z
 #define RANGE  100

    return temp*127;      
}

  

void setup()
{
//Serial.begin(31250);     // Raw MIDI
  Serial.begin(38400);     // Direct connect
  pinMode(LED, OUTPUT);
}

