mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-04 17:31:10 +08:00
17 lines
307 B
Python
17 lines
307 B
Python
from artiq import *
|
|
|
|
|
|
class Handover(EnvExperiment):
|
|
def build(self):
|
|
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()
|