Skip to content

Commit

Permalink
Add print log to simple_usage.py to be easy to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Jan 11, 2025
1 parent 3f375b7 commit 7ec1f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/python_binding/simple_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ def main():
dt = 1/60
cam = softcam.camera(320, 240, 60)
draw_something = DrawSomething()
print('Softcam is now active.')

# Here, you can wait for an application to connect to this camera.
print('Waiting for connection...')
while not cam.wait_for_connection(timeout=1):
pass
print('Connected.')

while True:
# draw something
Expand Down

0 comments on commit 7ec1f86

Please sign in to comment.