Quote:
while(rc_dig_in01)
{
if(pwm01==127)
{
pwm01=254;
pwm02=254;
}
else
{
pwm01=127;
pwm02=127;
}
}
/*
if(rc_dig_in02)
{
if(pwm01==127)
{
pwm01=0;
pwm02=254;
}
else
{
pwm01=127;
pwm02=127;
}
}
if(rc_dig_in03)
{
if(pwm01==127)
{
pwm01=254;
pwm02=0;
}
else
{
pwm01=127;
pwm02=127;
}
}
*/
|
When we uncomment the rest of this code we get a program error, an the program light on the RC turns red and nothing works. Any ideas?
p.s. i work with sunny