2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

examples/dma_blink: use handle

This commit is contained in:
Sebastien Bourdeauducq 2017-10-31 00:07:34 +08:00
parent 415fa00846
commit 0695afec37

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)