     digitalWrite(targetPin, LOW); // write the buzzer pin low to pull back the diaphram
     delayMicroseconds(delayValue); // wait again or the calculated delay value
   }
-  digitalWrite(13, LOW);
- 
-}
+  digitalWrite(10, LOW);
+ 
+}

}
 
void buzz(int targetPin, long frequency, long length) {
  digitalWrite(13, HIGH);
  long delayValue = 1000000 / frequency / 2; // calculate the delay value between transitions
  //// 1 second's worth of microseconds, divided by the frequency, then split in half since
  //// there are two phases to each cycle

/*Arduino Mario Bros Tunes
  With Piezo Buzzer and PWM
 
 Connect the positive side of the Buzzer to pin 13,
  by: Dipto Pratyaksa
  last updated: 31/3/13
*/
