     Serial.println();
   }
 
+
+
+
+  interrupts();
   //read from serial port
   if ( Serial.available() )
   {


Servo myservo;

const int BTN_PIN = 4;
const int LED_PIN = 3;
const int SERVO_PIN = 6; 
const int POT_PIN = A0;

void setup()
{  
  // Default pins set to 9 and 8 for REQN and RDYN
  // Set your REQN and RDYN here before ble_begin() if you need
  //ble_set_pins(3, 2);
  
  // Set your BLE Shield name here, max. length 10
  ble_set_name("The Dopest");

  

  pinMode(BTN_PIN,INPUT);
  pinMode(LED_PIN,OUTPUT);
  pinMode(POT_PIN, INPUT);
  digitalWrite( LED_PIN, LOW );

  myservo.attach(SERVO_PIN);
  


  // determine strobe mode
  if(lightOn) {
    if( !waiting ) {
      //turn LED off
      digitalWrite(LED_PIN,LOW);
      analogWrite(LED_PIN, 0);
      waiting = true;
      TimerA = millis();
    }
    else if(millis()-TimerA > delayVals[strobeMode]){
      //wait a certain amount of time
      waiting = false;
      
      //turn LED back on
      digitalWrite(LED_PIN,HIGH);
      int newBrightness = potVal/4;
      analogWrite(LED_PIN, newBrightness);
    }
  }

  delay(10);
  
  
  ble_do_events();

//  interrupts();
  
}

