Skip to content

Instantly share code, notes, and snippets.

@dobrienSTJ
Created September 14, 2016 17:04
Show Gist options
  • Save dobrienSTJ/fbb31d51901addcb74b4659495e932a5 to your computer and use it in GitHub Desktop.
Save dobrienSTJ/fbb31d51901addcb74b4659495e932a5 to your computer and use it in GitHub Desktop.
STJLOL-DOB-Drone Barge
import pibrella
from time import sleep
while True:
def welcomescreen():
print("Welcome To The Command Application of the DroneShip 'Galaxy'")
welcomescreen()
sleep(2)
command=input("Please Type your command NOW, Commands: G= Move Forward S= Stop 1= Sound On 2= NAV Lights On 3= Beacon On 4= Sound Off 5= NAV Lights Off 6= Beacon Off ")
if command=="G":
print("Galaxy will move forward NOW!")
pibrella.output.e.on()
elif command=="S":
print("Galaxy will stop NOW!")
pibrella.output.e.off()
elif command=="1":
print("Sound will turn on NOW!")
pibrella.buzzer.success()
elif command=="2":
print("NAV Lights will turn on NOW!")
pibrella.light.on()
elif command=="3":
print("Beacon Light will turn on NOW!")
pibrella.output.h.on()
elif command=="4":
print("Sound will Turn Off NOW!")
pibrella.buzzer.off()
elif command=="5":
print("NAV Lights will turn off NOW!")
pibrella.light.off()
elif command=="6":
print("Beacon will turn off NOW!")
pibrella.output.h.off()
else:
print("ERROR")
print("This program will RESTART NOW!")
#If you have any problems using this software please contact Support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment