I'm trying to control my robot using serial data sent via USB from an application made in C#, which I've used previously for controlling continuous servos without any issues. However now I want to use the application to write one of the pins on my arduino to high when the correct key is pressed, and then a different pin for a different key and so on, the code I have written doesn't seem to work properly.
Here is the code:
int RF = 2; //Right track - forwards
int LF = 4; //Left track - forwards