Skip to content

Commit

Permalink
examples/pdq2: add break_realtime() b/c compiler, upload, pdq2 config
Browse files Browse the repository at this point in the history
jordens committed Feb 25, 2016
1 parent 18274a0 commit 51e831c
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/master/repository/coredevice_examples/pdq2_simple.py
Original file line number Diff line number Diff line change
@@ -28,6 +28,8 @@ def setup(self, offset):

@kernel
def one(self):
self.core.break_realtime()
delay(1*ms)
self.load.advance()
delay(1*ms)
self.detect.advance()
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@ def one(self):

@kernel
def repeat(self):
self.core.break_realtime()
hist = [0 for _ in range(self.bins)]
for i in range(self.repeats):
n = self.one()

0 comments on commit 51e831c

Please sign in to comment.