Skip to content
Browse files

Added voice play.

  • Loading branch information...
1 parent cf50377 commit 88c39fb7d87a14ad520304c7dc31c444dca49a99 @mnemonia committed May 18, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 Robots/Spaghuzzinator/Spaghuzzinator.ino
View
14 Robots/Spaghuzzinator/Spaghuzzinator.ino
@@ -9,7 +9,7 @@ const int leftYellow = 8;
const int rightRed = 7;
const int rightYellow = 6;
const int center = 5;
-//const int playPin = 9;
+const int playPin = 9;
//const int recordPin = 10;
const int headServoPin = 11;
@@ -41,16 +41,14 @@ void setup() {
out(rightRed);
out(rightYellow);
out(center);
- //out(playPin);
+ out(playPin);
on(center);
playTune();
delay(2000);
}
void loop() {
-// moveFromCenterToMax();
-// moveFromMaxToCenter();
moveFromCenterToMax();
//rotate();
@@ -122,7 +120,7 @@ moveFromMaxToMin();
off(rightRed);
off(rightYellow);
-//playTune();
+playTune();
//sendMsgFaiSchifo();
moveFromMinToCenter();
//rotate();
@@ -172,9 +170,9 @@ delay(25);
}
void playTune() {
-// digitalWrite(playPin, HIGH);
-// delay(50);
-// digitalWrite(playPin, LOW);
+ digitalWrite(playPin, HIGH);
+ delay(50);
+ digitalWrite(playPin, LOW);
}
void morse(char code, int messagePin){
if(code=='.'){

0 comments on commit 88c39fb

Please sign in to comment.
Something went wrong with that request. Please try again.