From 40e10caf0af2adf2239c088fdf6b81be12876417 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 18 Dec 2015 15:09:56 +0800 Subject: [PATCH] examples/blink_forever: revert incorrectly committed changes --- .../coredevice_examples/simple/blink_forever.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/examples/master/repository/coredevice_examples/simple/blink_forever.py b/examples/master/repository/coredevice_examples/simple/blink_forever.py index 75ff7e524..9abd3968f 100644 --- a/examples/master/repository/coredevice_examples/simple/blink_forever.py +++ b/examples/master/repository/coredevice_examples/simple/blink_forever.py @@ -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)