def __init__(self): import RPi.GPIO as _GPIO self.GPIO = _GPIO self.GPIO.setwarnings(False) self.GPIO.setmode(_GPIO.BCM)