SERVO and Serial Communication

for(pos=180;po=0;pos--)
The condition must be either pos == 0, pos >= 0, pos <= 0, or pos != 0.

Ok I get it now.
It has to be this:

  for(pos=180;pos>=1;pos--)

so that after the LAST decrement, the zero value will prevent it from re-entering the FOR loop.

Thanks for explaining that.

  for(pos=180;po=0;pos--)

Meaning you're missing at least an "s" and a "=", or a "!", or a "<" or a ">"
I assumed that was obvious.

Now I see what you mean. You can't have an "=" in the middle term .

@AWOL,
Look at my Reply#3, and look at your Reply#4.
The "s" is there in my post (Reply#3) but missing in yours (#4).

No insults needed, but maybe a few face palms are.

(I slapped myself a couple of times ....)

ForLoopIllustrated.png