From f8a7e2d0d68185d73d38ffeffe45bf9e57bbc442 Mon Sep 17 00:00:00 2001 From: David Ramiro Date: Thu, 31 Jan 2019 21:32:01 +0100 Subject: [PATCH] Append building instructions Resolve #13 --- Marlin/Configuration.h | 22 +++++++++++----------- README.md | 3 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 6c50cc4..ed1f826 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -556,14 +556,14 @@ * TMC5130, TMC5130_STANDALONE * :['A4988', 'DRV8825', 'LV8729', 'L6470', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE'] */ -#define X_DRIVER_TYPE TMC2208_STANDALONE -#define Y_DRIVER_TYPE TMC2208_STANDALONE -#define Z_DRIVER_TYPE TMC2208_STANDALONE +#define X_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers +#define Y_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers +#define Z_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers #define X2_DRIVER_TYPE TMC2208_STANDALONE #define Y2_DRIVER_TYPE TMC2208_STANDALONE -#define Z2_DRIVER_TYPE TMC2208_STANDALONE -#define E0_DRIVER_TYPE TMC2208_STANDALONE -#define E1_DRIVER_TYPE TMC2208_STANDALONE +#define Z2_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers +#define E0_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers +#define E1_DRIVER_TYPE TMC2208_STANDALONE // comment out for stock drivers #define E2_DRIVER_TYPE TMC2208_STANDALONE #define E3_DRIVER_TYPE TMC2208_STANDALONE #define E4_DRIVER_TYPE TMC2208_STANDALONE @@ -854,15 +854,15 @@ // @section machine // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way. -#define INVERT_X_DIR false -#define INVERT_Y_DIR true -#define INVERT_Z_DIR true +#define INVERT_X_DIR false // set to true for stock drivers or TMC2208 with reversed connectors +#define INVERT_Y_DIR true // set to false for stock drivers or TMC2208 with reversed connectors +#define INVERT_Z_DIR true // set to false for stock drivers or TMC2208 with reversed connectors // @section extruder // For direct drive extruder v9 set to true, for geared extruder set to false. -#define INVERT_E0_DIR true -#define INVERT_E1_DIR true +#define INVERT_E0_DIR true // set to false for stock drivers or TMC2208 with reversed connectors +#define INVERT_E1_DIR true // set to false for stock drivers or TMC2208 with reversed connectors #define INVERT_E2_DIR false #define INVERT_E3_DIR false #define INVERT_E4_DIR false diff --git a/README.md b/README.md index 4d55ddc..2897df1 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ I provided three different precompiled hex files: One for no modifications on th - Clone or download this repo - In the IDE, under `Tools -> Board` select `Genuino Mega 2560` and `ATmega2560` - Open Marlin.ino in the Marlin directory of this repo -- Customize if needed and under `Sketch`, select `Export compiled binary` +- Customize if needed (e.g. motor directiona and type at line `559` to `566` and line `857` to `865`) +- Under `Sketch`, select `Export compiled binary` - Look for the .hex file in your temporary directory, e.g. `.../AppData/Local/Temp/arduino_build_xxx/` (only the `Marlin.ino.hex`, not the `Marlin.ino.with_bootloader.hex`!) ### After obtaining the hex file: