|
@@ -0,0 +1,750 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
4
|
+ *
|
|
5
|
+ * Based on Sprinter and grbl.
|
|
6
|
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
7
|
+ *
|
|
8
|
+ * This program is free software: you can redistribute it and/or modify
|
|
9
|
+ * it under the terms of the GNU General Public License as published by
|
|
10
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+ * (at your option) any later version.
|
|
12
|
+ *
|
|
13
|
+ * This program is distributed in the hope that it will be useful,
|
|
14
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+ * GNU General Public License for more details.
|
|
17
|
+ *
|
|
18
|
+ * You should have received a copy of the GNU General Public License
|
|
19
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+
|
|
23
|
+/**
|
|
24
|
+ * Configuration_adv.h
|
|
25
|
+ *
|
|
26
|
+ * Advanced settings.
|
|
27
|
+ * Only change these if you know exactly what you're doing.
|
|
28
|
+ * Some of these settings can damage your printer if improperly set!
|
|
29
|
+ *
|
|
30
|
+ * Basic settings can be found in Configuration.h
|
|
31
|
+ *
|
|
32
|
+ */
|
|
33
|
+#ifndef CONFIGURATION_ADV_H
|
|
34
|
+#define CONFIGURATION_ADV_H
|
|
35
|
+
|
|
36
|
+/**
|
|
37
|
+ *
|
|
38
|
+ * ***********************************
|
|
39
|
+ * ** ATTENTION TO ALL DEVELOPERS **
|
|
40
|
+ * ***********************************
|
|
41
|
+ *
|
|
42
|
+ * You must increment this version number for every significant change such as,
|
|
43
|
+ * but not limited to: ADD, DELETE RENAME OR REPURPOSE any directive/option.
|
|
44
|
+ *
|
|
45
|
+ * Note: Update also Version.h !
|
|
46
|
+ */
|
|
47
|
+#define CONFIGURATION_ADV_H_VERSION 010100
|
|
48
|
+
|
|
49
|
+#include "Conditionals.h"
|
|
50
|
+
|
|
51
|
+// @section temperature
|
|
52
|
+
|
|
53
|
+//===========================================================================
|
|
54
|
+//=============================Thermal Settings ============================
|
|
55
|
+//===========================================================================
|
|
56
|
+
|
|
57
|
+#if DISABLED(PIDTEMPBED)
|
|
58
|
+ #define BED_CHECK_INTERVAL 1000 // ms between checks in bang-bang control
|
|
59
|
+ #if ENABLED(BED_LIMIT_SWITCHING)
|
|
60
|
+ #define BED_HYSTERESIS 1 // Only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
|
|
61
|
+ #endif
|
|
62
|
+#endif
|
|
63
|
+
|
|
64
|
+/**
|
|
65
|
+ * Thermal Protection protects your printer from damage and fire if a
|
|
66
|
+ * thermistor falls out or temperature sensors fail in any way.
|
|
67
|
+ *
|
|
68
|
+ * The issue: If a thermistor falls out or a temperature sensor fails,
|
|
69
|
+ * Marlin can no longer sense the actual temperature. Since a disconnected
|
|
70
|
+ * thermistor reads as a low temperature, the firmware will keep the heater on.
|
|
71
|
+ *
|
|
72
|
+ * The solution: Once the temperature reaches the target, start observing.
|
|
73
|
+ * If the temperature stays too far below the target (hysteresis) for too long (period),
|
|
74
|
+ * the firmware will halt the machine as a safety precaution.
|
|
75
|
+ *
|
|
76
|
+ * If you get false positives for "Thermal Runaway" increase THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD
|
|
77
|
+ */
|
|
78
|
+#if ENABLED(THERMAL_PROTECTION_HOTENDS)
|
|
79
|
+ #define THERMAL_PROTECTION_PERIOD 40 // Seconds
|
|
80
|
+ #define THERMAL_PROTECTION_HYSTERESIS 4 // Degrees Celsius
|
|
81
|
+
|
|
82
|
+ /**
|
|
83
|
+ * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
|
|
84
|
+ * WATCH_TEMP_PERIOD to expire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
|
|
85
|
+ * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
|
|
86
|
+ * but only if the current temperature is far enough below the target for a reliable test.
|
|
87
|
+ *
|
|
88
|
+ * If you get false positives for "Heating failed" increase WATCH_TEMP_PERIOD and/or decrease WATCH_TEMP_INCREASE
|
|
89
|
+ * WATCH_TEMP_INCREASE should not be below 2.
|
|
90
|
+ */
|
|
91
|
+ #define WATCH_TEMP_PERIOD 20 // Seconds
|
|
92
|
+ #define WATCH_TEMP_INCREASE 2 // Degrees Celsius
|
|
93
|
+#endif
|
|
94
|
+
|
|
95
|
+/**
|
|
96
|
+ * Thermal Protection parameters for the bed are just as above for hotends.
|
|
97
|
+ */
|
|
98
|
+#if ENABLED(THERMAL_PROTECTION_BED)
|
|
99
|
+ #define THERMAL_PROTECTION_BED_PERIOD 20 // Seconds
|
|
100
|
+ #define THERMAL_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
|
|
101
|
+
|
|
102
|
+ /**
|
|
103
|
+ * Whenever an M140 or M190 increases the target temperature the firmware will wait for the
|
|
104
|
+ * WATCH_BED_TEMP_PERIOD to expire, and if the temperature hasn't increased by WATCH_BED_TEMP_INCREASE
|
|
105
|
+ * degrees, the machine is halted, requiring a hard reset. This test restarts with any M140/M190,
|
|
106
|
+ * but only if the current temperature is far enough below the target for a reliable test.
|
|
107
|
+ *
|
|
108
|
+ * If you get too many "Heating failed" errors, increase WATCH_BED_TEMP_PERIOD and/or decrease
|
|
109
|
+ * WATCH_BED_TEMP_INCREASE. (WATCH_BED_TEMP_INCREASE should not be below 2.)
|
|
110
|
+ */
|
|
111
|
+ #define WATCH_BED_TEMP_PERIOD 60 // Seconds
|
|
112
|
+ #define WATCH_BED_TEMP_INCREASE 2 // Degrees Celsius
|
|
113
|
+#endif
|
|
114
|
+
|
|
115
|
+#if ENABLED(PIDTEMP)
|
|
116
|
+ // this adds an experimental additional term to the heating power, proportional to the extrusion speed.
|
|
117
|
+ // if Kc is chosen well, the additional required power due to increased melting should be compensated.
|
|
118
|
+ #define PID_ADD_EXTRUSION_RATE
|
|
119
|
+ #if ENABLED(PID_ADD_EXTRUSION_RATE)
|
|
120
|
+ #define DEFAULT_Kc (100) //heating power=Kc*(e_speed)
|
|
121
|
+ #define LPQ_MAX_LEN 50
|
|
122
|
+ #endif
|
|
123
|
+#endif
|
|
124
|
+
|
|
125
|
+/**
|
|
126
|
+ * Automatic Temperature:
|
|
127
|
+ * The hotend target temperature is calculated by all the buffered lines of gcode.
|
|
128
|
+ * The maximum buffered steps/sec of the extruder motor is called "se".
|
|
129
|
+ * Start autotemp mode with M109 S<mintemp> B<maxtemp> F<factor>
|
|
130
|
+ * The target temperature is set to mintemp+factor*se[steps/sec] and is limited by
|
|
131
|
+ * mintemp and maxtemp. Turn this off by executing M109 without F*
|
|
132
|
+ * Also, if the temperature is set to a value below mintemp, it will not be changed by autotemp.
|
|
133
|
+ * On an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode
|
|
134
|
+ */
|
|
135
|
+#define AUTOTEMP
|
|
136
|
+#if ENABLED(AUTOTEMP)
|
|
137
|
+ #define AUTOTEMP_OLDWEIGHT 0.98
|
|
138
|
+#endif
|
|
139
|
+
|
|
140
|
+//Show Temperature ADC value
|
|
141
|
+//The M105 command return, besides traditional information, the ADC value read from temperature sensors.
|
|
142
|
+//#define SHOW_TEMP_ADC_VALUES
|
|
143
|
+
|
|
144
|
+// @section extruder
|
|
145
|
+
|
|
146
|
+// extruder run-out prevention.
|
|
147
|
+//if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
|
|
148
|
+//#define EXTRUDER_RUNOUT_PREVENT
|
|
149
|
+#define EXTRUDER_RUNOUT_MINTEMP 190
|
|
150
|
+#define EXTRUDER_RUNOUT_SECONDS 30
|
|
151
|
+#define EXTRUDER_RUNOUT_ESTEPS 14 // mm filament
|
|
152
|
+#define EXTRUDER_RUNOUT_SPEED 1500 // extrusion speed
|
|
153
|
+#define EXTRUDER_RUNOUT_EXTRUDE 100
|
|
154
|
+
|
|
155
|
+// @section temperature
|
|
156
|
+
|
|
157
|
+//These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
|
|
158
|
+//The measured temperature is defined as "actualTemp = (measuredTemp * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET"
|
|
159
|
+#define TEMP_SENSOR_AD595_OFFSET 0.0
|
|
160
|
+#define TEMP_SENSOR_AD595_GAIN 1.0
|
|
161
|
+
|
|
162
|
+//This is for controlling a fan to cool down the stepper drivers
|
|
163
|
+//it will turn on when any driver is enabled
|
|
164
|
+//and turn off after the set amount of seconds from last driver being disabled again
|
|
165
|
+#define CONTROLLERFAN_PIN 2 //Pin used for the fan to cool controller (-1 to disable)
|
|
166
|
+#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run
|
|
167
|
+#define CONTROLLERFAN_SPEED 255 // == full speed
|
|
168
|
+
|
|
169
|
+// When first starting the main fan, run it at full speed for the
|
|
170
|
+// given number of milliseconds. This gets the fan spinning reliably
|
|
171
|
+// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
|
|
172
|
+//#define FAN_KICKSTART_TIME 100
|
|
173
|
+
|
|
174
|
+// This defines the minimal speed for the main fan, run in PWM mode
|
|
175
|
+// to enable uncomment and set minimal PWM speed for reliable running (1-255)
|
|
176
|
+// if fan speed is [1 - (FAN_MIN_PWM-1)] it is set to FAN_MIN_PWM
|
|
177
|
+//#define FAN_MIN_PWM 50
|
|
178
|
+
|
|
179
|
+// @section extruder
|
|
180
|
+
|
|
181
|
+// Extruder cooling fans
|
|
182
|
+// Configure fan pin outputs to automatically turn on/off when the associated
|
|
183
|
+// extruder temperature is above/below EXTRUDER_AUTO_FAN_TEMPERATURE.
|
|
184
|
+// Multiple extruders can be assigned to the same pin in which case
|
|
185
|
+// the fan will turn on when any selected extruder is above the threshold.
|
|
186
|
+#define EXTRUDER_0_AUTO_FAN_PIN -1
|
|
187
|
+#define EXTRUDER_1_AUTO_FAN_PIN -1
|
|
188
|
+#define EXTRUDER_2_AUTO_FAN_PIN -1
|
|
189
|
+#define EXTRUDER_3_AUTO_FAN_PIN -1
|
|
190
|
+#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
|
|
191
|
+#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+//===========================================================================
|
|
195
|
+//=============================Mechanical Settings===========================
|
|
196
|
+//===========================================================================
|
|
197
|
+
|
|
198
|
+// @section homing
|
|
199
|
+
|
|
200
|
+#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
|
201
|
+
|
|
202
|
+// @section extras
|
|
203
|
+
|
|
204
|
+//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
|
|
205
|
+
|
|
206
|
+// A single Z stepper driver is usually used to drive 2 stepper motors.
|
|
207
|
+// Uncomment this define to utilize a separate stepper driver for each Z axis motor.
|
|
208
|
+// Only a few motherboards support this, like RAMPS, which have dual extruder support (the 2nd, often unused, extruder driver is used
|
|
209
|
+// to control the 2nd Z axis stepper motor). The pins are currently only defined for a RAMPS motherboards.
|
|
210
|
+// On a RAMPS (or other 5 driver) motherboard, using this feature will limit you to using 1 extruder.
|
|
211
|
+//#define Z_DUAL_STEPPER_DRIVERS
|
|
212
|
+
|
|
213
|
+#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
|
|
214
|
+
|
|
215
|
+ // 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.
|
|
216
|
+ // That way the machine is capable to align the bed during home, since both Z steppers are homed.
|
|
217
|
+ // There is also an implementation of M666 (software endstops adjustment) to this feature.
|
|
218
|
+ // After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
|
|
219
|
+ // 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.
|
|
220
|
+ // If the Z stepper axis is closer to the bed, the measure Z > Z2 (yes, it is.. think about it) and the Z adjust would be positive.
|
|
221
|
+ // Play a little bit with small adjustments (0.5mm) and check the behaviour.
|
|
222
|
+ // The M119 (endstops report) will start reporting the Z2 Endstop as well.
|
|
223
|
+
|
|
224
|
+ //#define Z_DUAL_ENDSTOPS
|
|
225
|
+
|
|
226
|
+ #if ENABLED(Z_DUAL_ENDSTOPS)
|
|
227
|
+ #define Z2_USE_ENDSTOP _XMAX_
|
|
228
|
+ #endif
|
|
229
|
+
|
|
230
|
+#endif // Z_DUAL_STEPPER_DRIVERS
|
|
231
|
+
|
|
232
|
+// Same again but for Y Axis.
|
|
233
|
+//#define Y_DUAL_STEPPER_DRIVERS
|
|
234
|
+
|
|
235
|
+#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
|
236
|
+ // Define if the two Y drives need to rotate in opposite directions
|
|
237
|
+ #define INVERT_Y2_VS_Y_DIR true
|
|
238
|
+#endif
|
|
239
|
+
|
|
240
|
+// Enable this for dual x-carriage printers.
|
|
241
|
+// A dual x-carriage design has the advantage that the inactive extruder can be parked which
|
|
242
|
+// prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage
|
|
243
|
+// allowing faster printing speeds. Connect your X2 stepper to the first unused E plug.
|
|
244
|
+//#define DUAL_X_CARRIAGE
|
|
245
|
+#if ENABLED(DUAL_X_CARRIAGE)
|
|
246
|
+ // Configuration for second X-carriage
|
|
247
|
+ // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
|
|
248
|
+ // the second x-carriage always homes to the maximum endstop.
|
|
249
|
+ #define X2_MIN_POS 80 // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
|
|
250
|
+ #define X2_MAX_POS 353 // set maximum to the distance between toolheads when both heads are homed
|
|
251
|
+ #define X2_HOME_DIR 1 // the second X-carriage always homes to the maximum endstop position
|
|
252
|
+ #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position
|
|
253
|
+ // However: In this mode the HOTEND_OFFSET_X value for the second extruder provides a software
|
|
254
|
+ // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
|
|
255
|
+ // without modifying the firmware (through the "M218 T1 X???" command).
|
|
256
|
+ // Remember: you should set the second extruder x-offset to 0 in your slicer.
|
|
257
|
+
|
|
258
|
+ // There are a few selectable movement modes for dual x-carriages using M605 S<mode>
|
|
259
|
+ // Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
|
|
260
|
+ // as long as it supports dual x-carriages. (M605 S0)
|
|
261
|
+ // Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
|
|
262
|
+ // that additional slicer support is not required. (M605 S1)
|
|
263
|
+ // Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all
|
|
264
|
+ // actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
|
|
265
|
+ // once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
|
|
266
|
+
|
|
267
|
+ // This is the default power-up mode which can be later using M605.
|
|
268
|
+ #define DEFAULT_DUAL_X_CARRIAGE_MODE 0
|
|
269
|
+
|
|
270
|
+ // Default settings in "Auto-park Mode"
|
|
271
|
+ #define TOOLCHANGE_PARK_ZLIFT 0.2 // the distance to raise Z axis when parking an extruder
|
|
272
|
+ #define TOOLCHANGE_UNPARK_ZLIFT 1 // the distance to raise Z axis when unparking an extruder
|
|
273
|
+
|
|
274
|
+ // Default x offset in duplication mode (typically set to half print bed width)
|
|
275
|
+ #define DEFAULT_DUPLICATION_X_OFFSET 100
|
|
276
|
+
|
|
277
|
+#endif //DUAL_X_CARRIAGE
|
|
278
|
+
|
|
279
|
+// @section homing
|
|
280
|
+
|
|
281
|
+//homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
|
|
282
|
+#define X_HOME_BUMP_MM 10
|
|
283
|
+#define Y_HOME_BUMP_MM 10
|
|
284
|
+#define Z_HOME_BUMP_MM 3
|
|
285
|
+#define HOMING_BUMP_DIVISOR {2, 2, 4} // Re-Bump Speed Divisor (Divides the Homing Feedrate)
|
|
286
|
+#define QUICK_HOME //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
|
|
287
|
+
|
|
288
|
+// When G28 is called, this option will make Y home before X
|
|
289
|
+//#define HOME_Y_BEFORE_X
|
|
290
|
+
|
|
291
|
+// @section machine
|
|
292
|
+
|
|
293
|
+#define AXIS_RELATIVE_MODES {false, false, false, false}
|
|
294
|
+
|
|
295
|
+//By default pololu step drivers require an active high signal. However, some high power drivers require an active low signal as step.
|
|
296
|
+#define INVERT_X_STEP_PIN false
|
|
297
|
+#define INVERT_Y_STEP_PIN false
|
|
298
|
+#define INVERT_Z_STEP_PIN false
|
|
299
|
+#define INVERT_E_STEP_PIN false
|
|
300
|
+
|
|
301
|
+// Default stepper release if idle. Set to 0 to deactivate.
|
|
302
|
+// Steppers will shut down DEFAULT_STEPPER_DEACTIVE_TIME seconds after the last move when DISABLE_INACTIVE_? is true.
|
|
303
|
+// Time can be set by M18 and M84.
|
|
304
|
+#define DEFAULT_STEPPER_DEACTIVE_TIME 120
|
|
305
|
+#define DISABLE_INACTIVE_X true
|
|
306
|
+#define DISABLE_INACTIVE_Y true
|
|
307
|
+#define DISABLE_INACTIVE_Z true // set to false if the nozzle will fall down on your printed part when print has finished.
|
|
308
|
+#define DISABLE_INACTIVE_E true
|
|
309
|
+
|
|
310
|
+#define DEFAULT_MINIMUMFEEDRATE 0.0 // minimum feedrate
|
|
311
|
+#define DEFAULT_MINTRAVELFEEDRATE 0.0
|
|
312
|
+
|
|
313
|
+// @section lcd
|
|
314
|
+
|
|
315
|
+#if ENABLED(ULTIPANEL)
|
|
316
|
+ #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
|
|
317
|
+ #define ULTIPANEL_FEEDMULTIPLY // Comment to disable setting feedrate multiplier via encoder
|
|
318
|
+#endif
|
|
319
|
+
|
|
320
|
+// @section extras
|
|
321
|
+
|
|
322
|
+// minimum time in microseconds that a movement needs to take if the buffer is emptied.
|
|
323
|
+#define DEFAULT_MINSEGMENTTIME 20000
|
|
324
|
+
|
|
325
|
+// If defined the movements slow down when the look ahead buffer is only half full
|
|
326
|
+#define SLOWDOWN
|
|
327
|
+
|
|
328
|
+// Frequency limit
|
|
329
|
+// See nophead's blog for more info
|
|
330
|
+// Not working O
|
|
331
|
+//#define XY_FREQUENCY_LIMIT 15
|
|
332
|
+
|
|
333
|
+// Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end
|
|
334
|
+// of the buffer and all stops. This should not be much greater than zero and should only be changed
|
|
335
|
+// if unwanted behavior is observed on a user's machine when running at very slow speeds.
|
|
336
|
+#define MINIMUM_PLANNER_SPEED 0.05// (mm/sec)
|
|
337
|
+
|
|
338
|
+// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
|
|
339
|
+#define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
|
|
340
|
+
|
|
341
|
+// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
|
|
342
|
+#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
|
|
343
|
+
|
|
344
|
+// Motor Current controlled via PWM (Overridable on supported boards with PWM-driven motor driver current)
|
|
345
|
+//#define PWM_MOTOR_CURRENT {1300, 1300, 1250} // Values in milliamps
|
|
346
|
+
|
|
347
|
+// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
|
|
348
|
+//#define DIGIPOT_I2C
|
|
349
|
+// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
|
|
350
|
+#define DIGIPOT_I2C_NUM_CHANNELS 8
|
|
351
|
+// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
|
|
352
|
+#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
|
|
353
|
+
|
|
354
|
+//===========================================================================
|
|
355
|
+//=============================Additional Features===========================
|
|
356
|
+//===========================================================================
|
|
357
|
+
|
|
358
|
+#define ENCODER_RATE_MULTIPLIER // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
|
|
359
|
+#define ENCODER_10X_STEPS_PER_SEC 75 // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
|
|
360
|
+#define ENCODER_100X_STEPS_PER_SEC 160 // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
|
|
361
|
+
|
|
362
|
+//#define CHDK 4 //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
|
|
363
|
+#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
|
|
364
|
+
|
|
365
|
+// @section lcd
|
|
366
|
+
|
|
367
|
+// Include a page of printer information in the LCD Main Menu
|
|
368
|
+//#define LCD_INFO_MENU
|
|
369
|
+
|
|
370
|
+#if ENABLED(SDSUPPORT)
|
|
371
|
+
|
|
372
|
+ // Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
|
373
|
+ // around this by connecting a push button or single throw switch to the pin defined
|
|
374
|
+ // as SD_DETECT_PIN in your board's pins definitions.
|
|
375
|
+ // This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
|
376
|
+ // Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
|
377
|
+ #define SD_DETECT_INVERTED
|
|
378
|
+
|
|
379
|
+ #define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
|
380
|
+ #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
|
381
|
+
|
|
382
|
+ #define SDCARD_RATHERRECENTFIRST //reverse file order of sd card menu display. Its sorted practically after the file system block order.
|
|
383
|
+ // if a file is deleted, it frees a block. hence, the order is not purely chronological. To still have auto0.g accessible, there is again the option to do that.
|
|
384
|
+ // using:
|
|
385
|
+ //#define MENU_ADDAUTOSTART
|
|
386
|
+
|
|
387
|
+ // Show a progress bar on HD44780 LCDs for SD printing
|
|
388
|
+ //#define LCD_PROGRESS_BAR
|
|
389
|
+
|
|
390
|
+ #if ENABLED(LCD_PROGRESS_BAR)
|
|
391
|
+ // Amount of time (ms) to show the bar
|
|
392
|
+ #define PROGRESS_BAR_BAR_TIME 2000
|
|
393
|
+ // Amount of time (ms) to show the status message
|
|
394
|
+ #define PROGRESS_BAR_MSG_TIME 3000
|
|
395
|
+ // Amount of time (ms) to retain the status message (0=forever)
|
|
396
|
+ #define PROGRESS_MSG_EXPIRE 0
|
|
397
|
+ // Enable this to show messages for MSG_TIME then hide them
|
|
398
|
+ //#define PROGRESS_MSG_ONCE
|
|
399
|
+ #endif
|
|
400
|
+
|
|
401
|
+ // This allows hosts to request long names for files and folders with M33
|
|
402
|
+ //#define LONG_FILENAME_HOST_SUPPORT
|
|
403
|
+
|
|
404
|
+ // This option allows you to abort SD printing when any endstop is triggered.
|
|
405
|
+ // This feature must be enabled with "M540 S1" or from the LCD menu.
|
|
406
|
+ // To have any effect, endstops must be enabled during SD printing.
|
|
407
|
+ // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
|
|
408
|
+ //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
|
|
409
|
+
|
|
410
|
+#endif // SDSUPPORT
|
|
411
|
+
|
|
412
|
+// for dogm lcd displays you can choose some additional fonts:
|
|
413
|
+#if ENABLED(DOGLCD)
|
|
414
|
+ // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
|
|
415
|
+ // we don't have a big font for Cyrillic, Kana
|
|
416
|
+ //#define USE_BIG_EDIT_FONT
|
|
417
|
+
|
|
418
|
+ // If you have spare 2300Byte of progmem and want to use a
|
|
419
|
+ // smaller font on the Info-screen uncomment the next line.
|
|
420
|
+ //#define USE_SMALL_INFOFONT
|
|
421
|
+#endif // DOGLCD
|
|
422
|
+
|
|
423
|
+// @section safety
|
|
424
|
+
|
|
425
|
+// The hardware watchdog should reset the microcontroller disabling all outputs,
|
|
426
|
+// in case the firmware gets stuck and doesn't do temperature regulation.
|
|
427
|
+#define USE_WATCHDOG
|
|
428
|
+
|
|
429
|
+#if ENABLED(USE_WATCHDOG)
|
|
430
|
+ // If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
|
|
431
|
+ // The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
|
|
432
|
+ // 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.
|
|
433
|
+ //#define WATCHDOG_RESET_MANUAL
|
|
434
|
+#endif
|
|
435
|
+
|
|
436
|
+// @section lcd
|
|
437
|
+
|
|
438
|
+// Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process
|
|
439
|
+// it can e.g. be used to change z-positions in the print startup phase in real-time
|
|
440
|
+// does not respect endstops!
|
|
441
|
+//#define BABYSTEPPING
|
|
442
|
+#if ENABLED(BABYSTEPPING)
|
|
443
|
+ #define BABYSTEP_XY //not only z, but also XY in the menu. more clutter, more functions
|
|
444
|
+ //not implemented for deltabots!
|
|
445
|
+ #define BABYSTEP_INVERT_Z false //true for inverse movements in Z
|
|
446
|
+ #define BABYSTEP_MULTIPLICATOR 1 //faster movements
|
|
447
|
+#endif
|
|
448
|
+
|
|
449
|
+// @section extruder
|
|
450
|
+
|
|
451
|
+// extruder advance constant (s2/mm3)
|
|
452
|
+//
|
|
453
|
+// advance (steps) = STEPS_PER_CUBIC_MM_E * EXTRUDER_ADVANCE_K * cubic mm per second ^ 2
|
|
454
|
+//
|
|
455
|
+// Hooke's law says: force = k * distance
|
|
456
|
+// Bernoulli's principle says: v ^ 2 / 2 + g . h + pressure / density = constant
|
|
457
|
+// so: v ^ 2 is proportional to number of steps we advance the extruder
|
|
458
|
+//#define ADVANCE
|
|
459
|
+
|
|
460
|
+#if ENABLED(ADVANCE)
|
|
461
|
+ #define EXTRUDER_ADVANCE_K .0
|
|
462
|
+ #define D_FILAMENT 2.85
|
|
463
|
+#endif
|
|
464
|
+
|
|
465
|
+// Implementation of a linear pressure control
|
|
466
|
+// Assumption: advance = k * (delta velocity)
|
|
467
|
+// K=0 means advance disabled. A good value for a gregs wade extruder will be around K=75
|
|
468
|
+//#define LIN_ADVANCE
|
|
469
|
+
|
|
470
|
+#if ENABLED(LIN_ADVANCE)
|
|
471
|
+ #define LIN_ADVANCE_K 75
|
|
472
|
+#endif
|
|
473
|
+
|
|
474
|
+// @section leveling
|
|
475
|
+
|
|
476
|
+// Default mesh area is an area with an inset margin on the print area.
|
|
477
|
+// Below are the macros that are used to define the borders for the mesh area,
|
|
478
|
+// made available here for specialized needs, ie dual extruder setup.
|
|
479
|
+#if ENABLED(MESH_BED_LEVELING)
|
|
480
|
+ #define MESH_MIN_X (X_MIN_POS + MESH_INSET)
|
|
481
|
+ #define MESH_MAX_X (X_MAX_POS - (MESH_INSET))
|
|
482
|
+ #define MESH_MIN_Y (Y_MIN_POS + MESH_INSET)
|
|
483
|
+ #define MESH_MAX_Y (Y_MAX_POS - (MESH_INSET))
|
|
484
|
+#endif
|
|
485
|
+
|
|
486
|
+// @section extras
|
|
487
|
+
|
|
488
|
+// Arc interpretation settings:
|
|
489
|
+#define ARC_SUPPORT // Disabling this saves ~2738 bytes
|
|
490
|
+#define MM_PER_ARC_SEGMENT 1
|
|
491
|
+#define N_ARC_CORRECTION 25
|
|
492
|
+
|
|
493
|
+// Support for G5 with XYZE destination and IJPQ offsets. Requires ~2666 bytes.
|
|
494
|
+//#define BEZIER_CURVE_SUPPORT
|
|
495
|
+
|
|
496
|
+const unsigned int dropsegments = 5; //everything with less than this number of steps will be ignored as move and joined with the next movement
|
|
497
|
+
|
|
498
|
+// @section temperature
|
|
499
|
+
|
|
500
|
+// Control heater 0 and heater 1 in parallel.
|
|
501
|
+//#define HEATERS_PARALLEL
|
|
502
|
+
|
|
503
|
+//===========================================================================
|
|
504
|
+//================================= Buffers =================================
|
|
505
|
+//===========================================================================
|
|
506
|
+
|
|
507
|
+// @section hidden
|
|
508
|
+
|
|
509
|
+// The number of linear motions that can be in the plan at any give time.
|
|
510
|
+// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ring-buffering.
|
|
511
|
+#if ENABLED(SDSUPPORT)
|
|
512
|
+ #define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
|
|
513
|
+#else
|
|
514
|
+ #define BLOCK_BUFFER_SIZE 16 // maximize block buffer
|
|
515
|
+#endif
|
|
516
|
+
|
|
517
|
+// @section serial
|
|
518
|
+
|
|
519
|
+// The ASCII buffer for serial input
|
|
520
|
+#define MAX_CMD_SIZE 96
|
|
521
|
+#define BUFSIZE 26
|
|
522
|
+
|
|
523
|
+// Bad Serial-connections can miss a received command by sending an 'ok'
|
|
524
|
+// Therefore some clients abort after 30 seconds in a timeout.
|
|
525
|
+// Some other clients start sending commands while receiving a 'wait'.
|
|
526
|
+// This "wait" is only sent when the buffer is empty. 1 second is a good value here.
|
|
527
|
+//#define NO_TIMEOUTS 1000 // Milliseconds
|
|
528
|
+
|
|
529
|
+// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
|
|
530
|
+//#define ADVANCED_OK
|
|
531
|
+
|
|
532
|
+// @section fwretract
|
|
533
|
+
|
|
534
|
+// Firmware based and LCD controlled retract
|
|
535
|
+// M207 and M208 can be used to define parameters for the retraction.
|
|
536
|
+// The retraction can be called by the slicer using G10 and G11
|
|
537
|
+// until then, intended retractions can be detected by moves that only extrude and the direction.
|
|
538
|
+// the moves are than replaced by the firmware controlled ones.
|
|
539
|
+
|
|
540
|
+//#define FWRETRACT //ONLY PARTIALLY TESTED
|
|
541
|
+#if ENABLED(FWRETRACT)
|
|
542
|
+ #define MIN_RETRACT 0.1 //minimum extruded mm to accept a automatic gcode retraction attempt
|
|
543
|
+ #define RETRACT_LENGTH 3 //default retract length (positive mm)
|
|
544
|
+ #define RETRACT_LENGTH_SWAP 13 //default swap retract length (positive mm), for extruder change
|
|
545
|
+ #define RETRACT_FEEDRATE 45 //default feedrate for retracting (mm/s)
|
|
546
|
+ #define RETRACT_ZLIFT 0 //default retract Z-lift
|
|
547
|
+ #define RETRACT_RECOVER_LENGTH 0 //default additional recover length (mm, added to retract length when recovering)
|
|
548
|
+ #define RETRACT_RECOVER_LENGTH_SWAP 0 //default additional swap recover length (mm, added to retract length when recovering from extruder change)
|
|
549
|
+ #define RETRACT_RECOVER_FEEDRATE 8 //default feedrate for recovering from retraction (mm/s)
|
|
550
|
+#endif
|
|
551
|
+
|
|
552
|
+// Add support for experimental filament exchange support M600; requires display
|
|
553
|
+#if ENABLED(ULTIPANEL)
|
|
554
|
+ #define FILAMENT_CHANGE_FEATURE // Enable filament exchange menu and M600 g-code (used for runout sensor too)
|
|
555
|
+ #if ENABLED(FILAMENT_CHANGE_FEATURE)
|
|
556
|
+ #define FILAMENT_CHANGE_X_POS 100 // X position of hotend
|
|
557
|
+ #define FILAMENT_CHANGE_Y_POS 100 // Y position of hotend
|
|
558
|
+ #define FILAMENT_CHANGE_Z_ADD 20 // Z addition of hotend (lift)
|
|
559
|
+ #define FILAMENT_CHANGE_XY_FEEDRATE 100 // X and Y axes feedrate in mm/s (also used for delta printers Z axis)
|
|
560
|
+ #define FILAMENT_CHANGE_Z_FEEDRATE 5 // Z axis feedrate in mm/s (not used for delta printers)
|
|
561
|
+ #define FILAMENT_CHANGE_RETRACT_LENGTH 5 // Initial retract in mm
|
|
562
|
+ // It is a short retract used immediately after print interrupt before move to filament exchange position
|
|
563
|
+ #define FILAMENT_CHANGE_RETRACT_FEEDRATE 60 // Initial retract feedrate in mm/s
|
|
564
|
+ #define FILAMENT_CHANGE_UNLOAD_LENGTH 600 // Unload filament length from hotend in mm
|
|
565
|
+ // Longer length for bowden printers to unload filament from whole bowden tube,
|
|
566
|
+ // shorter lenght for printers without bowden to unload filament from extruder only,
|
|
567
|
+ // 0 to disable unloading for manual unloading
|
|
568
|
+ #define FILAMENT_CHANGE_UNLOAD_FEEDRATE 10 // Unload filament feedrate in mm/s - filament unloading can be fast
|
|
569
|
+ #define FILAMENT_CHANGE_LOAD_LENGTH 600 // Load filament length over hotend in mm
|
|
570
|
+ // Longer length for bowden printers to fast load filament into whole bowden tube over the hotend,
|
|
571
|
+ // Short or zero length for printers without bowden where loading is not used
|
|
572
|
+ #define FILAMENT_CHANGE_LOAD_FEEDRATE 10 // Load filament feedrate in mm/s - filament loading into the bowden tube can be fast
|
|
573
|
+ #define FILAMENT_CHANGE_EXTRUDE_LENGTH 100 // Extrude filament length in mm after filament is load over the hotend,
|
|
574
|
+ // 0 to disable for manual extrusion
|
|
575
|
+ // Filament can be extruded repeatedly from the filament exchange menu to fill the hotend,
|
|
576
|
+ // or until outcoming filament color is not clear for filament color change
|
|
577
|
+ #define FILAMENT_CHANGE_EXTRUDE_FEEDRATE 3 // Extrude filament feedrate in mm/s - must be slower than load feedrate
|
|
578
|
+ #endif
|
|
579
|
+#endif
|
|
580
|
+
|
|
581
|
+/******************************************************************************\
|
|
582
|
+ * enable this section if you have TMC26X motor drivers.
|
|
583
|
+ * you need to import the TMC26XStepper library into the Arduino IDE for this
|
|
584
|
+ ******************************************************************************/
|
|
585
|
+
|
|
586
|
+// @section tmc
|
|
587
|
+
|
|
588
|
+//#define HAVE_TMCDRIVER
|
|
589
|
+#if ENABLED(HAVE_TMCDRIVER)
|
|
590
|
+
|
|
591
|
+ //#define X_IS_TMC
|
|
592
|
+ #define X_MAX_CURRENT 1000 //in mA
|
|
593
|
+ #define X_SENSE_RESISTOR 91 //in mOhms
|
|
594
|
+ #define X_MICROSTEPS 16 //number of microsteps
|
|
595
|
+
|
|
596
|
+ //#define X2_IS_TMC
|
|
597
|
+ #define X2_MAX_CURRENT 1000 //in mA
|
|
598
|
+ #define X2_SENSE_RESISTOR 91 //in mOhms
|
|
599
|
+ #define X2_MICROSTEPS 16 //number of microsteps
|
|
600
|
+
|
|
601
|
+ //#define Y_IS_TMC
|
|
602
|
+ #define Y_MAX_CURRENT 1000 //in mA
|
|
603
|
+ #define Y_SENSE_RESISTOR 91 //in mOhms
|
|
604
|
+ #define Y_MICROSTEPS 16 //number of microsteps
|
|
605
|
+
|
|
606
|
+ //#define Y2_IS_TMC
|
|
607
|
+ #define Y2_MAX_CURRENT 1000 //in mA
|
|
608
|
+ #define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
609
|
+ #define Y2_MICROSTEPS 16 //number of microsteps
|
|
610
|
+
|
|
611
|
+ //#define Z_IS_TMC
|
|
612
|
+ #define Z_MAX_CURRENT 1000 //in mA
|
|
613
|
+ #define Z_SENSE_RESISTOR 91 //in mOhms
|
|
614
|
+ #define Z_MICROSTEPS 16 //number of microsteps
|
|
615
|
+
|
|
616
|
+ //#define Z2_IS_TMC
|
|
617
|
+ #define Z2_MAX_CURRENT 1000 //in mA
|
|
618
|
+ #define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
619
|
+ #define Z2_MICROSTEPS 16 //number of microsteps
|
|
620
|
+
|
|
621
|
+ //#define E0_IS_TMC
|
|
622
|
+ #define E0_MAX_CURRENT 1000 //in mA
|
|
623
|
+ #define E0_SENSE_RESISTOR 91 //in mOhms
|
|
624
|
+ #define E0_MICROSTEPS 16 //number of microsteps
|
|
625
|
+
|
|
626
|
+ //#define E1_IS_TMC
|
|
627
|
+ #define E1_MAX_CURRENT 1000 //in mA
|
|
628
|
+ #define E1_SENSE_RESISTOR 91 //in mOhms
|
|
629
|
+ #define E1_MICROSTEPS 16 //number of microsteps
|
|
630
|
+
|
|
631
|
+ //#define E2_IS_TMC
|
|
632
|
+ #define E2_MAX_CURRENT 1000 //in mA
|
|
633
|
+ #define E2_SENSE_RESISTOR 91 //in mOhms
|
|
634
|
+ #define E2_MICROSTEPS 16 //number of microsteps
|
|
635
|
+
|
|
636
|
+ //#define E3_IS_TMC
|
|
637
|
+ #define E3_MAX_CURRENT 1000 //in mA
|
|
638
|
+ #define E3_SENSE_RESISTOR 91 //in mOhms
|
|
639
|
+ #define E3_MICROSTEPS 16 //number of microsteps
|
|
640
|
+
|
|
641
|
+#endif
|
|
642
|
+
|
|
643
|
+/******************************************************************************\
|
|
644
|
+ * enable this section if you have L6470 motor drivers.
|
|
645
|
+ * you need to import the L6470 library into the Arduino IDE for this
|
|
646
|
+ ******************************************************************************/
|
|
647
|
+
|
|
648
|
+// @section l6470
|
|
649
|
+
|
|
650
|
+//#define HAVE_L6470DRIVER
|
|
651
|
+#if ENABLED(HAVE_L6470DRIVER)
|
|
652
|
+
|
|
653
|
+ //#define X_IS_L6470
|
|
654
|
+ #define X_MICROSTEPS 16 //number of microsteps
|
|
655
|
+ #define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
656
|
+ #define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
657
|
+ #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
658
|
+
|
|
659
|
+ //#define X2_IS_L6470
|
|
660
|
+ #define X2_MICROSTEPS 16 //number of microsteps
|
|
661
|
+ #define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
662
|
+ #define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
663
|
+ #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
664
|
+
|
|
665
|
+ //#define Y_IS_L6470
|
|
666
|
+ #define Y_MICROSTEPS 16 //number of microsteps
|
|
667
|
+ #define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
668
|
+ #define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
669
|
+ #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
670
|
+
|
|
671
|
+ //#define Y2_IS_L6470
|
|
672
|
+ #define Y2_MICROSTEPS 16 //number of microsteps
|
|
673
|
+ #define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
674
|
+ #define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
675
|
+ #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
676
|
+
|
|
677
|
+ //#define Z_IS_L6470
|
|
678
|
+ #define Z_MICROSTEPS 16 //number of microsteps
|
|
679
|
+ #define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
680
|
+ #define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
681
|
+ #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
682
|
+
|
|
683
|
+ //#define Z2_IS_L6470
|
|
684
|
+ #define Z2_MICROSTEPS 16 //number of microsteps
|
|
685
|
+ #define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
686
|
+ #define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
687
|
+ #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
688
|
+
|
|
689
|
+ //#define E0_IS_L6470
|
|
690
|
+ #define E0_MICROSTEPS 16 //number of microsteps
|
|
691
|
+ #define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
692
|
+ #define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
693
|
+ #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
694
|
+
|
|
695
|
+ //#define E1_IS_L6470
|
|
696
|
+ #define E1_MICROSTEPS 16 //number of microsteps
|
|
697
|
+ #define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
698
|
+ #define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
699
|
+ #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
700
|
+
|
|
701
|
+ //#define E2_IS_L6470
|
|
702
|
+ #define E2_MICROSTEPS 16 //number of microsteps
|
|
703
|
+ #define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
704
|
+ #define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
705
|
+ #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
706
|
+
|
|
707
|
+ //#define E3_IS_L6470
|
|
708
|
+ #define E3_MICROSTEPS 16 //number of microsteps
|
|
709
|
+ #define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
710
|
+ #define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
711
|
+ #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
712
|
+
|
|
713
|
+#endif
|
|
714
|
+
|
|
715
|
+/**
|
|
716
|
+ * TWI/I2C BUS
|
|
717
|
+ *
|
|
718
|
+ * This feature is an EXPERIMENTAL feature so it shall not be used on production
|
|
719
|
+ * machines. Enabling this will allow you to send and receive I2C data from slave
|
|
720
|
+ * devices on the bus.
|
|
721
|
+ *
|
|
722
|
+ * ; Example #1
|
|
723
|
+ * ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
|
|
724
|
+ * ; It uses multiple M155 commands with one B<base 10> arg
|
|
725
|
+ * M155 A99 ; Target slave address
|
|
726
|
+ * M155 B77 ; M
|
|
727
|
+ * M155 B97 ; a
|
|
728
|
+ * M155 B114 ; r
|
|
729
|
+ * M155 B108 ; l
|
|
730
|
+ * M155 B105 ; i
|
|
731
|
+ * M155 B110 ; n
|
|
732
|
+ * M155 S1 ; Send the current buffer
|
|
733
|
+ *
|
|
734
|
+ * ; Example #2
|
|
735
|
+ * ; Request 6 bytes from slave device with address 0x63 (99)
|
|
736
|
+ * M156 A99 B5
|
|
737
|
+ *
|
|
738
|
+ * ; Example #3
|
|
739
|
+ * ; Example serial output of a M156 request
|
|
740
|
+ * echo:i2c-reply: from:99 bytes:5 data:hello
|
|
741
|
+ */
|
|
742
|
+
|
|
743
|
+// @section i2cbus
|
|
744
|
+
|
|
745
|
+//#define EXPERIMENTAL_I2CBUS
|
|
746
|
+
|
|
747
|
+#include "Conditionals.h"
|
|
748
|
+#include "SanityCheck.h"
|
|
749
|
+
|
|
750
|
+#endif //CONFIGURATION_ADV_H
|