I just found this example code, I will try this and see what the servo does.
int main()
{
int i;
DDRB = 0xff;
PORTB = 0xff;
while(1)
{
//Hold the motor in neutral for 2 seconds (Each signal is 20ms, so repeating that 100 times = 2000 sec
for(i=0;i<101;i++)
{
PORTB = 0xff;
_delay_ms(1.5);
PORTB = 0x00;
_delay_ms(18.5);
}
//Turn 90deg clockwise for 2 sec
for(i=0;i<101;i++)
{
PORTB = 0xff;
_delay_ms(2);
PORTB = 0x00;
_delay_ms(18);
}
//Turn to -90deg ccw, while passing the neutral state for 2 sec
for(i=0;i<101;i++)
{
PORTB = 0xff;
_delay_ms(1);
PORTB = 0x00;
_delay_ms(19);
}
}
return 1;
}