public void touch(ArduinoSensor whichSensor) {
   if (interfacePiece.isPad) {
     interfacePiece.touch(((ArduinoPad) arduinoPiece).locationOnPad(whichSensor));
   } else if (interfacePiece.isSlider) {
     interfacePiece.touch(((ArduinoSlider) arduinoPiece).whichInSlider(whichSensor));
   } else {
     interfacePiece.touch();
   }
   repainter.repaint();
 }
 public boolean contains(ArduinoSensorButton button) {
   return interfacePiece.contains(button);
 }
 public void paint(Graphics2D g) {
   interfacePiece.paint(g);
 }
 public void setIsObstacle(boolean isObstacle) {
   this.isObstacle = isObstacle;
   interfacePiece.setIsObstacle(isObstacle);
 }
 public void release(ArduinoSensor whichSensor) {
   interfacePiece.release();
   repainter.repaint();
 }