Hey guys,
I had some problems using the timers and I need something that will take time asap, so I did this:
Code:
void pulse(void)
{
pwm06=255;
for (int i=0;i<30;i++)
{
if (i == 29)
{
pwm06=127;
}
}
}
It means the pwm06 will get 255 and when it gets to 29 it will stop.
It will take about 0.5 second right?
anyways I get a syntax error, can somebody help me?
Thanks!