def heartbeat_cb(self, tim):
        if self.tick <= 3:
            self.led.toggle()
        self.tick = (self.tick + 1) % 10
dataset/ETHPy150Open dhylands/upy-examples/teensy/heartbeat_irq.py/Heartbeat.heartbeat_cb/original