#define x_paso 2 // Set the STEP Pin for X Axis Motor #define x_dire 5 // Set the DIR Pin for X Axis Motor #define x_habi 8 // Set the ENABLE Pin for X Axis Motor int retardo = 3000; // Lower number the turn is faster int tiempo = 100; // How long does the motor rotate (turns) void setup() { pinMode(x_paso, OUTPUT); pinMode(x_dire, OUTPUT); pinMode(x_habi, OUTPUT); } void loop() { giro(x_paso,x_dire,x_habi); } void giro(int paso_,int dire_,int habi_) { digitalWrite(habi_, LOW); // Enable the Driver digitalWrite(dire_, LOW); // turning direction 1 for(int i=0;i