def run(self): setproctitle.setproctitle('testdaemon') self.out = 0; while True: GPIO.output(LED, self.out) self.out = self.out ^ 1 time.sleep(0.2)