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:
parent
415fa00846
commit
0695afec37
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user