Created
February 9, 2021 18:20
-
-
Save nasajpledu/c29038fd174c02ca61e55fb1e4c184fe to your computer and use it in GitHub Desktop.
Code a Mars Landing - Step 6: Send a message using sound
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 Button | |
button = Button("D7") | |
while True: | |
if button.is_pressed: | |
buzzer.on() | |
else: | |
buzzer.off() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment