I don't know what I did wrong and don't know what to do. can someone help me
compile errors are:
sketch_nov27a, cpp: in function 'void loop()':
sketch_nov27a, cpp:117:7: error: expected ';' before '}' token
#include <IRremote.h>
int IR_Recv = 3; //IR Receiver Pin 3
int g_ledPin = 5; //green LED pin 5
int y_ledPin = 6; //yellow LED pin 6
int r_ledPin = 9; //red LED pin 9
int b_ledPin = 10; //blue LED pin 10
int ledPins[] = {5, 6, 9, 10}; //array with all the LED's pins
int ledStates[] ={0, 0, 0, 0}; //this means the LED's states at first is 0 = LOW
int i=0; //LED index for the arrays
IRrecv irrecv(IR_Recv);
decode_results results;
//variables to make the LED blink when selected
int ledState = LOW; // ledState to turn the LED on or off
long previousMillis = 0; // stores last time LED was updated
long interval = 1000; // interval at which to blink (milliseconds)
void setup(){
Serial.begin(9600); //starts serial communication
irrecv.enableIRIn(); // Starts the receiver
pinMode(g_ledPin, OUTPUT); // sets the digital pin as output
pinMode(y_ledPin, OUTPUT); // sets the digital pin as output
pinMode(r_ledPin, OUTPUT); // sets the digital pin as output
pinMode(b_ledPin, OUTPUT); // sets the digital pin as output
}
void loop(){
//decodes the infrared input
if (irrecv.decode(&results)){
long int decCode = results.value;
Serial.println(decCode);
//switch case to use the selected remote control button
switch (results.value){
case 57936: //when you press the Forward button
//this if/else statement makes sure that LED is ON or OFF before move to the next LED
if(ledStates*==0)*
_ digitalWrite(ledPins*, LOW);_
_ else*_
_ digitalWrite(ledPins*, HIGH);
Serial.println("Next LED");
//makes sure that when we reach the last LED it goes to the first LED again*
* if(i>=3)
i=-1;
i+=1;
break;*_
* case 57928: //when you press the Reverse button*
* //this if/else statement makes sure that LED is ON or OFF before move to the previous LED*
_ if(ledStates*==0)
digitalWrite(ledPins, LOW);
else*
digitalWrite(ledPins*, HIGH);
Serial.println("Previous LED");
//makes sure that when we reach the first LED it goes to the last LED*
* if(i<=0)
i=4;
i-=1;
break;*_
* case 57932: //when you press the Mute button*
_ if(ledStates*==0){ //if the LED is off, It will turn on*
* Serial.println("Turns ON the LED Selected");
digitalWrite(ledPins, HIGH); //sets the LED on*
ledStates*=1; //updates the LED state*
* }
else{
Serial.println("Turns OFF the LED Selected"); //else: the LED is on, It will turn off*
digitalWrite(ledPins*, LOW); //sets the LED off*
ledStates*=0; //updates the LED state*
* }
break;*_
* case 57920: //when you press the Power button*
* Serial.println("Turns OFF all the LED's");*
* digitalWrite(g_ledPin, LOW); // sets the green LED off*
* ledStates[0] =0; // updates the LED state*
* digitalWrite(y_ledPin, LOW); // sets the yellow LED off*
* ledStates[1] =0; // updates the LED state*
* digitalWrite(r_ledPin, LOW); // sets the red LED off*
* ledStates[2] =0; // updates the LED state*
* digitalWrite(b_ledPin, LOW); // sets the blue LED off*
* ledStates[3] =0; // updates the LED state*
* break;*
* default:*
* Serial.println("Waiting");*
* }*
* irrecv.resume(); // Receives the next value from the button you press*
* }*
* //this if statment makes the LED blink if it's selected and off*
_ if(ledStates*==0){
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval) {
// save the last time you blinked the LED*
* previousMillis = currentMillis;
// if the LED is off turn it on and vice-versa:
if (ledState == LOW)
ledState = HIGH;
else*
* ledState = LOW;
// set the LED with the ledState of the variable:
digitalWrite(ledPins, ledState)
}
}
}*_