problem of arduino pro mini.

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
liuqunzhao
 
Posts: 4
Joined: Mon Oct 29, 2012 4:37 am

problem of arduino pro mini.

Post by liuqunzhao »

i type this code want to sweep.i use arduino pro mini.
but when i upload will " 'servo' does not name a type" who can help me .
thanks a lot.
my email:[email protected]

Code: Select all

#Include<Servo.h>
Servo myservo; 

int servoPin = 10;
int pos =0;
void setup(){
  myservo.attach(servoPin);
}
void loop(){
for(pos=0;pos<180;pos+=1)
{
  myservo.write(pos);
  delay(15);
}
for(pos=180;pos>=1;pos-=1)
{
  myservo.write(pos);
  delay(15);
}
}

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: problem of arduino pro mini.

Post by adafruit_support_bill »

We don't carry the Pro Mini. You should contact the place you purchased it for technical support.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”