Created
February 9, 2021 18:07
-
-
Save nasajpledu/acb1a3f04895a9905570b267193d42ac to your computer and use it in GitHub Desktop.
Code a Mars Landing - Step 3: Set up an ultrasonic sensor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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