Quote:
|
Originally Posted by echos
here is some rather straight forward code, simular to previous years stuff.
Code:
unsigned int counter;
if(autonmous_code)
{
if(counter <= 20)
{
pwm01 = pwm02 = 255;
}
else if(counter >= 21 && counter <= 100 && counter != 99)
{
pwm01 = 255;
pwm02 = (pwm01 -= 254);
}
else
{
die(void);
}
counter++;
}
|
I know this may sound rudimentary, but where is <i>die(void)</i>, is that the function that the routine is within?