How to get the servo motor to move more.

I copied this code to move a servo motor with 2 buttons but I cannot figure out how to make it move more. Can someone please help me figure out how make it move more.

Code:

#include<Servo.h>
int pos = 0;

Servo servo;
void setup() {
pinMode(2, INPUT);
pinMode(3, INPUT);
servo.attach(9);
}
void loop() {
if (digitalRead(2) == HIGH && pos < 180) {
pos++;
servo.write(pos);
delay(5);
}
if (digitalRead(3) == HIGH && pos > 0) {
pos–;
servo.write(pos);

delay(5);
}
}

In what way do you mean "more"?

Faster?

More distance?

More accurately?

Tell us what it is doing now and what you would like it to do differently.

I copied this code to move a servo motor with 2 buttons but I cannot figure out how to make it move more. Can someone please help me figure out how make it move more.

Code:

#include<Servo.h>
int pos = 0;

Servo servo;
void setup() {
pinMode(2, INPUT);
pinMode(3, INPUT);
servo.attach(9);
}
void loop() {
if (digitalRead(2) == HIGH && pos < 180) {
pos++;
servo.write(pos);
delay(5);
}
if (digitalRead(3) == HIGH && pos > 0) {
pos–;
servo.write(pos);

delay(5);
}
}

What does the servo do now?

Hi,

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code. It will be formatted in a scrolling window that makes it easier to read.

Please do not cross post, getting advice from two separate threads on the one forum only makes things complicated and hard to follow.

Tom..... :)

@sgill1024, do not cross-post. Threads merged.