Skip to content

Instantly share code, notes, and snippets.

@acamilo
Last active October 18, 2015 20:36
Show Gist options
  • Save acamilo/7dd828fa3e945ade2bf3 to your computer and use it in GitHub Desktop.
Save acamilo/7dd828fa3e945ade2bf3 to your computer and use it in GitHub Desktop.
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