Last active
June 19, 2021 20:26
-
-
Save nasajpledu/fdc8410f475d417c7b07b4135fcedcfe to your computer and use it in GitHub Desktop.
Code a Mars Landing - Step 2: Import Your Components
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
from components import UltrasonicSensor, LED | |
from time import sleep | |
#If your kit doesn't automtically detect the port being used, you can specify | |
ultrasonic = UltrasonicSensor("D1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment