Join stepper motor and button code.

Thanks!

I found this code that also works great. I hope it is easer to implement the (new)stepper code in this.

int dirpin = 2;
int steppin = 3;
int button = 7;
int val = 0;


void setup() {


  pinMode(dirpin, OUTPUT);
  pinMode(steppin, OUTPUT);
  pinMode(button, INPUT);

}
void loop()
{

  val = digitalRead(button);

  if (val == HIGH)
  {
    int i;

    digitalWrite(dirpin, HIGH);   
    for (i = 0; i<1; i++)
    {
      digitalWrite(steppin, HIGH);  
      digitalWrite(steppin, LOW);
      delayMicroseconds(200);
    } 
  }
}