         case BluetoothOff
         case Disconnected
     }
+    
     
     var currentState = States.Disconnected
     

    @IBOutlet weak var lumValueLabel: UILabel!
    @IBOutlet weak var lumLabel: UILabel!
    
    let BUTTON_COLOR_WAIT_NORMAL          = UIColor.colorWithHex("#D00000")
    let BUTTON_COLOR_WAIT_HIGHLIGHT       = UIColor.colorWithHex("#D00000")
    let BUTTON_COLOR_OPEN_NORMAL          = UIColor.colorWithHex("#33BB33")
    let BUTTON_COLOR_OPEN_HIGHLIGHT       = UIColor.colorWithHex("#208840")
    let BUTTON_COLOR_SCANNING_NORMAL      = UIColor.colorWithHex("#D00000") // "#FF8800")
    let BUTTON_COLOR_SCANNING_HIGHLIGHT   = UIColor.colorWithHex("#D00000") // 880000")
    let BUTTON_COLOR_START_SCAN_NORMAL    = UIColor.colorWithHex("#FFAA00") //#4488CC")
    let BUTTON_COLOR_START_SCAN_HIGHLIGHT = UIColor.colorWithHex("#FFDD00") //#4488CC")
    
    enum States {
        case Connected
        case Initializing

    func updateOpenButtonScanning() {
        
        UIView.animateWithDuration(0.5, animations: {
            self.openButton.backgroundColor = self.Colors.scanning
        })
        
        self.openButton.setBackgroundImage(
            UIImage.imageWithColor(self.Colors.scanning),
            forState: UIControlState.Highlighted
        )
        
