Using EasyVR, I got a program off the internet, to turn an LED off, and on, with voice commands.
Compiling gave many error messages, and I was able to correct them all, except the following two:
-
expected initilalizer before 'bridge'
-
In function 'void setup()': 'bridge was not declared in this scope
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#include "SoftwareSerial.h"
SoftwareSerial port(12,13);
#endif
#include "EasyVR.h"
EasyVR easyvr(port);
//Groups and Commands
enum Groups
{
GROUP_0 = 0,
GROUP_1 = 1,
}
enum Group0
{
G0_ARDUINO = 0,
}
enum Group1
{
G1_LED_AN = 0,
G1_LED_AUS = 1,
}
EasyVRBridge bridge;
int8_t group, idx;
void setup()
{
// bridge mode?
if (bridge.check())
I have searched in the forum for "expected initializing before ..." and found nothing helpful but,
as I am new to this, I may easily have overlooked something.
Any suggestions appreciated.
Thanks,
Don Oliver