def setup(self): GPIO.setwarnings(False) GPIO.cleanup() GPIO.setmode(GPIO.BCM) super(RaspberrypiPlatform, self).setup()