error: 'TICIE1' was not declared in this scope

Connected servo to pin 9 and using code:

#include <ServoTimer1.h>

ServoTimer1 servo1;
ServoTimer1 servo2;

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Servo test!");
  servo1.attach(10);
  servo2.attach(9);
}


void loop() {
  Serial.print("tick");
  servo1.write(180);
  servo2.write(0);
  delay(1000);

  Serial.print("tock");
  servo1.write(0);
  servo2.write(180);
  delay(1000);
}

Getting error: error: 'TICIE1' was not declared in this scope

A solution is in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1200932603

Why are you using that library?

Just trying to run some samples wich use this library (mshield sample):

#include <ServoTimer1.h>

ServoTimer1 servo1;
ServoTimer1 servo2;

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Servo test!");
  servo1.attach(10);
  servo2.attach(9);
}


void loop() {
  Serial.print("tick");
  servo1.write(180);
  servo2.write(0);
  delay(1000);

  Serial.print("tock");
  servo1.write(0);
  servo2.write(180);
  delay(1000);
}

if you change

#include <ServoTimer1.h>

ServoTimer1 servo1;
ServoTimer1 servo2;

to :

#include <Servo.h> 

Servo servo1;
Servo1 servo2;

it should work using the arduinio servo library without any other code change

It works fine, thanks :slight_smile: