Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing variable typo, resetting targe word if it's been spelled corre…

…ctly and removing delay when saying phoneme
  • Loading branch information...
commit 2ed88351e0c80b4a05303a1fe59d3bc17b904734 1 parent 5c1ee60
@tub authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 CubeController/CubeController.pde
View
5 CubeController/CubeController.pde
@@ -131,6 +131,7 @@ void checkPhonicsMatchTarget(){
wavSerial.print("*");
wavSerial.println("welldone"); // "well done, lets try another word"
Serial.println("Congrats! Try another");
+ targetWord = NULL;
}
}
@@ -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);
@@ -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(" ");
}
Please sign in to comment.
Something went wrong with that request. Please try again.