P.S. For Easy C specific questions post in the Easy C Pro sub forum:
http://www.chiefdelphi.com/forums/fo...play.php?f=164
Maybe something simple like this, although I warn you I didn't test this on a robot yet.
Code:
unsigned char IRcmd1;
unsigned char myservo=0;
while(1)
{
IRcmd1 = GetDigitalInput(1);
if(IRcmd1 !=0)
{
myservo++;
}
SetPWM(1,myservo);
}
Plug a servo into PWM1.
Add a backup battery since that's all that power things plugged into the pwm outputs.
The servo should move from one extreme to the other when the correct button is pushed.
You'd have to cycle the power to get it to reset.