Skip to content

Instantly share code, notes, and snippets.

@nasajpledu
Last active June 19, 2021 20:26
Show Gist options
  • Save nasajpledu/fdc8410f475d417c7b07b4135fcedcfe to your computer and use it in GitHub Desktop.
Save nasajpledu/fdc8410f475d417c7b07b4135fcedcfe to your computer and use it in GitHub Desktop.
Code a Mars Landing - Step 2: Import Your Components
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