SoftwareServo include problem

hello,I'm use Mac OSX Lion and arduino LEONARDO with IDE version 1.01. And I just got a servo motor like this Pololu - GWS Servo S03T STD

and I download the SoftwareServo library here http://www.arduino.cc/playground/ComponentLib/servo and unzip to the library file

but when I open the example and verify it's come out "Error compiling"

/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp: In member function 'uint8_t SoftwareServo::attach(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:27: error: 'digitalWrite' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:28: error: 'OUTPUT' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:28: error: 'pinMode' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp: In member function 'void SoftwareServo::write(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:51: error: 'clockCyclesPerMicrosecond' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp: In static member function 'static void SoftwareServo::refresh()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:73: error: 'millis' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:106: error: 'digitalWrite' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:108: error: 'TCNT0' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/SoftwareServo/SoftwareServo.cpp:123: error: 'digitalWrite' was not declared in this scope

even I try to write the basic code like:

#include <SoftwareServo.h>

void setup(){
}

void loop(){
}

It's still got same error,and on the first line <SoftwareServo.h> has not become "red" like usual include words.

And I've restart IDE even restart my MAC
Is there any one know about this problem? thank you.

That library has not been updated to play with 1.0.

Apparently, with 1.0.1, missing include files, like WProgram.h, are no longer fatal errors. Beats me who thought THAT was a good idea.

Quick question - someone else will ask if I don't, why are you using software servo instead of the built in servo library ?

Duane B

Cause I use build in Servo lib example like: Sweep or KnobTest,there always some strange situation..
that's why I'm thinking to use SofterWare servo

like example Sweep ,the "L" light on board will blink,and while it blinking Arduino'll stop all the motion of servo,after blink over than servo moves,and then L light blink again. Event I try to press reset button while Uploading code .

Is it some thing stuck on it?

Sounds like the processor is resetting - how are you powering the servo?

Ok, really easy solution,

The built in servo library is excellent and used by many many people without problems.

What you have described is that you are not powering your servos properly, read the two links in my signature for a demonstration of the problem and the solution.

It isnt anything to do with the libraries and of the two, you should be using the built in version.

Duane B.

well I just plug the usb on Arduino and that's all. Because I think this motor can accept 4.6v to 6v.
But after I read your post link, I just plug an external 5v power for arduino,then it works.... no matter with USB at same time or not,with external is good!

I just confuse about power question :arduino via USB got 5 v,via,eternal power got 5v,is it make it become 10v for motor?

if is not,why with external power is worked,with only USB is not?

Could you please help me to figure out it,thank you very much .

Here it's about current, not voltage. USB can't provide enough current for the servo.

I think I got that!

After I read some basic electronic introduction and it becooe more clear.

Thank for your guys help,thx.