mirror of https://github.com/m-labs/artiq.git
examples/blink_forever: revert incorrectly committed changes
This commit is contained in:
parent
b3abc9baf9
commit
40e10caf0a
|
@ -4,17 +4,10 @@ from artiq import *
|
||||||
class BlinkForever(EnvExperiment):
|
class BlinkForever(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.setattr_device("core")
|
self.setattr_device("core")
|
||||||
self.setattr_device("ttl0")
|
self.setattr_device("led")
|
||||||
self.setattr_device("ttl1")
|
|
||||||
|
|
||||||
def hello(self, i):
|
|
||||||
print("Hello world", i)
|
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def run(self):
|
def run(self):
|
||||||
for i in range(80000):
|
while True:
|
||||||
self.ttl0.pulse(40*us)
|
self.led.pulse(100*ms)
|
||||||
self.ttl1.pulse(40*us)
|
delay(100*ms)
|
||||||
delay(40*us)
|
|
||||||
for i in range(7):
|
|
||||||
self.hello(i)
|
|
||||||
|
|
Loading…
Reference in New Issue