artiq/examples/master/repository/handover.py

17 lines
307 B
Python
Raw Normal View History

from artiq import *
2015-07-14 04:08:20 +08:00
class Handover(EnvExperiment):
def build(self):
2015-10-04 00:18:21 +08:00
self.setattr_device("core")
self.setattr_device("led")
@kernel
def blink_once(self):
self.led.pulse(250*ms)
delay(250*ms)
def run(self):
while True:
self.blink_once()