   Wire.begin();
 
   // 0x5C is the MPR121 I2C address on the Bare Touch Board
-  if(!MPR121.begin(0x5A)){ 
-    Serial.println("error setting up MPR121");  
+  if(!MPR121.begin(0x5A)){
+    Serial.println("error setting up MPR121");
     parseError();
     while(1);
   }


void loop()
{
  // error checking
  if( MPR121.getError() != NO_ERROR ) { 
    parseError(); 
  };

  // check buttons


}

static int count = 0;
void printTouchData() {
  count+=1;
  // baseline values
  uint16_t base0 = ((uint16_t)MPR121.getRegister(0x1E))<<2;
  uint16_t base1 = ((uint16_t)MPR121.getRegister(0x1F))<<2;
  uint16_t base2 = ((uint16_t)MPR121.getRegister(0x20))<<2;
  uint16_t base3 = ((uint16_t)MPR121.getRegister(0x21))<<2;
  // sensor readings
  uint16_t data0 = (((uint16_t)MPR121.getRegister(0x05))<<8) | MPR121.getRegister(0x04);
  uint16_t data1 = (((uint16_t)MPR121.getRegister(0x07))<<8) | MPR121.getRegister(0x06);
  uint16_t data2 = (((uint16_t)MPR121.getRegister(0x09))<<8) | MPR121.getRegister(0x08);
  uint16_t data3 = (((uint16_t)MPR121.getRegister(0x0B))<<8) | MPR121.getRegister(0x0A);
  //Serial << count << ", 0, " << base0 << ", " << data0 << endl;
  //Serial << count << ", 1, " << base1 << ", " << data1 << endl;
  //Serial << count << ", 2, " << base2 << ", " << data2 << endl;
  Serial << count << ",                         3, " << base3 << ", " << data3 << endl;
}

void parseError() {
  switch(MPR121.getError()){
    case NO_ERROR:
      Serial.println("no error");
      break;
    case ADDRESS_UNKNOWN:
      Serial.println("incorrect address");
      break;
    case READBACK_FAIL:
      Serial.println("readback failure");
      break;
    case OVERCURRENT_FLAG:
      Serial.println("overcurrent on REXT pin");
      break;
    case OUT_OF_RANGE:
      Serial.println("electrode out of range");
      break;
    case NOT_INITED:
      Serial.println("not initialised");
      break;
    default:
      Serial.println("unknown error");
      break;
  }
  MPR121.clearError();
}
