Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
e19fe40
Update README.md
AnHardt Dec 2, 2015
8d1eeff
Fix status LEDs update when reinitializing the display
AnHardt Nov 13, 2015
0fbfb22
Renaming delta speeds (PR2824)
tonnico Dec 4, 2015
6bfcb74
The probe stowing coordinates have changed
Wackerbarth Dec 6, 2015
6d691ac
change dx, dy, dz and de from float to long
tonnico Dec 4, 2015
78a347a
change nx, ny, nz and ne from float to long
tonnico Dec 4, 2015
fcceb98
Unglobalize no_wait_for_cooling
AnHardt Nov 9, 2015
57da1b8
Host parseble output for M109, M190 and M303
AnHardt Nov 9, 2015
ae4acc4
Merge ConformingHostMessages (PR#2822)
Wackerbarth Dec 7, 2015
60d5658
Revert nozzle_bed_fan_menu_items
thinkyhead Dec 4, 2015
4f314af
Allow Thermistor #12 to be used on hotends also
Wackerbarth Dec 10, 2015
e2da2b4
Back port language translation
Wackerbarth Dec 10, 2015
e7b40bb
Change link to U8glib source
Wackerbarth Dec 10, 2015
0cebe85
Clean up spacing and duplicate entries
Wackerbarth Dec 10, 2015
0b42946
Back port Cosmetic changes
Wackerbarth Dec 10, 2015
1635613
Backport cosmetic
Wackerbarth Dec 10, 2015
3b2973d
Prepare Ramps for user redefinition
Wackerbarth Dec 10, 2015
0fa3bac
If unused, just don’t define it.
Wackerbarth Dec 10, 2015
58658c9
Call the probe pin a probe pin and not a min endstop
Wackerbarth Dec 10, 2015
7a670e3
Improve planner & stepper PR #263
Wackerbarth Dec 10, 2015
f6950ac
Residual unused variable — Backport
Wackerbarth Dec 11, 2015
5eeea2f
Fixing Rigidbot LCD Panel Support
japzi Dec 13, 2015
83c4131
Cleaning up, getting rid of the fake encoder count variable.
japzi Dec 13, 2015
e6cc232
Adding SDULTRASLOW variable.
japzi Dec 13, 2015
a64bcd5
reusing millis()
japzi Dec 14, 2015
2c9e041
Getting rid of SDEXTRASLOW, SDSLOW variables.
japzi Dec 14, 2015
71aafb7
Update Configuration_adv.h
Dec 22, 2015
056daf0
Update Configuration_adv.h
Dec 22, 2015
5ee6fe6
Update Configuration_adv.h
Dec 22, 2015
992fbb8
Update Configuration_adv.h
Dec 22, 2015
efcb769
Update Configuration_adv.h
Dec 22, 2015
39c62fb
Update Configuration_adv.h
Dec 22, 2015
04ab61b
Update Configuration_adv.h
Dec 22, 2015
5cf1c38
Update Configuration_adv.h
Dec 22, 2015
1403b9a
Update Configuration_adv.h
Dec 22, 2015
0de5fca
Update Configuration_adv.h
Dec 22, 2015
8d2aa23
Update Configuration_adv.h
Dec 22, 2015
06555fe
Using SET_INPUT instead of pinMode
japzi Dec 24, 2015
2932602
Update stepper.cpp
Naruto-kyun Jan 15, 2016
51aa7d9
Merge pull request #2902 from Naruto-kyun/patch-1
Wackerbarth Jan 15, 2016
7c94c83
Repair formula mangled by PR#1319 in Jan 2015
Wackerbarth Dec 16, 2015
a366697
Update Configuration.h
Dec 22, 2015
df0d599
Update Configuration.h
Dec 22, 2015
b8f0c8a
Update Configuration.h
Dec 22, 2015
59d345a
Update Configuration.h
Dec 22, 2015
62bad1b
Merge pull request #2848 from japzi/RCBugFix
thinkyhead Jan 27, 2016
9ed1275
Merge pull request #1 from MarlinFirmware/RCBugFix
Jan 28, 2016
d7272e3
Merge pull request #3 from MarlinFirmware/RCBugFix
Jan 28, 2016
4882a7e
more suitable display format for delta printer
Jan 29, 2016
becbfe1
Fixing Rigidbot LCD Panel Support
japzi Dec 13, 2015
6f9e9c0
Cleaning up, getting rid of the fake encoder count variable.
japzi Dec 13, 2015
1b7c443
Adding SDULTRASLOW variable.
japzi Dec 13, 2015
1833049
reusing millis()
japzi Dec 14, 2015
b58083b
Getting rid of SDEXTRASLOW, SDSLOW variables.
japzi Dec 14, 2015
1270fbf
Using SET_INPUT instead of pinMode
japzi Dec 24, 2015
1112dcd
Merge Slow SD Handling #2848
Wackerbarth Feb 7, 2016
159ff94
Remove obsolete HEATER_BED_DUTY_CYCLE_DIVIDER #2977
thinkyhead Feb 7, 2016
27d918d
Merge pull request #4 from MarlinFirmware/RCBugFix
Feb 7, 2016
ab5aa3f
Merge pull request #5 from MarlinFirmware/RCBugFix
Feb 7, 2016
efbd705
Replace the "ok" in M280, M301, M304, M851 with output not including …
AnHardt Feb 9, 2016
6f473f7
Repair N in ADVANCED_OK
AnHardt Feb 9, 2016
cdcb80f
Allow no-space after initial command
thinkyhead Feb 10, 2016
400e932
Allow spaces after a code letter
thinkyhead Feb 10, 2016
711e5db
Tweak comment in process_next_command
thinkyhead Feb 10, 2016
68457ee
For Dual Y/Z use the next available extruder pins
thinkyhead Feb 10, 2016
b83e472
Rename fpos_t to avoid libc conflict
thinkyhead Feb 11, 2016
b037872
Merge pull request #2868 from esenapaj/esenapaj-patch-1
thinkyhead Feb 17, 2016
f3f58bd
Merge pull request #2992 from thinkyhead/rc_rename_fpos_t
thinkyhead Feb 17, 2016
be691b5
Remove references to marlinfirmware.org
thinkyhead Feb 6, 2016
b81d3b8
Drop the experimental Configurator
thinkyhead Feb 7, 2016
7f30f85
Merge pull request #2987 from thinkyhead/gcode_allow_no_initial_space
thinkyhead Feb 17, 2016
b19b272
Update configurations with SPI_SPEED
thinkyhead Feb 7, 2016
438a87e
Sanity check deprecated SDSLOW, SDEXTRASLOW
thinkyhead Feb 7, 2016
8eaba02
Merge pull request #2973 from thinkyhead/fix_splash_url
thinkyhead Feb 18, 2016
3e2473e
Merge pull request #2988 from thinkyhead/z2_more_extruders
thinkyhead Feb 18, 2016
9df0e0e
Merge pull request #2974 from thinkyhead/sanitycheck_spi_speed
thinkyhead Feb 18, 2016
d4e7c2d
Merge pull request #2976 from thinkyhead/drop_configurator
thinkyhead Feb 18, 2016
fbfbc5e
Enable USE_WATCHDOG by default
thinkyhead Feb 10, 2016
0c9db67
Merge pull request #2983 from AnHardt/ok-echo
thinkyhead Feb 18, 2016
34cde1b
Merge pull request #14 from MarlinFirmware/RCBugFix
Feb 19, 2016
e1beaf6
Merge pull request #2985 from AnHardt/adv-ok
thinkyhead Feb 19, 2016
9f8e6dc
Merge pull request #2942 from esenapaj/esenapaj-patch-2
thinkyhead Feb 19, 2016
a4fe6a4
K8200: sample config back in sync
Feb 21, 2016
1093c78
Remove obsolete STEPS_MM_E setting
thinkyhead Feb 23, 2016
9a3408e
Merge pull request #3024 from thinkyhead/rc_remove_steps_mm_e
thinkyhead Feb 24, 2016
ea8409a
Fix: current_command_args contains command
Feb 24, 2016
8006684
Merge pull request #3027 from CONSULitAS/RCBugFix_current_command
thinkyhead Feb 25, 2016
eb58176
Fix board type: RAMPS 1.4
silvio-didonna Feb 25, 2016
68eae2b
added kossel xl example configuration
oxivanisher Feb 27, 2016
6a4f06d
Fix GCode handling of spaces between command letter and first digit
thinkyhead Feb 26, 2016
8dccd5a
Merge pull request #3018 from CONSULitAS/RCBugFix_K8200_backinsync
thinkyhead Feb 27, 2016
fd9e94e
Fix crashes when the Z axis is moved via LCD
Blue-Marlin Feb 27, 2016
100271e
minor cleanup in gcode_T
thinkyhead Feb 28, 2016
d118e3f
Merge pull request #3044 from thinkyhead/rc_gcode_spaces
thinkyhead Feb 28, 2016
7253a19
Fix "M145" output in M503 report
thinkyhead Feb 28, 2016
0bc6483
Merge pull request #3031 from tnw513/RCBugFix
thinkyhead Feb 29, 2016
fd1243c
Merge pull request #3052 from thinkyhead/rc_fix_m145_eeprom_output
thinkyhead Feb 29, 2016
252f4a7
Merge pull request #3043 from oxivanisher/RCBugFix
thinkyhead Feb 29, 2016
17cc2a9
Z_RAISE_AFTER_PROBING value was being ignored by Marlin because
jbrazio Feb 29, 2016
67e15aa
As pointed out by @Blue-Marlin the previous code would raise the Z axis
jbrazio Mar 1, 2016
a42fb35
Merge pull request #3050 from Blue-Marlin/fix-1166
thinkyhead Mar 1, 2016
186629a
Merge pull request #3057 from jbrazio/3034-z_raise_after_probing_fix
thinkyhead Mar 2, 2016
222d13d
Merge pull request #3051 from thinkyhead/rcbugfix_dual_axis_offset
thinkyhead Mar 2, 2016
0631541
Fix disable_all_heaters() for MAX6675
Blue-Marlin Mar 2, 2016
9eb4ace
Merge pull request #2986 from thinkyhead/enable_watchdog
thinkyhead Mar 2, 2016
a68228b
Remove unused ALARM_PIN
Blue-Marlin Mar 2, 2016
79778d4
Merge pull request #3066 from Blue-Marlin/Fix-disable_all_heaters()
thinkyhead Mar 3, 2016
547d35a
Merge pull request #3067 from Blue-Marlin/ALARM_PIN
thinkyhead Mar 3, 2016
04a0d45
Merge pull request #2821 from MarlinFirmware/ReinitializeDisplay
thinkyhead Mar 5, 2016
0fb507a
correct raise_z_for_servo
lrpirlet Jan 23, 2016
aa0b048
Merge pull request #3089 from thinkyhead/rc_apply_2924
thinkyhead Mar 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Marlin/Conditionals.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@
#define HAS_E1_ENABLE (PIN_EXISTS(E1_ENABLE))
#define HAS_E2_ENABLE (PIN_EXISTS(E2_ENABLE))
#define HAS_E3_ENABLE (PIN_EXISTS(E3_ENABLE))
#define HAS_E4_ENABLE (PIN_EXISTS(E4_ENABLE))
#define HAS_X_DIR (PIN_EXISTS(X_DIR))
#define HAS_X2_DIR (PIN_EXISTS(X2_DIR))
#define HAS_Y_DIR (PIN_EXISTS(Y_DIR))
Expand All @@ -472,6 +473,7 @@
#define HAS_E1_DIR (PIN_EXISTS(E1_DIR))
#define HAS_E2_DIR (PIN_EXISTS(E2_DIR))
#define HAS_E3_DIR (PIN_EXISTS(E3_DIR))
#define HAS_E4_DIR (PIN_EXISTS(E4_DIR))
#define HAS_X_STEP (PIN_EXISTS(X_STEP))
#define HAS_X2_STEP (PIN_EXISTS(X2_STEP))
#define HAS_Y_STEP (PIN_EXISTS(Y_STEP))
Expand All @@ -482,6 +484,7 @@
#define HAS_E1_STEP (PIN_EXISTS(E1_STEP))
#define HAS_E2_STEP (PIN_EXISTS(E2_STEP))
#define HAS_E3_STEP (PIN_EXISTS(E3_STEP))
#define HAS_E4_STEP (PIN_EXISTS(E4_STEP))

/**
* Helper Macros for heaters and extruder fan
Expand Down
40 changes: 17 additions & 23 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,6 @@ Here are some standard links for getting your machine calibrated:
#define HEATER_3_MAXTEMP 275
#define BED_MAXTEMP 150

// If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
// average current. The value should be an integer and the heat bed will be turned on for 1 interval of
// HEATER_BED_DUTY_CYCLE_DIVIDER intervals.
//#define HEATER_BED_DUTY_CYCLE_DIVIDER 4

// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
//#define EXTRUDER_WATTS (12.0*12.0/6.7) // P=I^2/R
//#define BED_WATTS (12.0*12.0/1.1) // P=I^2/R
Expand Down Expand Up @@ -478,14 +473,14 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l

#else // !AUTO_BED_LEVELING_GRID

// Arbitrary points to probe.
// A simple cross-product is used to estimate the plane of the bed.
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_3_X 170
#define ABL_PROBE_PT_3_Y 20
// Arbitrary points to probe.
// A simple cross-product is used to estimate the plane of the bed.
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_3_X 170
#define ABL_PROBE_PT_3_Y 20

#endif // AUTO_BED_LEVELING_GRID

Expand All @@ -504,8 +499,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
#define Z_RAISE_BETWEEN_PROBINGS 5 // How much the Z axis will be raised when traveling from between next probing points.
#define Z_RAISE_AFTER_PROBING 15 // How much the Z axis will be raised after the last probing point.

//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
// Useful to retract a deployable Z probe.
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
// Useful to retract a deployable Z probe.

//#define Z_PROBE_SLED // Turn on if you have a Z probe mounted on a sled like those designed by Charles Bell.
//#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
Expand Down Expand Up @@ -666,9 +661,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//#define ULTRA_LCD //general LCD support, also 16x2
//#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
// Changed behaviour! If you need SDSUPPORT uncomment it!
//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
// Changed behaviour! If you need SDSUPPORT uncomment it!
//#define SPI_SPEED SPI_HALF_SPEED // (also SPI_QUARTER_SPEED, SPI_EIGHTH_SPEED) Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
Expand All @@ -688,13 +682,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l

// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
// http://panucatt.com
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: https://github.com/olikraus/U8glib_Arduino
//#define VIKI2
//#define miniVIKI

// This is a new controller currently under development. https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
//
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: https://github.com/olikraus/U8glib_Arduino
//#define ELB_FULL_GRAPHIC_CONTROLLER
//#define SD_DETECT_INVERTED

Expand All @@ -709,7 +703,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: https://github.com/olikraus/U8glib_Arduino
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

// The RepRapWorld REPRAPWORLD_KEYPAD v1.1
Expand Down Expand Up @@ -743,9 +737,9 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l

// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
//#define LCD_I2C_VIKI

// SSD1306 OLED generic display support
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: https://github.com/olikraus/U8glib_Arduino
//#define U8GLIB_SSD1306

// Shift register panels
Expand Down
136 changes: 66 additions & 70 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
#if ENABLED(Z_DUAL_STEPPER_DRIVERS)

// Z_DUAL_ENDSTOPS is a feature to enable the use of 2 endstops for both Z steppers - Let's call them Z stepper and Z2 stepper.
// That way the machine is capable to align the bed during home, since both Z steppers are homed.
// That way the machine is capable to align the bed during home, since both Z steppers are homed.
// There is also an implementation of M666 (software endstops adjustment) to this feature.
// After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
// One just need to home the Z axis and measure the distance difference between both Z axis and apply the math: Z adjust = Z - Z2.
Expand Down Expand Up @@ -335,22 +335,22 @@
// save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
// we don't have a big font for Cyrillic, Kana
//#define USE_BIG_EDIT_FONT
// If you have spare 2300Byte of progmem and want to use a

// If you have spare 2300Byte of progmem and want to use a
// smaller font on the Info-screen uncomment the next line.
//#define USE_SMALL_INFOFONT
#endif // DOGLCD

// @section more

// The hardware watchdog should reset the microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation.
//#define USE_WATCHDOG
#define USE_WATCHDOG

#if ENABLED(USE_WATCHDOG)
// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
// However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
//#define WATCHDOG_RESET_MANUAL
// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
// However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
//#define WATCHDOG_RESET_MANUAL
#endif

// @section lcd
Expand Down Expand Up @@ -380,7 +380,6 @@
#if ENABLED(ADVANCE)
#define EXTRUDER_ADVANCE_K .0
#define D_FILAMENT 2.85
#define STEPS_MM_E 836
#endif

// @section extras
Expand All @@ -389,7 +388,7 @@
#define MM_PER_ARC_SEGMENT 1
#define N_ARC_CORRECTION 25

const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement

// @section temperature

Expand Down Expand Up @@ -461,7 +460,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#endif

/******************************************************************************\
* enable this section if you have TMC26X motor drivers.
* enable this section if you have TMC26X motor drivers.
* you need to import the TMC26XStepper library into the arduino IDE for this
******************************************************************************/

Expand All @@ -470,60 +469,60 @@ const unsigned int dropsegments=5; //everything with less than this number of st
//#define HAVE_TMCDRIVER
#if ENABLED(HAVE_TMCDRIVER)

//#define X_IS_TMC
//#define X_IS_TMC
#define X_MAX_CURRENT 1000 //in mA
#define X_SENSE_RESISTOR 91 //in mOhms
#define X_MICROSTEPS 16 //number of microsteps
//#define X2_IS_TMC

//#define X2_IS_TMC
#define X2_MAX_CURRENT 1000 //in mA
#define X2_SENSE_RESISTOR 91 //in mOhms
#define X2_MICROSTEPS 16 //number of microsteps
//#define Y_IS_TMC

//#define Y_IS_TMC
#define Y_MAX_CURRENT 1000 //in mA
#define Y_SENSE_RESISTOR 91 //in mOhms
#define Y_MICROSTEPS 16 //number of microsteps
//#define Y2_IS_TMC

//#define Y2_IS_TMC
#define Y2_MAX_CURRENT 1000 //in mA
#define Y2_SENSE_RESISTOR 91 //in mOhms
#define Y2_MICROSTEPS 16 //number of microsteps
//#define Z_IS_TMC
#define Y2_MICROSTEPS 16 //number of microsteps

//#define Z_IS_TMC
#define Z_MAX_CURRENT 1000 //in mA
#define Z_SENSE_RESISTOR 91 //in mOhms
#define Z_MICROSTEPS 16 //number of microsteps
//#define Z2_IS_TMC

//#define Z2_IS_TMC
#define Z2_MAX_CURRENT 1000 //in mA
#define Z2_SENSE_RESISTOR 91 //in mOhms
#define Z2_MICROSTEPS 16 //number of microsteps
//#define E0_IS_TMC

//#define E0_IS_TMC
#define E0_MAX_CURRENT 1000 //in mA
#define E0_SENSE_RESISTOR 91 //in mOhms
#define E0_MICROSTEPS 16 //number of microsteps
//#define E1_IS_TMC

//#define E1_IS_TMC
#define E1_MAX_CURRENT 1000 //in mA
#define E1_SENSE_RESISTOR 91 //in mOhms
#define E1_MICROSTEPS 16 //number of microsteps
//#define E2_IS_TMC
#define E1_MICROSTEPS 16 //number of microsteps

//#define E2_IS_TMC
#define E2_MAX_CURRENT 1000 //in mA
#define E2_SENSE_RESISTOR 91 //in mOhms
#define E2_MICROSTEPS 16 //number of microsteps
//#define E3_IS_TMC
#define E2_MICROSTEPS 16 //number of microsteps

//#define E3_IS_TMC
#define E3_MAX_CURRENT 1000 //in mA
#define E3_SENSE_RESISTOR 91 //in mOhms
#define E3_MICROSTEPS 16 //number of microsteps
#define E3_MICROSTEPS 16 //number of microsteps

#endif

/******************************************************************************\
* enable this section if you have L6470 motor drivers.
* enable this section if you have L6470 motor drivers.
* you need to import the L6470 library into the arduino IDE for this
******************************************************************************/

Expand All @@ -532,69 +531,66 @@ const unsigned int dropsegments=5; //everything with less than this number of st
//#define HAVE_L6470DRIVER
#if ENABLED(HAVE_L6470DRIVER)

//#define X_IS_L6470
//#define X_IS_L6470
#define X_MICROSTEPS 16 //number of microsteps
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define X2_IS_L6470

//#define X2_IS_L6470
#define X2_MICROSTEPS 16 //number of microsteps
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define Y_IS_L6470

//#define Y_IS_L6470
#define Y_MICROSTEPS 16 //number of microsteps
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define Y2_IS_L6470
#define Y2_MICROSTEPS 16 //number of microsteps
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high

//#define Y2_IS_L6470
#define Y2_MICROSTEPS 16 //number of microsteps
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define Z_IS_L6470
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall

//#define Z_IS_L6470
#define Z_MICROSTEPS 16 //number of microsteps
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define Z2_IS_L6470

//#define Z2_IS_L6470
#define Z2_MICROSTEPS 16 //number of microsteps
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
//#define E0_IS_L6470

//#define E0_IS_L6470
#define E0_MICROSTEPS 16 //number of microsteps
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall

//#define E1_IS_L6470
#define E1_MICROSTEPS 16 //number of microsteps

//#define E1_IS_L6470
#define E1_MICROSTEPS 16 //number of microsteps
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall

//#define E2_IS_L6470
#define E2_MICROSTEPS 16 //number of microsteps

//#define E2_IS_L6470
#define E2_MICROSTEPS 16 //number of microsteps
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall

//#define E3_IS_L6470
#define E3_MICROSTEPS 16 //number of microsteps

//#define E3_IS_L6470
#define E3_MICROSTEPS 16 //number of microsteps
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be carefull not to go too high
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall

#endif

#include "Conditionals.h"
Expand Down
4 changes: 4 additions & 0 deletions Marlin/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ extern uint8_t active_extruder;
extern void digipot_i2c_init();
#endif

#if HAS_TEMP_0 || HAS_TEMP_BED || ENABLED(HEATER_0_USES_MAX6675)
void print_heaterstates();
#endif

extern void calculate_volumetric_multipliers();

#endif //MARLIN_H
Loading