Hi guys,
I have run into a sort of stupid problem. I can't get the buttons on the joystick to work.
Code:
if (p1_sw_top ==1)
{
pwm01=200;
}
Even something simple like that wont work. I tried this also:
Code:
//Somewhere in the top of the file
int output =0;
//Down in the file
output = p1_sw_top;
if (output = 1)
{
pwm01=200;
}
Any help/advice?