Skip to content

Instantly share code, notes, and snippets.

@nasajpledu
Created February 9, 2021 18:07
Show Gist options
  • Save nasajpledu/acb1a3f04895a9905570b267193d42ac to your computer and use it in GitHub Desktop.
Save nasajpledu/acb1a3f04895a9905570b267193d42ac to your computer and use it in GitHub Desktop.
Code a Mars Landing - Step 3: Set up an ultrasonic sensor
while True:
distance = ultrasonic.distance
print(distance)
sleep(0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment