forked from M-Labs/artiq
1
0
Fork 0

examples/blink_forever: revert incorrectly committed changes

This commit is contained in:
Sebastien Bourdeauducq 2015-12-18 15:09:56 +08:00
parent b3abc9baf9
commit 40e10caf0a
1 changed files with 4 additions and 11 deletions

View File

@ -4,17 +4,10 @@ from artiq import *
class BlinkForever(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("ttl0")
self.setattr_device("ttl1")
def hello(self, i):
print("Hello world", i)
self.setattr_device("led")
@kernel
def run(self):
for i in range(80000):
self.ttl0.pulse(40*us)
self.ttl1.pulse(40*us)
delay(40*us)
for i in range(7):
self.hello(i)
while True:
self.led.pulse(100*ms)
delay(100*ms)