From a21490580e29d4cdc45c52555348e21f623b6257 Mon Sep 17 00:00:00 2001 From: peteGSX Date: Sun, 25 Feb 2024 08:39:00 +1000 Subject: [PATCH] Fix traverser example --- config.traverser.h | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/config.traverser.h b/config.traverser.h index 0f79d0b..73dfcd6 100644 --- a/config.traverser.h +++ b/config.traverser.h @@ -79,9 +79,11 @@ // Define the stepper controller in use according to those available below, refer to the // documentation for further details on which to select for your application. // -// ULN2003_HALF : ULN2003 in half step mode -// ULN2003_FULL : ULN2003 in full step mode -// A4988 : Two wire drivers (eg. A4988, DRV8825, TMC2208) +// ULN2003_HALF_CW : ULN2003 in half step mode, clockwise +// ULN2003_HALF_CCW : ULN2003 in half step mode, counter clockwise +// ULN2003_FULL_CW : ULN2003 in full step mode, clockwise +// ULN2003_FULL_CCW : ULN2003 in full step mode, counter clockwise +// A4988 : Two wire drivers (eg. A4988, DRV8825, TMC2208) // // NOTE: If you are using a different controller than those already defined, refer to // the documentation to define the appropriate configuration variables. Note there are @@ -89,21 +91,24 @@ // in those instances, no custom configuration would be required. // -#define STEPPER_DRIVER ULN2003_HALF -// #define STEPPER_DRIVER ULN2003_FULL -// #define STEPPER_DRIVER A4988 +// #define STEPPER_DRIVER ULN2003_HALF_CW +// #define STEPPER_DRIVER ULN2003_HALF_CCW +// #define STEPPER_DRIVER ULN2003_FULL_CW +// #define STEPPER_DRIVER ULN2003_FULL_CCW +#define STEPPER_DRIVER A4988 // -// If you need to invert the direction of the stepper, uncomment this line. This is likely -// required when using a TMC2208. It may also be required to change the rotation from -// counter clockwise to clockwise when using the ULN2003. +// When using a two wire driver (eg. A4988, DRV8825, TMC2208), it may be necessary to invert +// the direction pin. This is likely required when using a TMC2208. This has no effect on +// ULN2003. // #define INVERT_DIRECTION // // When using a two wire driver (eg. A4988, DRV8825, TMC2208), it may be necessary to invert -// the step pin. If so, uncomment this line. -// #define INVERT_STEPS +// the step pin. If so, uncomment this line. This has no effect on ULN2003. +// #define INVERT_STEP // // When using a two wire driver (eg. A4988, DRV8825, TMC2208), it may be necessary to invert // the enable pin behaviour if you wish to have the stepper driver disabled when not moving. +// This has no effect on ULN2003. // #define INVERT_ENABLE /////////////////////////////////////////////////////////////////////////////////////