def __init__(self, datapin=24, powerpin=25): GPIO.setmode(GPIO.BOARD) self.pin = datapin GPIO.setwarnings(False) count=0