when ever i try to compile this code i get the errors seen in the .jpg
#include <SoftwareServo.h>
SoftwareServo servo;
int potpin = 0;
int val;
void setup()
{
servo.attach(3);
}
void loop()
{
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
val = map(val, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180)
servo.write(val); // sets the servo position according to the scaled value
delay(15);
SoftwareServo::refresh();
}
thanks for the reply it seems that i can't copy the error message i don't know why i right click but the little box with the options does not show up. but what im trying to do is control a esc (electronic speed control) with a attiny45 but i was going to just run it with a nano but i got an error message i can't use servo because i plan on using the attiny once ever thing is working
here is a thread on running the attiny with software servo http://forum.arduino.cc/index.php?topic=62912.0
but like i said im just trying to run it on the nano right now well i used verify i never tried to upload it the way i installed it was by using the sketch>import library>add library and i can see it at the bottom sketch>import library now so i guess it's installed right
and here is a link of a video to how to run an esc with software servo
im probably missing something simple because it's 3:45 in the morning
i have spent all day and night working on turning my 3d printer into a pcb etcher