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):
146146# Move the servo out of the way of the camera
147147servo_one .set_angle (90 )
148148
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+
149154# Open the camera and wait a moment for at least one frame to be captured
150155camera .open ()
151156time .sleep (0.1 )
@@ -184,6 +189,11 @@ def find_orange_ring_pipeline(frame):
184189# Release the camera, we're done with it
185190camera .release ()
186191
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+
187197# Move the servo to go through the center of the ring
188198servo_one .set_angle (45 )
189199
You can’t perform that action at this time.
0 commit comments