forked from M-Labs/artiq
1
0
Fork 0

examples/dma_blink: use handle

This commit is contained in:
Sebastien Bourdeauducq 2017-10-31 00:07:34 +08:00
parent 415fa00846
commit 0695afec37
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class DMABlink(EnvExperiment):
def run(self):
self.core.reset()
self.record()
handle = self.core_dma.get_handle("blink")
self.core.break_realtime()
for i in range(5):
self.core_dma.playback("blink")
self.core_dma.playback_handle(handle)