I am guessing when this error:
int16_t err1 = easyvr.getError();
if (err1 >= 11)
occurs, you want to:
easyvr.playSound(1, EasyVR::VOL_FULL);
digitalWrite(10, HIGH);
delay(500);
digitalWrite(10, LOW);
delay(500);
digitalWrite(10, HIGH);
delay(500);
digitalWrite(10, LOW);
delay(500);
digitalWrite(10, HIGH);
delay(500);
digitalWrite(10, LOW);
}
If these Writes are not working than the error of "greater than or equal to 11" is not happening.
In the manual error "11h" is the error produced from "Recognition Failed." I honestly don't know how to write this into proper C++, but try something like this:
int16_t err1 = easyvr.getError();
if (err1 == 11h)
If it doesn't work, than maybe someone could chime in and tell us how to write a hex style C++ code for that.