forked from M-Labs/artiq
1
0
Fork 0

phaser: rm idle_kernel

This commit is contained in:
Robert Jördens 2016-10-14 02:18:15 +02:00
parent 808874a523
commit 2b5a69a80c
1 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
from artiq.experiment import *
class IdleKernel(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("led")
@kernel
def run(self):
start_time = now_mu() + seconds_to_mu(500*ms)
while self.core.get_rtio_counter_mu() < start_time:
pass
self.core.reset()
while True:
self.led.pulse(250*ms)
delay(125*ms)
self.led.pulse(125*ms)
delay(125*ms)
self.led.pulse(125*ms)
delay(250*ms)