marlin2_a10m/Marlin/Start_here.h

90 lines
6 KiB
C
Raw Permalink Normal View History

2019-12-13 15:49:33 +01:00
#pragma once
#define SHORT_BUILD_VERSION "B447"
// = disabled - remove // enabled
//Step 1) enable 1 model.
//GT2560 Boards - Mega2560 8bit - Arduino Librarys: U8glib Library required for Step 6 variants.
#define GTA10 // A10 & Variants - tested working
//#define GTA20 // A20 & Variants - tested working
//#define MECREATOR2 // Mecreator2 - tested working
//#define I3PROA // PI3A Pro - testing
//#define I3PROB // I3PROB - testing
//#define I3PROC // I3PROC - testing
//#define I3PROW // I3PROW - testing
//#define I3PROX // I3PROX - testing
//GTM32 Boards - STM32F103VE 32bit - Arduino Librarys : https://github.com/rogerclarkmelbourne/Arduino_STM32 & https://github.com/stm32duino/Arduino_Core_STM32
//Delete folder /Marlin-bugfix-2.0.x/Marlin/src/HAL/HAL_STM32 & Delete All but SPI.h in Folder Arduino_STM32-master/STM32F1/libraries/SPI/src/
//#define GTA30 // A30 - Tested mostly works - set jumpers base on board for flashing and use serial to upload.
//#define GTE180 // E180 - Tested mostly works - set jumpers base on board for flashing and use serial to upload.
//#define GTM201 // M201 - experimental, set jumpers base on board for flashing and use serial to upload.
//#define GTD200 // D200 - experimental, set jumpers base on board for flashing and use serial to upload.
//--------------------------------------------------------------------------------------------------------------------------------------------------------
//Step 2) enable 1 driver timing set.
2019-12-21 23:50:58 +01:00
// #define STOCK // Enable A4988 on all drivers (stock drivers)
2019-12-20 00:02:40 +01:00
// #define T2208 // Enable TMC2208 Standalone on all drivers
2019-12-13 15:49:33 +01:00
//#define T2209 // Enable TMC2209 Standalone on all drivers
//#define T2130 // Enable TMC2130 Standalone on all drivers
//#define T2160 // Enable TMC2160 Standalone on all drivers
//#define T26X // Enable TMC226X Standalone on all drivers
//#define T2660 // Enable TMC2660 Standalone on all drivers
//#define T5130 // Enable TMC5130 Standalone on all drivers
//#define T5160 // Enable TMC5160 Standalone on all drivers
//#define A598 // Enable A5984 on all drivers
//#define D8825 // Enable DRV8825 on all drivers
//#define L8729 // Enable LV8729 on all drivers
//#define L647 // Enable L6470 on all drivers
//#define T6560 // Enable TB6560 on all drivers
//#define T6600 // Enable TB6600 on all drivers
2019-12-21 23:50:58 +01:00
#define CUSTOM // Fill in #elif ENABLED (CUSTOM) in configuration.h with a custom set & invert in step 3 as needed
2019-12-13 15:49:33 +01:00
//--------------------------------------------------------------------------------------------------------------------------------------------------------
//Step 3) enable if needed to invert motors direction used on TMC drivers & Geared extruders.
2019-12-21 23:50:58 +01:00
// #define INVERTE // Invert E direction disabe if wrong direction - M & T variants inverted (stock).
#define INVERTXYZ // Invert XYZ direction disable if wrong direction.
2019-12-13 15:49:33 +01:00
//--------------------------------------------------------------------------------------------------------------------------------------------------------
//Step 4) enable 1 if you have mixing or multi extruder.
2019-12-20 00:02:40 +01:00
#define MIX // Enable Mixing 2 in 1 - Virtual Motor Control
2019-12-13 15:49:33 +01:00
//#define MIXT // Enable Mixing 3 in 1 - Virtual Motor Control
2019-12-20 00:02:40 +01:00
// #define CYCLOPS // Enable Cyclops 2 in 1 - Physical Motor Control
2019-12-13 15:49:33 +01:00
//#define CYCLOPST // Enable Cyclops 3 in 1 - Physical Motor Control
2019-12-13 17:09:55 +01:00
//#define DUALEX // 2 Extruder 2 in 2 - Physical Motor Control
2019-12-13 15:49:33 +01:00
//#define TRIEX // 3 Extruder 3 in 3 - Physical Motor Control
//--------------------------------------------------------------------------------------------------------------------------------------------------------
//Step 5) enable 1 probe type & edit other bed leveling options.
2019-12-13 17:09:55 +01:00
//#define MANUALBL // Enable Manual Bed Leveling (stock)
2019-12-13 15:49:33 +01:00
#define TOUCHPROBE // Enable Bltouch Type Probe.
//#define FMP // Enable Fixed Mounted Type Probe.
//--------------------------------------------------------------------------------------------------------------------------------------------------------
//Other variables DO NOT DISABLE edit only.
2019-12-13 15:49:33 +01:00
#define XMP -11 // X Min Position - distance from the endstop to the bed, adjust nozzle to the front left bed edge at X0.
#define YMP -4 // Y Min Position - distance from the endstop to the bed, adjust nozzle to the front left bed edge at Y0.
2019-12-20 00:02:40 +01:00
#define MPE 10 // As needed 30 Max if you have bed clips, if set to large it will cause max X crash.
2019-12-13 15:49:33 +01:00
#define GRIDSIZE 5 // 5x5 mesh grid adjust as needed.
#define ZPROBESPEED 120 // Probe speed reduce if accuracy is poor.
2019-12-20 00:02:40 +01:00
#define G26NOZZLE 0.4 // Nozzle size for G26
#define G26HOTEND 195 // Hotend temp for G26
#define G26BED 60 // Bed temp for G26
2019-12-13 15:49:33 +01:00
#if DISABLED (MIX) && DISABLED (CYCLOPS) && DISABLED (DUALEX) && DISABLED (MIXT) && DISABLED (CYCLOPST) && DISABLED (TRIEX)
#define NPO { -38, 4, 0 } // Nozzle To Probe offset XYZ A10/A20 calibration suggested.
2019-12-13 16:27:15 +01:00
#elif ENABLED (MIX) || ENABLED (CYCLOPS) || ENABLED (DUALEX) || ENABLED (MIXT) || ENABLED (CYCLOPST) || ENABLED (TRIEX)
2019-12-20 00:02:40 +01:00
#define NPO { -40, 3, 0 } // Nozzle To Probe offset XYZ A10M/A20M calibration suggested.
2019-12-13 15:49:33 +01:00
#else
2019-12-13 16:00:35 +01:00
#error No probe offsets defined
2019-12-13 15:49:33 +01:00
#endif
#if DISABLED (MIX) && DISABLED (CYCLOPS) && DISABLED (DUALEX) && DISABLED (MIXT) && DISABLED (CYCLOPST) && DISABLED (TRIEX)
#define XYZESTEPS { 80, 80, 400, 98 } // ungeared extruder found on a10/a20/a30/i3pro.
//#define XYZESTEPS { 80, 80, 2560, 98 } // M8 Z rod steps 2560 found on old I3pro.
#elif ENABLED (MIX) || ENABLED (CYCLOPS) || ENABLED (DUALEX)
#define XYZESTEPS { 80, 80, 400, 430, 430 } // geared extruder found on M & T variants.
//#define XYZESTEPS { 80, 80, 2560,430, 430 } // M8 Z rod steps 2560 found on old I3pro
#elif ENABLED (MIXT) || ENABLED (CYCLOPST) || ENABLED (TRIEX)
#define XYZESTEPS { 80, 80, 400, 430, 430, 430 } // geared extruder found on M & T variants.
//#define XYZESTEPS { 80, 80, 2560,430, 430, 430 } // M8 Z rod steps 2560 found on old I3pro
#else
#error No steps defined
#endif