Hi, I'm pretty new to all this.
I used the example servo code:
On comiling I get the follwing errors:
Any Ideas?
I used the example servo code:
// Sweep
// by BARRAGAN <http://barraganstudio.com>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(20); // attaches the servo on pin 20
}
void loop()
{
for(pos = 10; pos < 170; pos += 1) // goes from 10 degrees to 170 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
On comiling I get the follwing errors:
In file included from C:\Users\Peter\AppData\Local\Temp\arduino_modified_sketch_741592\Sweep.ino:9:0:
C:\Users\Peter\Documents\Arduino\libraries\Servo\src/Servo.h:69:2: error: #error "This library only supports boards with an AVR, SAM or SAMD processor."
#error "This library only supports boards with an AVR, SAM or SAMD processor."
^
Multiple libraries were found for "Servo.h"
Used: C:\Users\Peter\Documents\Arduino\libraries\Servo
Not used: C:\Users\Peter\Documents\arduino-1.6.9\hardware\teensy\avr\libraries\Servo
Not used: C:\Users\Peter\Documents\arduino-1.6.9\libraries\Servo
Error compiling for board Teensy 3.2 / 3.1.
Any Ideas?