def _init_led(self):
    global GPIO
    if GPIO:
        try:
            GPIO.setmode(GPIO.BCM)
            GPIO.setwarnings(False)
            GPIO.setup(self._led_pin, GPIO.OUT, initial=GPIO.LOW)
            self._used_led = True
        except RuntimeError:
            GPIO = None
def _init_led(self):
    global GPIO
    if GPIO:
        try:
            GPIO.setmode(GPIO.BCM)
            GPIO.setwarnings(False)
            GPIO.setup(self._led_pin, GPIO.OUT, initial=GPIO.LOW)
            self._used_led = True
        except RuntimeError:
            GPIO = None