File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ def find_orange_ring_pipeline(frame):
146
146
# Move the servo out of the way of the camera
147
147
servo_one .set_angle (90 )
148
148
149
+ # Wait for user button to be pressed to start the example
150
+ print ("Press the user button to start the example" )
151
+ while not board .is_button_pressed ():
152
+ pass
153
+
149
154
# Open the camera and wait a moment for at least one frame to be captured
150
155
camera .open ()
151
156
time .sleep (0.1 )
@@ -184,6 +189,11 @@ def find_orange_ring_pipeline(frame):
184
189
# Release the camera, we're done with it
185
190
camera .release ()
186
191
192
+ # Wait for user button to be pressed to continue
193
+ print ("Press the user button to continue" )
194
+ while not board .is_button_pressed ():
195
+ pass
196
+
187
197
# Move the servo to go through the center of the ring
188
198
servo_one .set_angle (45 )
189
199
You can’t perform that action at this time.
0 commit comments