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.