Servo function in Arduino 015

I has experiment with example Servo code from playground.
http://www.arduino.cc/playground/ComponentLib/Servo

It’s work perfectly on arduino 011 but new arduino 015 It’s has problem with setMaximumPulse and Servo::refresh();

How could i do please advice.

also with #include <SoftwareServo.h>
i don’t know how get it to work, and where could i donwload SoftwareServo.h libary.

Thank in advance

just want to mention that there is already a 016 out, im not sure about the specific issue though, sorry

The instruction to download and install is in the
http://www.arduino.cc/playground/ComponentLib/Servo

The Code

You can find the code in http://www.arduino.cc/playground/uploads/ComponentLib/servo.zip. Unpack that into your lib/targets/libraries folder to add the library. I forgot to paste in a license to those files, they are free for all uses. When I figure out how to replace an attachment in the wiki I’ll put up a version with proper licenses.

It’s seem to be not reslove, i run Arduino 016 and got this error

In file included from C:\Documents and Settings\Administrator\My Documents\Arduino\arduino-0016\hardware\cores\arduino/WProgram.h:4,


c:/documents and settings/administrator/my documents/arduino/arduino-0016/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'


c:/documents and settings/administrator/my documents/arduino/arduino-0016/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'


c:/documents and settings/administrator/my documents/arduino/arduino-0016/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'


In file included from C:\Documents and Settings\Administrator\My Documents\Arduino\arduino-0016\hardware\cores\arduino/WProgram.h:6,

When you got the new version you got the new library apparently. The min and max are now set when you attach the servo. Both syntaxs below are accepted

servo.attach(pin)
servo.attach(pin, min, max)

As can be seen in http://arduino.cc/en/Reference/ServoAttach