 void pulse(int looper, int time) {
   // same as above, but with pwm
 }
-
-// reapeat - repeats a function
-// params:
-//   looper: int - amount of times to blink the LED
-//   time: int - milliseconds to blink
-//   rept: int - milliseconds to call function
-void repeater(int looper, int time, int rept) {
-  int start = millis();
-
-  while(REPEATING == true) {
-    int current = millis();
-    int diff = current - start;
-    Serial.println(diff);
-    if(diff > rept) {
-      blink(looper, time);
-      start = millis();
-    }
-  }
-}

   btSerial.write("AT+BAUD4");
   btSerial.write("AT+NAMETurquoiseBicuspid");
   btSerial.write("AT+PIN1234");
}

void loop()

      // get last value
      if(i == (BUFFER.length()-1)) {
        repeat = buff.toInt();
        REPEATING = true;
      }
    }
    BUFFER = "";
    
    Serial.println(type+":"+looper+":"+time+":"+repeat);
    btSerial.write(time);
    
