Skip to content

Commit

Permalink
Fixing variable typo, resetting targe word if it's been spelled corre…
Browse files Browse the repository at this point in the history
…ctly and removing delay when saying phoneme
  • Loading branch information
tub committed May 2, 2011
1 parent 5c1ee60 commit 2ed8835
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CubeController/CubeController.pde
Expand Up @@ -131,6 +131,7 @@ void checkPhonicsMatchTarget(){
wavSerial.print("*");
wavSerial.println("welldone"); // "well done, lets try another word"
Serial.println("Congrats! Try another");
targetWord = NULL;
}
}

Expand Down Expand Up @@ -187,8 +188,6 @@ boolean readCube(int n){
*/
void sayPhoneme(int slot){
String str = slotStrs[slot];
//delay 1/2 sec
wavSerial.print(";");
//play wav
wavSerial.print("*");
wavSerial.println(str);
Expand Down Expand Up @@ -267,7 +266,7 @@ void readRfid(){
/* Change the target word if the RFID card is recognised. */
void rfidChanged(){
for (int i=0; i<5; i++) {
if ([i] < 16) Serial.print("0");
if (code[i] < 16) Serial.print("0");
Serial.print(code[i], HEX);
Serial.print(" ");
}
Expand Down

0 comments on commit 2ed8835

Please sign in to comment.