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)