ayuda que posibilidades ahi que alguien conosca los pasos a seguir

Hello, I'm new and looking for how to adapt engines. I found this that works for me but for another project ... https: //www.youtube.com/watch? V = UdwjLLlkGTY is great, thanks for your help
martinmedina10@gmail.com

gracias...!!!

#define DISTANCE 1000

int StepCounter = 0; // variable for reading the pushbutton status
int Stepping = false;

void setup() {

pinMode(5, OUTPUT);
pinMode(2, OUTPUT);
digitalWrite(5, LOW);
digitalWrite(2, LOW);

pinMode(A7, INPUT);
pinMode(A8, INPUT);
}

void loop() {

if (digitalRead(A7) == LOW && Stepping == false)
{
digitalWrite(5, LOW);

Stepping = true;
}
if (digitalRead(A7) == LOW && Stepping == false)
{
digitalWrite(5, HIGH);

Stepping = true;
}

if (Stepping == true);
{
digitalWrite(2, HIGH);

digitalWrite(2, LOW);
delay(1);

StepCounter = StepCounter +1;

if (StepCounter == 300)
{
StepCounter = 0;
Stepping = false;}

}

that is a code that I found and it works well, what I can not do is that when I press (A7) to take more steps. the same for the button (A8) ...

juanmartin:
Hello, I'm new and looking for how to adapt engines. I found this that works for me but for another project ... https: //www.youtube.com/watch? V = UdwjLLlkGTY is great, thanks for your help
martinmedina10@gmail.com

Por favor, publique una descripción detallada del trabajo en inglés.
¿Qué espera que hagan las personas por usted?

Please post a detailed job description in English.
What do you expect people to make for you.