forked from M-Labs/artiq
examples/dma_blink: use handle
This commit is contained in:
parent
415fa00846
commit
0695afec37
|
@ -21,6 +21,7 @@ class DMABlink(EnvExperiment):
|
||||||
def run(self):
|
def run(self):
|
||||||
self.core.reset()
|
self.core.reset()
|
||||||
self.record()
|
self.record()
|
||||||
|
handle = self.core_dma.get_handle("blink")
|
||||||
self.core.break_realtime()
|
self.core.break_realtime()
|
||||||
for i in range(5):
|
for i in range(5):
|
||||||
self.core_dma.playback("blink")
|
self.core_dma.playback_handle(handle)
|
||||||
|
|
Loading…
Reference in New Issue