Skip to content

Commit

Permalink
Added voice play.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnemonia committed May 18, 2012
1 parent cf50377 commit 88c39fb
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Robots/Spaghuzzinator/Spaghuzzinator.ino
Expand Up @@ -9,7 +9,7 @@ const int leftYellow = 8;
const int rightRed = 7; const int rightRed = 7;
const int rightYellow = 6; const int rightYellow = 6;
const int center = 5; const int center = 5;
//const int playPin = 9; const int playPin = 9;
//const int recordPin = 10; //const int recordPin = 10;
const int headServoPin = 11; const int headServoPin = 11;


Expand Down Expand Up @@ -41,16 +41,14 @@ void setup() {
out(rightRed); out(rightRed);
out(rightYellow); out(rightYellow);
out(center); out(center);
//out(playPin); out(playPin);


on(center); on(center);
playTune(); playTune();
delay(2000); delay(2000);
} }


void loop() { void loop() {
// moveFromCenterToMax();
// moveFromMaxToCenter();


moveFromCenterToMax(); moveFromCenterToMax();
//rotate(); //rotate();
Expand Down Expand Up @@ -122,7 +120,7 @@ moveFromMaxToMin();
off(rightRed); off(rightRed);
off(rightYellow); off(rightYellow);


//playTune(); playTune();
//sendMsgFaiSchifo(); //sendMsgFaiSchifo();
moveFromMinToCenter(); moveFromMinToCenter();
//rotate(); //rotate();
Expand Down Expand Up @@ -172,9 +170,9 @@ delay(25);
} }


void playTune() { void playTune() {
// digitalWrite(playPin, HIGH); digitalWrite(playPin, HIGH);
// delay(50); delay(50);
// digitalWrite(playPin, LOW); digitalWrite(playPin, LOW);
} }
void morse(char code, int messagePin){ void morse(char code, int messagePin){
if(code=='.'){ if(code=='.'){
Expand Down

0 comments on commit 88c39fb

Please sign in to comment.