programming attiny85 with arduino- SoftwareServo problem

hi, I am trying to control a servo with the attiny85 using the SoftwareServo libary and I cant figure out how to use it

for example-

a very simple sweep code:

#include <SoftwareServo.h> 

SoftwareServo myservo; 

int pos = 0;   
 
void setup() 
{ 
  myservo.attach(0);  
} 
 
 
void loop() 
{ 
  for(pos = 0; pos < 180; pos += 1)  
  {                               
    myservo.write(pos);       
    delay(15);                  
    SoftwareServo::refresh(); 
  } 
  for(pos = 180; pos>=1; pos-=1)   
  {                                
    myservo.write(pos);         
    delay(15);    
  SoftwareServo::refresh();
  } 
}

when running this code the servo sweeps fast back and forth in a range of 10 degrees.
when running more complex codes it still stays in the same 10 degrees

please replay if you can and thanks alot!

Have you read how often you need to call SoftwareServo::refresh(). If not, you should. Then, you need to complete scrap that crap that uses delay(), and use millis() and a state machine to move the servo in small steps.

try this example and tell us if it works correctly with your hardware.
http://playground.arduino.cc/ComponentLib/Servo

raschemmel: try this example and tell us if it works correctly with your hardware. http://playground.arduino.cc/ComponentLib/Servo

I tried that, it also doesnt work. the servo is just moving the direction its ment to but also ack and forth alot

Maybe it doesn't work with an ATtiny85. That's a forum tutorial. It should work with any supported hardware. You need to look into whether that includes the ATtiny85.