 void turnoff() {
   Serial.println("shutdown");
 
+  //***** Tone Section
+  //trigger the down music
+  digitalWrite(downPin, LOW);
+  delay(200);
+  digitalWrite(downPin, HIGH);
+  //this is for the on ping reset
+  pingTracker = 0;
+
   //*****LED section
   // turns off neopixels
   strip.setPixelColor(0, 0, 0, 0); //pixel number, r,g,b

int lastButtonState = 0;     // previous state of the button
int counter = 0;
int stateTracker = 0;          // used to prevent double off-sequencing
//LED variables
int redVal = 255;            // used to fade out LED. Starts at 255 to match startup val
int greenVal = 0;             //used to fade in LED

  //initialize the stepper
  AFMS.begin();  // create with the default frequency 1.6KHz
  myMotor->setSpeed(100);  // 100 rpm - to get faster need to change code

  //initilizes the audio pin
  pinMode(upPin,OUTPUT);
  digitalWrite(upPin, HIGH);
  pinMode(pingPin,OUTPUT);
  digitalWrite(pingPin, HIGH);
  pinMode(downPin,OUTPUT);
  digitalWrite(downPin, HIGH);
}


