Hi, here's my code to make an led turn on and off randomly, I received this error message (expected primary-expression before '>' token) and do not know why. Could you please help?
Serial.print("data");
Serial.println(data);
delay(2500);
if (data == >50){ /* this is where the error occured.*/
digitalWrite(3=HIGH);
else {
digitalWrite(3=LOW)
}
}
}
Here is my updated code, i am given the error (Error compiling for board Arduino Uno.)
My code:
void setup() {
pinMode (3=OUTPUT);
Serial.begin(9600);
}