Hello everyone!
I am new to arduino, and I was creating a project just like the one on http://jacksondolan.com/blag/2013/10/16/bringing-jarvis-home/. I tried his code (exactly as it is), but I am getting an error message telling me to put a random parenthesis before the "powerOn" statement." Adding the requested parenthesis only gives me more errors.
I have posted the offending code and the error below. Can someone help me here?
Thanks!
The code:
case GROUP_1:
switch (idx)
{
case G1_LIGHT:
Serial.println("In Light)"
powerOn=!powerOn;
if(powerOn) {
Serial.println("Power On");
digitalWrite(powerPin, LOW);
digitalWrite(13, HIGH);
}else{
Serial.println("Power Off");
digitalWrite(powerPin, HIGH);
digitalWrite(13, LOW);
}
The error:
sketch_jan10a.cpp: In function 'void action()':
sketch_jan10a:147: error: expected `)' before 'powerOn'