 
 
 void loop(){ // draw a calibration box 4 times
+  while( digitalRead( SWITCH )){
+    digitalWrite( LED, !digitalRead(LED));
+    delay(200);
+  }
+  digitalWrite( LED, LOW );
   pendown();
   for(int x=0; x<12; x++){
     forward(100);

// 

#include <Servo.h>


  }
  penServo.attach(servoPin);
  Serial.println("setup");
  pinMode( SWITCH, INPUT_PULLUP);
  pinMode( LED, OUTPUT );
  penup();
  
  delay(1000);
