Imported library but IDE won't recognize it

I downloaded VarSpeedServo as a zip and did Sketch > Include Library > Add .ZIP library but I get

WProgram.h: No such file or directory
#include <WProgram.h>

Even though when I go to Sketch > Include Library I see VarSpeedServo at the bottom

Welcome to the forum

WProgram.h was superseded by Arduino.h many years ago. Which version of the library are you using and where did you download it from ?

Oh that makes sense. The post I got it from is dated 2011 lol VarSpeedServo - a modified Servo library with speed control. I think I should download it from the github instead

So do I !

yup that fixed it thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.