in threading.timer you pass the name of a function (example below). Is it possible to replace this with the function body so I dont have to bother defining another trivial function
def PulseLed(self):
GPIO.output(26, GPIO.HIGH)
self.ledTimer = threading.Timer(1, self.TurnOffLed)
self.ledTimer.start()
def TurnOffLed(self):
GPIO.output(26, GPIO.LOW)