Quote:
Originally Posted by fimmel
you have 2 if statements you need an else statement
here is an example:
Code:
if (p1_sw_trig ==1)
{
pwm11 = 255;
}
if else (p1_sw_top == 1)
{
pwm11 = 0;
}
else {
}
hope that works.....im sorta new to programming
/forest
|
It should be an "else if" not "if else". Also the last "else" doesnt need to be there as you arent using it for anything.