def loop(self, t): if t > self.last_trigger_t + 0.05: eventservice.set_trigger(0, 0, self.sem)
def clock(self, t): eventservice.set_trigger(0, 1, self.sem) self.last_trigger_t = t