OK, in the case where the code is too long it is acceptable to attach the code. I looked at the code that you attached, but didn’t go all the way through so didn’t realize that it would not fit.
Per the link that you attached you need to make these changes.
Search the file for “set output pins” and insert the CNC shield pin definitions so it looks like this.
motors.stepPin = 2;
motors.dirPin = 5;
motors.stepPin = 3;
motors.dirPin = 6;
motors.stepPin = 4;
motors.dirPin = 7;
motors.stepPin = 12;
motors.dirPin = 13;
// set output pins
for (int i = 0; i < MOTOR_COUNT; i++)
and the lines in the #else section right before "* Serial output specialization" should be:
#define MOTOR0_STEP_PORT PORTD
#define MOTOR0_STEP_PIN B00000100
#define MOTOR1_STEP_PORT PORTD
#define MOTOR1_STEP_PIN B00001000
#define MOTOR2_STEP_PORT PORTD
#define MOTOR2_STEP_PIN B00010000
#define MOTOR3_STEP_PORT PORTB
#define MOTOR3_STEP_PIN B00010000
Replace what is there with the above.
Those changes are supposed to configure the program to work with the CNC shield.
After managing to understand the code a little bit better, I tried this answer.
The pins are definitly right (checked on schematics and on the real deal) BUT whenever I upload the code with the above lines : literally nothing happens. With the vanilla code, motors will start buzzing and whistling but if I add the “motors.stepPin” bit, : all go silent.