Last active
October 18, 2015 20:36
-
-
Save acamilo/7dd828fa3e945ade2bf3 to your computer and use it in GitHub Desktop.
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
print "hello world " | |
BowlerStudio.speak("Welcome to Bowler Studio"); | |
ServoChannel luremouth = new ServoChannel (dyio.getChannel(1)); | |
ServoChannel lureeyes = new ServoChannel (dyio.getChannel(1)); | |
DigitalOutputChannel arm = new DigitalOutputChannel(dyio.getChannel(23)); // arm | |
DigitalOutputChannel mouth = new DigitalOutputChannel(dyio.getChannel(22)); // mouth | |
DigitalOutputChannel head = new DigitalOutputChannel(dyio.getChannel(21)); // head | |
DigitalOutputChannel claw = new DigitalOutputChannel(dyio.getChannel(20)); // claw | |
def popup = {head.setHigh(true); arm.setHigh(true);} | |
def hide = {head.setHigh(false); arm.setHigh(false); mouth.setHigh(false); } | |
def growl = {mouth.setHigh(true); Runtime.getRuntime().exec("mpg123 /home/teacher/git/7dd828fa3e945ade2bf3/growl.mp3");} | |
sleep(1000) | |
popup() | |
growl() | |
sleep(5000) | |
hide() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment