Browse Source

Merge pull request #2976 from thinkyhead/drop_configurator

Drop the experimental Configurator
Scott Lahteine 8 years ago
parent
commit
d4e7c2d694

+ 0
- 853
Marlin/configurator/config/Configuration.h View File

@@ -1,853 +0,0 @@
1
-#ifndef CONFIGURATION_H
2
-#define CONFIGURATION_H
3
-
4
-#include "boards.h"
5
-#include "macros.h"
6
-
7
-//===========================================================================
8
-//============================= Getting Started =============================
9
-//===========================================================================
10
-/*
11
-Here are some standard links for getting your machine calibrated:
12
- * http://reprap.org/wiki/Calibration
13
- * http://youtu.be/wAL9d7FgInk
14
- * http://calculator.josefprusa.cz
15
- * http://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
16
- * http://www.thingiverse.com/thing:5573
17
- * https://sites.google.com/site/repraplogphase/calibration-of-your-reprap
18
- * http://www.thingiverse.com/thing:298812
19
-*/
20
-
21
-// This configuration file contains the basic settings.
22
-// Advanced settings can be found in Configuration_adv.h
23
-// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
24
-
25
-//===========================================================================
26
-//============================= DELTA Printer ===============================
27
-//===========================================================================
28
-// For a Delta printer replace the configuration files with the files in the
29
-// example_configurations/delta directory.
30
-//
31
-
32
-//===========================================================================
33
-//============================= SCARA Printer ===============================
34
-//===========================================================================
35
-// For a Scara printer replace the configuration files with the files in the
36
-// example_configurations/SCARA directory.
37
-//
38
-
39
-// @section info
40
-
41
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
-  #include "_Version.h"
43
-#else
44
-  #include "Default_Version.h"
45
-#endif
46
-
47
-// User-specified version info of this build to display in [Pronterface, etc] terminal window during
48
-// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
49
-// build by the user have been successfully uploaded into firmware.
50
-#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51
-#define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54
-
55
-// @section machine
56
-
57
-// SERIAL_PORT selects which serial port should be used for communication with the host.
58
-// This allows the connection of wireless adapters (for instance) to non-default port pins.
59
-// Serial port 0 is still used by the Arduino bootloader regardless of this setting.
60
-// :[0,1,2,3,4,5,6,7]
61
-#define SERIAL_PORT 0
62
-
63
-// This determines the communication speed of the printer
64
-// :[2400,9600,19200,38400,57600,115200,250000]
65
-#define BAUDRATE 250000
66
-
67
-// Enable the Bluetooth serial interface on AT90USB devices
68
-//#define BLUETOOTH
69
-
70
-// The following define selects which electronics board you have.
71
-// Please choose the name from boards.h that matches your setup
72
-#ifndef MOTHERBOARD
73
-  #define MOTHERBOARD BOARD_RAMPS_13_EFB
74
-#endif
75
-
76
-// Optional custom name for your RepStrap or other custom machine
77
-// Displayed in the LCD "Ready" message
78
-//#define CUSTOM_MACHINE_NAME "3D Printer"
79
-
80
-// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
81
-// You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
82
-//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
83
-
84
-// This defines the number of extruders
85
-// :[1,2,3,4]
86
-#define EXTRUDERS 1
87
-
88
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
89
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
90
-// For the other hotends it is their distance from the extruder 0 hotend.
91
-//#define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
92
-//#define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis
93
-
94
-//// The following define selects which power supply you have. Please choose the one that matches your setup
95
-// 1 = ATX
96
-// 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
97
-// :{1:'ATX',2:'X-Box 360'}
98
-
99
-#define POWER_SUPPLY 1
100
-
101
-// Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
102
-//#define PS_DEFAULT_OFF
103
-
104
-// @section temperature
105
-
106
-//===========================================================================
107
-//============================= Thermal Settings ============================
108
-//===========================================================================
109
-//
110
-//--NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table
111
-//
112
-//// Temperature sensor settings:
113
-// -2 is thermocouple with MAX6675 (only for sensor 0)
114
-// -1 is thermocouple with AD595
115
-// 0 is not used
116
-// 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup)
117
-// 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
118
-// 3 is Mendel-parts thermistor (4.7k pullup)
119
-// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
120
-// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)
121
-// 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)
122
-// 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)
123
-// 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)
124
-// 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
125
-// 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
126
-// 10 is 100k RS thermistor 198-961 (4.7k pullup)
127
-// 11 is 100k beta 3950 1% thermistor (4.7k pullup)
128
-// 12 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)
129
-// 13 is 100k Hisens 3950  1% up to 300°C for hotend "Simple ONE " & "Hotend "All In ONE"
130
-// 20 is the PT100 circuit found in the Ultimainboard V2.x
131
-// 60 is 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
132
-//
133
-//    1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k
134
-//                          (but gives greater accuracy and more stable PID)
135
-// 51 is 100k thermistor - EPCOS (1k pullup)
136
-// 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
137
-// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)
138
-//
139
-// 1047 is Pt1000 with 4k7 pullup
140
-// 1010 is Pt1000 with 1k pullup (non standard)
141
-// 147 is Pt100 with 4k7 pullup
142
-// 110 is Pt100 with 1k pullup (non standard)
143
-// 998 and 999 are Dummy Tables. They will ALWAYS read 25°C or the temperature defined below.
144
-//     Use it for Testing or Development purposes. NEVER for production machine.
145
-//#define DUMMY_THERMISTOR_998_VALUE 25
146
-//#define DUMMY_THERMISTOR_999_VALUE 100
147
-// :{ '0': "Not used", '4': "10k !! do not use for a hotend. Bad resolution at high temp. !!", '1': "100k / 4.7k - EPCOS", '51': "100k / 1k - EPCOS", '6': "100k / 4.7k EPCOS - Not as accurate as Table 1", '5': "100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '7': "100k / 4.7k Honeywell 135-104LAG-J01", '71': "100k / 4.7k Honeywell 135-104LAF-J01", '8': "100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT", '9': "100k / 4.7k GE Sensing AL03006-58.2K-97-G1", '10': "100k / 4.7k RS 198-961", '11': "100k / 4.7k beta 3950 1%", '12': "100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed)", '13': "100k Hisens 3950  1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE'", '60': "100k Maker's Tool Works Kapton Bed Thermistor beta=3950", '55': "100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '2': "200k / 4.7k - ATC Semitec 204GT-2", '52': "200k / 1k - ATC Semitec 204GT-2", '-2': "Thermocouple + MAX6675 (only for sensor 0)", '-1': "Thermocouple + AD595", '3': "Mendel-parts / 4.7k", '1047': "Pt1000 / 4.7k", '1010': "Pt1000 / 1k (non standard)", '20': "PT100 (Ultimainboard V2.x)", '147': "Pt100 / 4.7k", '110': "Pt100 / 1k (non-standard)", '998': "Dummy 1", '999': "Dummy 2" }
148
-#define TEMP_SENSOR_0 1
149
-#define TEMP_SENSOR_1 0
150
-#define TEMP_SENSOR_2 0
151
-#define TEMP_SENSOR_3 0
152
-#define TEMP_SENSOR_BED 0
153
-
154
-// This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
155
-//#define TEMP_SENSOR_1_AS_REDUNDANT
156
-#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
157
-
158
-// Actual temperature must be close to target for this long before M109 returns success
159
-#define TEMP_RESIDENCY_TIME 10  // (seconds)
160
-#define TEMP_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
161
-#define TEMP_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.
162
-
163
-// The minimal temperature defines the temperature below which the heater will not be enabled It is used
164
-// to check that the wiring to the thermistor is not broken.
165
-// Otherwise this would lead to the heater being powered on all the time.
166
-#define HEATER_0_MINTEMP 5
167
-#define HEATER_1_MINTEMP 5
168
-#define HEATER_2_MINTEMP 5
169
-#define HEATER_3_MINTEMP 5
170
-#define BED_MINTEMP 5
171
-
172
-// When temperature exceeds max temp, your heater will be switched off.
173
-// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
174
-// You should use MINTEMP for thermistor short/failure protection.
175
-#define HEATER_0_MAXTEMP 275
176
-#define HEATER_1_MAXTEMP 275
177
-#define HEATER_2_MAXTEMP 275
178
-#define HEATER_3_MAXTEMP 275
179
-#define BED_MAXTEMP 150
180
-
181
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
182
-//#define EXTRUDER_WATTS (12.0*12.0/6.7) //  P=I^2/R
183
-//#define BED_WATTS (12.0*12.0/1.1)      // P=I^2/R
184
-
185
-//===========================================================================
186
-//============================= PID Settings ================================
187
-//===========================================================================
188
-// PID Tuning Guide here: http://reprap.org/wiki/PID_Tuning
189
-
190
-// Comment the following line to disable PID and enable bang-bang.
191
-#define PIDTEMP
192
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
193
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
194
-#if ENABLED(PIDTEMP)
195
-  //#define PID_DEBUG // Sends debug data to the serial port.
196
-  //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
197
-  //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
198
-  //#define PID_PARAMS_PER_EXTRUDER // Uses separate PID parameters for each extruder (useful for mismatched extruders)
199
-                                    // Set/get with gcode: M301 E[extruder number, 0-2]
200
-  #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
201
-                                  // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
202
-  #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
203
-  #define K1 0.95 //smoothing factor within the PID
204
-
205
-  // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
206
-  // Ultimaker
207
-  #define  DEFAULT_Kp 22.2
208
-  #define  DEFAULT_Ki 1.08
209
-  #define  DEFAULT_Kd 114
210
-
211
-  // MakerGear
212
-  //#define  DEFAULT_Kp 7.0
213
-  //#define  DEFAULT_Ki 0.1
214
-  //#define  DEFAULT_Kd 12
215
-
216
-  // Mendel Parts V9 on 12V
217
-  //#define  DEFAULT_Kp 63.0
218
-  //#define  DEFAULT_Ki 2.25
219
-  //#define  DEFAULT_Kd 440
220
-
221
-#endif // PIDTEMP
222
-
223
-//===========================================================================
224
-//============================= PID > Bed Temperature Control ===============
225
-//===========================================================================
226
-// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis
227
-//
228
-// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.
229
-// If your PID_dT is the default, and correct for your hardware/configuration, that means 7.689Hz,
230
-// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.
231
-// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.
232
-// If your configuration is significantly different than this and you don't understand the issues involved, you probably
233
-// shouldn't use bed PID until someone else verifies your hardware works.
234
-// If this is enabled, find your own PID constants below.
235
-//#define PIDTEMPBED
236
-
237
-//#define BED_LIMIT_SWITCHING
238
-
239
-// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
240
-// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
241
-// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
242
-// so you shouldn't use it unless you are OK with PWM on your bed.  (see the comment on enabling PIDTEMPBED)
243
-#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
244
-
245
-//#define PID_BED_DEBUG // Sends debug data to the serial port.
246
-
247
-#if ENABLED(PIDTEMPBED)
248
-
249
-  #define PID_BED_INTEGRAL_DRIVE_MAX MAX_BED_POWER //limit for the integral term
250
-
251
-  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
252
-  //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
253
-  #define  DEFAULT_bedKp 10.00
254
-  #define  DEFAULT_bedKi .023
255
-  #define  DEFAULT_bedKd 305.4
256
-
257
-  //120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
258
-  //from pidautotune
259
-  //#define  DEFAULT_bedKp 97.1
260
-  //#define  DEFAULT_bedKi 1.41
261
-  //#define  DEFAULT_bedKd 1675.16
262
-
263
-  // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
264
-#endif // PIDTEMPBED
265
-
266
-// @section extruder
267
-
268
-//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
269
-//can be software-disabled for whatever purposes by
270
-#define PREVENT_DANGEROUS_EXTRUDE
271
-//if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.
272
-#define PREVENT_LENGTHY_EXTRUDE
273
-
274
-#define EXTRUDE_MINTEMP 170
275
-#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
276
-
277
-//===========================================================================
278
-//======================== Thermal Runaway Protection =======================
279
-//===========================================================================
280
-
281
-/**
282
- * Thermal Runaway Protection protects your printer from damage and fire if a
283
- * thermistor falls out or temperature sensors fail in any way.
284
- *
285
- * The issue: If a thermistor falls out or a temperature sensor fails,
286
- * Marlin can no longer sense the actual temperature. Since a disconnected
287
- * thermistor reads as a low temperature, the firmware will keep the heater on.
288
- *
289
- * The solution: Once the temperature reaches the target, start observing.
290
- * If the temperature stays too far below the target (hysteresis) for too long,
291
- * the firmware will halt as a safety precaution.
292
- */
293
-
294
-#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
295
-#define THERMAL_PROTECTION_BED     // Enable thermal protection for the heated bed
296
-
297
-//===========================================================================
298
-//============================= Mechanical Settings =========================
299
-//===========================================================================
300
-
301
-// @section machine
302
-
303
-// Uncomment this option to enable CoreXY kinematics
304
-//#define COREXY
305
-
306
-// Uncomment this option to enable CoreXZ kinematics
307
-//#define COREXZ
308
-
309
-// Enable this option for Toshiba steppers
310
-//#define CONFIG_STEPPERS_TOSHIBA
311
-
312
-// @section homing
313
-
314
-// coarse Endstop Settings
315
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
316
-
317
-#if DISABLED(ENDSTOPPULLUPS)
318
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
319
-  //#define ENDSTOPPULLUP_XMAX
320
-  //#define ENDSTOPPULLUP_YMAX
321
-  //#define ENDSTOPPULLUP_ZMAX
322
-  //#define ENDSTOPPULLUP_XMIN
323
-  //#define ENDSTOPPULLUP_YMIN
324
-  //#define ENDSTOPPULLUP_ZMIN
325
-  //#define ENDSTOPPULLUP_ZMIN_PROBE
326
-#endif
327
-
328
-// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
329
-const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
330
-const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
331
-const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
332
-const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
333
-const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
334
-const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
335
-const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
336
-//#define DISABLE_MAX_ENDSTOPS
337
-//#define DISABLE_MIN_ENDSTOPS
338
-
339
-// If you want to enable the Z probe pin, but disable its use, uncomment the line below.
340
-// This only affects a Z probe endstop if you have separate Z min endstop as well and have
341
-// activated Z_MIN_PROBE_ENDSTOP below. If you are using the Z Min endstop on your Z probe,
342
-// this has no effect.
343
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
344
-
345
-// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
346
-// :{0:'Low',1:'High'}
347
-#define X_ENABLE_ON 0
348
-#define Y_ENABLE_ON 0
349
-#define Z_ENABLE_ON 0
350
-#define E_ENABLE_ON 0 // For all extruders
351
-
352
-// Disables axis when it's not being used.
353
-// WARNING: When motors turn off there is a chance of losing position accuracy!
354
-#define DISABLE_X false
355
-#define DISABLE_Y false
356
-#define DISABLE_Z false
357
-
358
-// @section extruder
359
-
360
-#define DISABLE_E false // For all extruders
361
-#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
362
-
363
-// @section machine
364
-
365
-// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
366
-#define INVERT_X_DIR false
367
-#define INVERT_Y_DIR true
368
-#define INVERT_Z_DIR false
369
-
370
-// @section extruder
371
-
372
-// For direct drive extruder v9 set to true, for geared extruder set to false.
373
-#define INVERT_E0_DIR false
374
-#define INVERT_E1_DIR false
375
-#define INVERT_E2_DIR false
376
-#define INVERT_E3_DIR false
377
-
378
-// @section homing
379
-
380
-// ENDSTOP SETTINGS:
381
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
382
-// :[-1,1]
383
-#define X_HOME_DIR -1
384
-#define Y_HOME_DIR -1
385
-#define Z_HOME_DIR -1
386
-
387
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
388
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
389
-
390
-// @section machine
391
-
392
-// Travel limits after homing (units are in mm)
393
-#define X_MIN_POS 0
394
-#define Y_MIN_POS 0
395
-#define Z_MIN_POS 0
396
-#define X_MAX_POS 200
397
-#define Y_MAX_POS 200
398
-#define Z_MAX_POS 200
399
-
400
-//===========================================================================
401
-//========================= Filament Runout Sensor ==========================
402
-//===========================================================================
403
-//#define FILAMENT_RUNOUT_SENSOR // Uncomment for defining a filament runout sensor such as a mechanical or opto endstop to check the existence of filament
404
-                                 // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
405
-                                 // It is assumed that when logic high = filament available
406
-                                 //                    when logic  low = filament ran out
407
-#if ENABLED(FILAMENT_RUNOUT_SENSOR)
408
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
409
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
410
-  #define FILAMENT_RUNOUT_SCRIPT "M600"
411
-#endif
412
-
413
-//===========================================================================
414
-//=========================== Manual Bed Leveling ===========================
415
-//===========================================================================
416
-
417
-//#define MANUAL_BED_LEVELING  // Add display menu option for bed leveling.
418
-//#define MESH_BED_LEVELING    // Enable mesh bed leveling.
419
-
420
-#if ENABLED(MANUAL_BED_LEVELING)
421
-  #define MBL_Z_STEP 0.025  // Step size while manually probing Z axis.
422
-#endif  // MANUAL_BED_LEVELING
423
-
424
-#if ENABLED(MESH_BED_LEVELING)
425
-  #define MESH_MIN_X 10
426
-  #define MESH_MAX_X (X_MAX_POS - MESH_MIN_X)
427
-  #define MESH_MIN_Y 10
428
-  #define MESH_MAX_Y (Y_MAX_POS - MESH_MIN_Y)
429
-  #define MESH_NUM_X_POINTS 3  // Don't use more than 7 points per axis, implementation limited.
430
-  #define MESH_NUM_Y_POINTS 3
431
-  #define MESH_HOME_SEARCH_Z 4  // Z after Home, bed somewhere below but above 0.0.
432
-#endif  // MESH_BED_LEVELING
433
-
434
-//===========================================================================
435
-//============================ Bed Auto Leveling ============================
436
-//===========================================================================
437
-
438
-// @section bedlevel
439
-
440
-//#define AUTO_BED_LEVELING_FEATURE // Delete the comment to enable (remove // at the start of the line)
441
-//#define DEBUG_LEVELING_FEATURE
442
-#define Z_MIN_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.
443
-
444
-#if ENABLED(AUTO_BED_LEVELING_FEATURE)
445
-
446
-  // There are 2 different ways to specify probing locations:
447
-  //
448
-  // - "grid" mode
449
-  //   Probe several points in a rectangular grid.
450
-  //   You specify the rectangle and the density of sample points.
451
-  //   This mode is preferred because there are more measurements.
452
-  //
453
-  // - "3-point" mode
454
-  //   Probe 3 arbitrary points on the bed (that aren't colinear)
455
-  //   You specify the XY coordinates of all 3 points.
456
-
457
-  // Enable this to sample the bed in a grid (least squares solution).
458
-  // Note: this feature generates 10KB extra code size.
459
-  #define AUTO_BED_LEVELING_GRID
460
-
461
-  #if ENABLED(AUTO_BED_LEVELING_GRID)
462
-
463
-    #define LEFT_PROBE_BED_POSITION 15
464
-    #define RIGHT_PROBE_BED_POSITION 170
465
-    #define FRONT_PROBE_BED_POSITION 20
466
-    #define BACK_PROBE_BED_POSITION 170
467
-
468
-    #define MIN_PROBE_EDGE 10 // The Z probe square sides can be no smaller than this.
469
-
470
-    // Set the number of grid points per dimension.
471
-    // You probably don't need more than 3 (squared=9).
472
-    #define AUTO_BED_LEVELING_GRID_POINTS 2
473
-
474
-  #else  // !AUTO_BED_LEVELING_GRID
475
-
476
-      // Arbitrary points to probe.
477
-      // A simple cross-product is used to estimate the plane of the bed.
478
-      #define ABL_PROBE_PT_1_X 15
479
-      #define ABL_PROBE_PT_1_Y 180
480
-      #define ABL_PROBE_PT_2_X 15
481
-      #define ABL_PROBE_PT_2_Y 20
482
-      #define ABL_PROBE_PT_3_X 170
483
-      #define ABL_PROBE_PT_3_Y 20
484
-
485
-  #endif // AUTO_BED_LEVELING_GRID
486
-
487
-  // Offsets to the Z probe relative to the nozzle tip.
488
-  // X and Y offsets must be integers.
489
-  #define X_PROBE_OFFSET_FROM_EXTRUDER -25     // Z probe to nozzle X offset: -left  +right
490
-  #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z probe to nozzle Y offset: -front +behind
491
-  #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z probe to nozzle Z offset: -below (always!)
492
-
493
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
494
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
495
-
496
-  #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
497
-
498
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
499
-  #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
500
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
501
-
502
-//#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.
503
-                                                                            // Useful to retract a deployable Z probe.
504
-
505
-  //#define Z_PROBE_SLED // Turn on if you have a Z probe mounted on a sled like those designed by Charles Bell.
506
-  //#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.
507
-
508
-// If you have enabled the bed auto leveling and are using the same Z probe for Z homing,
509
-// it is highly recommended you let this Z_SAFE_HOMING enabled!!!
510
-
511
-  #define Z_SAFE_HOMING   // This feature is meant to avoid Z homing with Z probe outside the bed area.
512
-                          // When defined, it will:
513
-                          // - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
514
-                          // - If stepper drivers timeout, it will need X and Y homing again before Z homing.
515
-                          // - Position the Z probe in a defined XY point before Z Homing when homing all axis (G28).
516
-                          // - Block Z homing only when the Z probe is outside bed area.
517
-
518
-  #if ENABLED(Z_SAFE_HOMING)
519
-
520
-    #define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2)    // X point for Z homing when homing all axis (G28).
521
-    #define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2)    // Y point for Z homing when homing all axis (G28).
522
-
523
-  #endif
524
-
525
-  // Support for a dedicated Z probe endstop separate from the Z min endstop.
526
-  // If you would like to use both a Z probe and a Z min endstop together,
527
-  // uncomment #define Z_MIN_PROBE_ENDSTOP and read the instructions below.
528
-  // If you still want to use the Z min endstop for homing, disable Z_SAFE_HOMING above.
529
-  // Example: To park the head outside the bed area when homing with G28.
530
-  //
531
-  // WARNING:
532
-  // The Z min endstop will need to set properly as it would without a Z probe
533
-  // to prevent head crashes and premature stopping during a print.
534
-  //
535
-  // To use a separate Z probe endstop, you must have a Z_MIN_PROBE_PIN
536
-  // defined in the pins_XXXXX.h file for your control board.
537
-  // If you are using a servo based Z probe, you will need to enable NUM_SERVOS,
538
-  // Z_ENDSTOP_SERVO_NR and SERVO_ENDSTOP_ANGLES in the R/C SERVO support below.
539
-  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin
540
-  // in the Aux 4 section of the RAMPS board. Use 5V for powered sensors,
541
-  // otherwise connect to ground and D32 for normally closed configuration
542
-  // and 5V and D32 for normally open configurations.
543
-  // Normally closed configuration is advised and assumed.
544
-  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin.
545
-  // Z_MIN_PROBE_PIN is setting the pin to use on the Arduino.
546
-  // Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
547
-  // D32 is currently selected in the RAMPS 1.3/1.4 pin file.
548
-  // All other boards will need changes to the respective pins_XXXXX.h file.
549
-  //
550
-  // WARNING:
551
-  // Setting the wrong pin may have unexpected and potentially disastrous outcomes.
552
-  // Use with caution and do your homework.
553
-  //
554
-  //#define Z_MIN_PROBE_ENDSTOP
555
-
556
-#endif // AUTO_BED_LEVELING_FEATURE
557
-
558
-
559
-// @section homing
560
-
561
-// The position of the homing switches
562
-//#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
563
-//#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
564
-
565
-// Manual homing switch locations:
566
-// For deltabots this means top and center of the Cartesian print volume.
567
-#if ENABLED(MANUAL_HOME_POSITIONS)
568
-  #define MANUAL_X_HOME_POS 0
569
-  #define MANUAL_Y_HOME_POS 0
570
-  #define MANUAL_Z_HOME_POS 0
571
-  //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
572
-#endif
573
-
574
-// @section movement
575
-
576
-/**
577
- * MOVEMENT SETTINGS
578
- */
579
-
580
-#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0}  // set the homing speeds (mm/min)
581
-
582
-// default settings
583
-
584
-#define DEFAULT_AXIS_STEPS_PER_UNIT   {80,80,4000,500}  // default steps per unit for Ultimaker
585
-#define DEFAULT_MAX_FEEDRATE          {300, 300, 5, 25}    // (mm/sec)
586
-#define DEFAULT_MAX_ACCELERATION      {3000,3000,100,10000}    // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
587
-
588
-#define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration in mm/s^2 for printing moves
589
-#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration in mm/s^2 for retracts
590
-#define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration in mm/s^2 for travel (non printing) moves
591
-
592
-// The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
593
-#define DEFAULT_XYJERK                20.0    // (mm/sec)
594
-#define DEFAULT_ZJERK                 0.4     // (mm/sec)
595
-#define DEFAULT_EJERK                 5.0    // (mm/sec)
596
-
597
-
598
-//=============================================================================
599
-//============================= Additional Features ===========================
600
-//=============================================================================
601
-
602
-// @section more
603
-
604
-// Custom M code points
605
-#define CUSTOM_M_CODES
606
-#if ENABLED(CUSTOM_M_CODES)
607
-  #if ENABLED(AUTO_BED_LEVELING_FEATURE)
608
-    #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
609
-    #define Z_PROBE_OFFSET_RANGE_MIN -20
610
-    #define Z_PROBE_OFFSET_RANGE_MAX 20
611
-  #endif
612
-#endif
613
-
614
-// @section extras
615
-
616
-// EEPROM
617
-// The microcontroller can store settings in the EEPROM, e.g. max velocity...
618
-// M500 - stores parameters in EEPROM
619
-// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
620
-// M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
621
-//define this to enable EEPROM support
622
-//#define EEPROM_SETTINGS
623
-
624
-#if ENABLED(EEPROM_SETTINGS)
625
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
626
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
627
-#endif
628
-
629
-//
630
-// M100 Free Memory Watcher
631
-//
632
-//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
633
-
634
-// @section temperature
635
-
636
-// Preheat Constants
637
-#define PLA_PREHEAT_HOTEND_TEMP 180
638
-#define PLA_PREHEAT_HPB_TEMP 70
639
-#define PLA_PREHEAT_FAN_SPEED 0   // Insert Value between 0 and 255
640
-
641
-#define ABS_PREHEAT_HOTEND_TEMP 240
642
-#define ABS_PREHEAT_HPB_TEMP 110
643
-#define ABS_PREHEAT_FAN_SPEED 0   // Insert Value between 0 and 255
644
-
645
-//==============================LCD and SD support=============================
646
-// @section lcd
647
-
648
-// Define your display language below. Replace (en) with your language code and uncomment.
649
-// en, pl, fr, de, es, ru, bg, it, pt, pt-br, fi, an, nl, ca, eu, kana, kana_utf8, cn, test
650
-// See also language.h
651
-#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
652
-
653
-// Choose ONE of these 3 charsets. This has to match your hardware. Ignored for full graphic display.
654
-// To find out what type you have - compile with (test) - upload - click to get the menu. You'll see two typical lines from the upper half of the charset.
655
-// See also documentation/LCDLanguageFont.md
656
-  #define DISPLAY_CHARSET_HD44780_JAPAN        // this is the most common hardware
657
-  //#define DISPLAY_CHARSET_HD44780_WESTERN
658
-  //#define DISPLAY_CHARSET_HD44780_CYRILLIC
659
-
660
-//#define ULTRA_LCD  //general LCD support, also 16x2
661
-//#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
662
-//#define SDSUPPORT // Enable SD Card Support in Hardware Console
663
-// Changed behaviour! If you need SDSUPPORT uncomment it!
664
-//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
665
-//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
666
-//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
667
-//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
668
-//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
669
-//#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
670
-//#define ULTIPANEL  //the UltiPanel as on Thingiverse
671
-//#define SPEAKER // The sound device is a speaker - not a buzzer. A buzzer resonates with his own frequency.
672
-//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
673
-//#define LCD_FEEDBACK_FREQUENCY_HZ 1000         // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
674
-                                                 // 0 to disable buzzer feedback. Test with M300 S<frequency Hz> P<duration ms>
675
-// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
676
-// http://reprap.org/wiki/PanelOne
677
-//#define PANEL_ONE
678
-
679
-// The MaKr3d Makr-Panel with graphic controller and SD support
680
-// http://reprap.org/wiki/MaKr3d_MaKrPanel
681
-//#define MAKRPANEL
682
-
683
-// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
684
-// http://panucatt.com
685
-// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
686
-//#define VIKI2
687
-//#define miniVIKI
688
-
689
-// This is a new controller currently under development.  https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
690
-//
691
-// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
692
-//#define ELB_FULL_GRAPHIC_CONTROLLER
693
-//#define SD_DETECT_INVERTED
694
-
695
-// The RepRapDiscount Smart Controller (white PCB)
696
-// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
697
-//#define REPRAP_DISCOUNT_SMART_CONTROLLER
698
-
699
-// The GADGETS3D G3D LCD/SD Controller (blue PCB)
700
-// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
701
-//#define G3D_PANEL
702
-
703
-// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
704
-// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
705
-//
706
-// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
707
-//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
708
-
709
-// The RepRapWorld REPRAPWORLD_KEYPAD v1.1
710
-// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
711
-//#define REPRAPWORLD_KEYPAD
712
-//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click
713
-
714
-// The Elefu RA Board Control Panel
715
-// http://www.elefu.com/index.php?route=product/product&product_id=53
716
-// REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
717
-//#define RA_CONTROL_PANEL
718
-
719
-// The MakerLab Mini Panel with graphic controller and SD support
720
-// http://reprap.org/wiki/Mini_panel
721
-//#define MINIPANEL
722
-
723
-/**
724
- * I2C Panels
725
- */
726
-
727
-//#define LCD_I2C_SAINSMART_YWROBOT
728
-
729
-// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
730
-//
731
-// This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
732
-// Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
733
-// (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)
734
-// Note: The PANELOLU2 encoder click input can either be directly connected to a pin
735
-//       (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
736
-//#define LCD_I2C_PANELOLU2
737
-
738
-// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
739
-//#define LCD_I2C_VIKI
740
-  
741
-// SSD1306 OLED generic display support
742
-// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
743
-//#define U8GLIB_SSD1306
744
-
745
-// Shift register panels
746
-// ---------------------
747
-// 2 wire Non-latching LCD SR from:
748
-// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
749
-// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
750
-//#define SAV_3DLCD
751
-
752
-// @section extras
753
-
754
-// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
755
-//#define FAST_PWM_FAN
756
-
757
-// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
758
-// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
759
-// is too low, you should also increment SOFT_PWM_SCALE.
760
-//#define FAN_SOFT_PWM
761
-
762
-// Incrementing this by 1 will double the software PWM frequency,
763
-// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
764
-// However, control resolution will be halved for each increment;
765
-// at zero value, there are 128 effective control positions.
766
-#define SOFT_PWM_SCALE 0
767
-
768
-// Temperature status LEDs that display the hotend and bet temperature.
769
-// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
770
-// Otherwise the RED led is on. There is 1C hysteresis.
771
-//#define TEMP_STAT_LEDS
772
-
773
-// M240  Triggers a camera by emulating a Canon RC-1 Remote
774
-// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
775
-//#define PHOTOGRAPH_PIN     23
776
-
777
-// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
778
-//#define SF_ARC_FIX
779
-
780
-// Support for the BariCUDA Paste Extruder.
781
-//#define BARICUDA
782
-
783
-//define BlinkM/CyzRgb Support
784
-//#define BLINKM
785
-
786
-/*********************************************************************\
787
-* R/C SERVO support
788
-* Sponsored by TrinityLabs, Reworked by codexmas
789
-**********************************************************************/
790
-
791
-// Number of servos
792
-//
793
-// If you select a configuration below, this will receive a default value and does not need to be set manually
794
-// set it manually if you have more servos than extruders and wish to manually control some
795
-// leaving it undefined or defining as 0 will disable the servo subsystem
796
-// If unsure, leave commented / disabled
797
-//
798
-//#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
799
-
800
-// Servo Endstops
801
-//
802
-// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
803
-// Use M851 to set the Z probe vertical offset from the nozzle. Store that setting with M500.
804
-//
805
-//#define X_ENDSTOP_SERVO_NR 1
806
-//#define Y_ENDSTOP_SERVO_NR 2
807
-//#define Z_ENDSTOP_SERVO_NR 0
808
-//#define SERVO_ENDSTOP_ANGLES {{0,0}, {0,0}, {70,0}} // X,Y,Z Axis Extend and Retract angles
809
-
810
-// Servo deactivation
811
-//
812
-// With this option servos are powered only during movement, then turned off to prevent jitter.
813
-//#define DEACTIVATE_SERVOS_AFTER_MOVE
814
-
815
-#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE)
816
-  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
817
-  // 300ms is a good value but you can try less delay.
818
-  // If the servo can't reach the requested position, increase it.
819
-  #define SERVO_DEACTIVATION_DELAY 300
820
-#endif
821
-
822
-/**********************************************************************\
823
- * Support for a filament diameter sensor
824
- * Also allows adjustment of diameter at print time (vs  at slicing)
825
- * Single extruder only at this point (extruder 0)
826
- *
827
- * Motherboards
828
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
829
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
830
- * 301 - Rambo  - uses Analog input 3
831
- * Note may require analog pins to be defined for different motherboards
832
- **********************************************************************/
833
-// Uncomment below to enable
834
-//#define FILAMENT_SENSOR
835
-
836
-#define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
837
-#define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
838
-
839
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
840
-#define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
841
-#define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
842
-#define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
843
-
844
-//defines used in the code
845
-#define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
846
-
847
-//When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
848
-//#define FILAMENT_LCD_DISPLAY
849
-
850
-#include "Configuration_adv.h"
851
-#include "thermistortables.h"
852
-
853
-#endif //CONFIGURATION_H

+ 0
- 602
Marlin/configurator/config/Configuration_adv.h View File

@@ -1,602 +0,0 @@
1
-#ifndef CONFIGURATION_ADV_H
2
-#define CONFIGURATION_ADV_H
3
-
4
-#include "Conditionals.h"
5
-
6
-// @section temperature
7
-
8
-//===========================================================================
9
-//=============================Thermal Settings  ============================
10
-//===========================================================================
11
-
12
-#if ENABLED(BED_LIMIT_SWITCHING)
13
-  #define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
14
-#endif
15
-#define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control
16
-
17
-/**
18
- * Thermal Protection parameters
19
- */
20
-#if ENABLED(THERMAL_PROTECTION_HOTENDS)
21
-  #define THERMAL_PROTECTION_PERIOD 40        // Seconds
22
-  #define THERMAL_PROTECTION_HYSTERESIS 4     // Degrees Celsius
23
-
24
-  /**
25
-   * Whenever an M104 or M109 increases the target temperature the firmware will wait for the
26
-   * WATCH_TEMP_PERIOD to expire, and if the temperature hasn't increased by WATCH_TEMP_INCREASE
27
-   * degrees, the machine is halted, requiring a hard reset. This test restarts with any M104/M109,
28
-   * but only if the current temperature is far enough below the target for a reliable test.
29
-   */
30
-  #define WATCH_TEMP_PERIOD 16                // Seconds
31
-  #define WATCH_TEMP_INCREASE 4               // Degrees Celsius
32
-#endif
33
-
34
-#if ENABLED(THERMAL_PROTECTION_BED)
35
-  #define THERMAL_PROTECTION_BED_PERIOD 20    // Seconds
36
-  #define THERMAL_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
37
-#endif
38
-
39
-#if ENABLED(PIDTEMP)
40
-  // this adds an experimental additional term to the heating power, proportional to the extrusion speed.
41
-  // if Kc is chosen well, the additional required power due to increased melting should be compensated.
42
-  #define PID_ADD_EXTRUSION_RATE
43
-  #if ENABLED(PID_ADD_EXTRUSION_RATE)
44
-    #define DEFAULT_Kc (100) //heating power=Kc*(e_speed)
45
-    #define LPQ_MAX_LEN 50
46
-  #endif
47
-#endif
48
-
49
-/**
50
- * Automatic Temperature:
51
- * The hotend target temperature is calculated by all the buffered lines of gcode.
52
- * The maximum buffered steps/sec of the extruder motor is called "se".
53
- * Start autotemp mode with M109 S<mintemp> B<maxtemp> F<factor>
54
- * The target temperature is set to mintemp+factor*se[steps/sec] and is limited by
55
- * mintemp and maxtemp. Turn this off by excuting M109 without F*
56
- * Also, if the temperature is set to a value below mintemp, it will not be changed by autotemp.
57
- * On an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode
58
- */
59
-#define AUTOTEMP
60
-#if ENABLED(AUTOTEMP)
61
-  #define AUTOTEMP_OLDWEIGHT 0.98
62
-#endif
63
-
64
-//Show Temperature ADC value
65
-//The M105 command return, besides traditional information, the ADC value read from temperature sensors.
66
-//#define SHOW_TEMP_ADC_VALUES
67
-
68
-// @section extruder
69
-
70
-//  extruder run-out prevention.
71
-//if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
72
-//#define EXTRUDER_RUNOUT_PREVENT
73
-#define EXTRUDER_RUNOUT_MINTEMP 190
74
-#define EXTRUDER_RUNOUT_SECONDS 30.
75
-#define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament
76
-#define EXTRUDER_RUNOUT_SPEED 1500.  //extrusion speed
77
-#define EXTRUDER_RUNOUT_EXTRUDE 100
78
-
79
-// @section temperature
80
-
81
-//These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
82
-//The measured temperature is defined as "actualTemp = (measuredTemp * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET"
83
-#define TEMP_SENSOR_AD595_OFFSET 0.0
84
-#define TEMP_SENSOR_AD595_GAIN   1.0
85
-
86
-//This is for controlling a fan to cool down the stepper drivers
87
-//it will turn on when any driver is enabled
88
-//and turn off after the set amount of seconds from last driver being disabled again
89
-#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller (-1 to disable)
90
-#define CONTROLLERFAN_SECS 60 //How many seconds, after all motors were disabled, the fan should run
91
-#define CONTROLLERFAN_SPEED 255  // == full speed
92
-
93
-// When first starting the main fan, run it at full speed for the
94
-// given number of milliseconds.  This gets the fan spinning reliably
95
-// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
96
-//#define FAN_KICKSTART_TIME 100
97
-
98
-// This defines the minimal speed for the main fan, run in PWM mode
99
-// to enable uncomment and set minimal PWM speed for reliable running (1-255)
100
-// if fan speed is [1 - (FAN_MIN_PWM-1)] it is set to FAN_MIN_PWM
101
-//#define FAN_MIN_PWM 50
102
-
103
-// @section extruder
104
-
105
-// Extruder cooling fans
106
-// Configure fan pin outputs to automatically turn on/off when the associated
107
-// extruder temperature is above/below EXTRUDER_AUTO_FAN_TEMPERATURE.
108
-// Multiple extruders can be assigned to the same pin in which case
109
-// the fan will turn on when any selected extruder is above the threshold.
110
-#define EXTRUDER_0_AUTO_FAN_PIN -1
111
-#define EXTRUDER_1_AUTO_FAN_PIN -1
112
-#define EXTRUDER_2_AUTO_FAN_PIN -1
113
-#define EXTRUDER_3_AUTO_FAN_PIN -1
114
-#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
115
-#define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
116
-
117
-
118
-//===========================================================================
119
-//=============================Mechanical Settings===========================
120
-//===========================================================================
121
-
122
-// @section homing
123
-
124
-#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
125
-
126
-// @section extras
127
-
128
-//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
129
-
130
-// A single Z stepper driver is usually used to drive 2 stepper motors.
131
-// Uncomment this define to utilize a separate stepper driver for each Z axis motor.
132
-// Only a few motherboards support this, like RAMPS, which have dual extruder support (the 2nd, often unused, extruder driver is used
133
-// to control the 2nd Z axis stepper motor). The pins are currently only defined for a RAMPS motherboards.
134
-// On a RAMPS (or other 5 driver) motherboard, using this feature will limit you to using 1 extruder.
135
-//#define Z_DUAL_STEPPER_DRIVERS
136
-
137
-#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
138
-
139
-  // 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.
140
-  // That way the machine is capable to align the bed during home, since both Z steppers are homed. 
141
-  // There is also an implementation of M666 (software endstops adjustment) to this feature.
142
-  // After Z homing, this adjustment is applied to just one of the steppers in order to align the bed.
143
-  // 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.
144
-  // 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.
145
-  // Play a little bit with small adjustments (0.5mm) and check the behaviour.
146
-  // The M119 (endstops report) will start reporting the Z2 Endstop as well.
147
-
148
-  //#define Z_DUAL_ENDSTOPS
149
-
150
-  #if ENABLED(Z_DUAL_ENDSTOPS)
151
-    #define Z2_MAX_PIN 36                     //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
152
-    const bool Z2_MAX_ENDSTOP_INVERTING = false;
153
-    #define DISABLE_XMAX_ENDSTOP              //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
154
-  #endif
155
-
156
-#endif // Z_DUAL_STEPPER_DRIVERS
157
-
158
-// Same again but for Y Axis.
159
-//#define Y_DUAL_STEPPER_DRIVERS
160
-
161
-#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
162
-  // Define if the two Y drives need to rotate in opposite directions
163
-  #define INVERT_Y2_VS_Y_DIR true
164
-#endif
165
-
166
-// Enable this for dual x-carriage printers.
167
-// A dual x-carriage design has the advantage that the inactive extruder can be parked which
168
-// prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage
169
-// allowing faster printing speeds.
170
-//#define DUAL_X_CARRIAGE
171
-#if ENABLED(DUAL_X_CARRIAGE)
172
-  // Configuration for second X-carriage
173
-  // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
174
-  // the second x-carriage always homes to the maximum endstop.
175
-  #define X2_MIN_POS 80     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
176
-  #define X2_MAX_POS 353    // set maximum to the distance between toolheads when both heads are homed
177
-  #define X2_HOME_DIR 1     // the second X-carriage always homes to the maximum endstop position
178
-  #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position
179
-      // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software
180
-      // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
181
-      // without modifying the firmware (through the "M218 T1 X???" command).
182
-      // Remember: you should set the second extruder x-offset to 0 in your slicer.
183
-
184
-  // Pins for second x-carriage stepper driver (defined here to avoid further complicating pins.h)
185
-  #define X2_ENABLE_PIN 29
186
-  #define X2_STEP_PIN 25
187
-  #define X2_DIR_PIN 23
188
-
189
-  // There are a few selectable movement modes for dual x-carriages using M605 S<mode>
190
-  //    Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
191
-  //                           as long as it supports dual x-carriages. (M605 S0)
192
-  //    Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
193
-  //                           that additional slicer support is not required. (M605 S1)
194
-  //    Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all
195
-  //                           actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
196
-  //                           once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
197
-
198
-  // This is the default power-up mode which can be later using M605.
199
-  #define DEFAULT_DUAL_X_CARRIAGE_MODE 0
200
-
201
-  // Default settings in "Auto-park Mode"
202
-  #define TOOLCHANGE_PARK_ZLIFT   0.2      // the distance to raise Z axis when parking an extruder
203
-  #define TOOLCHANGE_UNPARK_ZLIFT 1        // the distance to raise Z axis when unparking an extruder
204
-
205
-  // Default x offset in duplication mode (typically set to half print bed width)
206
-  #define DEFAULT_DUPLICATION_X_OFFSET 100
207
-
208
-#endif //DUAL_X_CARRIAGE
209
-
210
-// @section homing
211
-
212
-//homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
213
-#define X_HOME_BUMP_MM 5
214
-#define Y_HOME_BUMP_MM 5
215
-#define Z_HOME_BUMP_MM 2
216
-#define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
217
-//#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
218
-
219
-// When G28 is called, this option will make Y home before X
220
-//#define HOME_Y_BEFORE_X
221
-
222
-// @section machine
223
-
224
-#define AXIS_RELATIVE_MODES {false, false, false, false}
225
-
226
-// @section machine
227
-
228
-//By default pololu step drivers require an active high signal. However, some high power drivers require an active low signal as step.
229
-#define INVERT_X_STEP_PIN false
230
-#define INVERT_Y_STEP_PIN false
231
-#define INVERT_Z_STEP_PIN false
232
-#define INVERT_E_STEP_PIN false
233
-
234
-// Default stepper release if idle. Set to 0 to deactivate.
235
-#define DEFAULT_STEPPER_DEACTIVE_TIME 60
236
-
237
-#define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
238
-#define DEFAULT_MINTRAVELFEEDRATE     0.0
239
-
240
-// @section lcd
241
-
242
-#if ENABLED(ULTIPANEL)
243
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
244
-  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
245
-#endif
246
-
247
-// @section extras
248
-
249
-// minimum time in microseconds that a movement needs to take if the buffer is emptied.
250
-#define DEFAULT_MINSEGMENTTIME        20000
251
-
252
-// If defined the movements slow down when the look ahead buffer is only half full
253
-#define SLOWDOWN
254
-
255
-// Frequency limit
256
-// See nophead's blog for more info
257
-// Not working O
258
-//#define XY_FREQUENCY_LIMIT  15
259
-
260
-// Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end
261
-// of the buffer and all stops. This should not be much greater than zero and should only be changed
262
-// if unwanted behavior is observed on a user's machine when running at very slow speeds.
263
-#define MINIMUM_PLANNER_SPEED 0.05// (mm/sec)
264
-
265
-// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
266
-#define MICROSTEP_MODES {16,16,16,16,16} // [1,2,4,8,16]
267
-
268
-// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
269
-#define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
270
-
271
-// uncomment to enable an I2C based DIGIPOT like on the Azteeg X3 Pro
272
-//#define DIGIPOT_I2C
273
-// Number of channels available for I2C digipot, For Azteeg X3 Pro we have 8
274
-#define DIGIPOT_I2C_NUM_CHANNELS 8
275
-// actual motor currents in Amps, need as many here as DIGIPOT_I2C_NUM_CHANNELS
276
-#define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
277
-
278
-//===========================================================================
279
-//=============================Additional Features===========================
280
-//===========================================================================
281
-
282
-#define ENCODER_RATE_MULTIPLIER         // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
283
-#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
284
-#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
285
-
286
-//#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/
287
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
288
-
289
-// @section lcd
290
-
291
-#if ENABLED(SDSUPPORT)
292
-
293
-  // Some RAMPS and other boards don't detect when an SD card is inserted. You can work
294
-  // around this by connecting a push button or single throw switch to the pin defined
295
-  // as SD_DETECT_PIN in your board's pins definitions.
296
-  // This setting should be disabled unless you are using a push button, pulling the pin to ground.
297
-  // Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
298
-  #define SD_DETECT_INVERTED
299
-
300
-  #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
301
-  #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
302
-
303
-  #define SDCARD_RATHERRECENTFIRST  //reverse file order of sd card menu display. Its sorted practically after the file system block order.
304
-  // 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.
305
-  // using:
306
-  //#define MENU_ADDAUTOSTART
307
-
308
-  // Show a progress bar on HD44780 LCDs for SD printing
309
-  //#define LCD_PROGRESS_BAR
310
-
311
-  #if ENABLED(LCD_PROGRESS_BAR)
312
-    // Amount of time (ms) to show the bar
313
-    #define PROGRESS_BAR_BAR_TIME 2000
314
-    // Amount of time (ms) to show the status message
315
-    #define PROGRESS_BAR_MSG_TIME 3000
316
-    // Amount of time (ms) to retain the status message (0=forever)
317
-    #define PROGRESS_MSG_EXPIRE   0
318
-    // Enable this to show messages for MSG_TIME then hide them
319
-    //#define PROGRESS_MSG_ONCE
320
-  #endif
321
-
322
-  // This allows hosts to request long names for files and folders with M33
323
-  //#define LONG_FILENAME_HOST_SUPPORT
324
-
325
-  // This option allows you to abort SD printing when any endstop is triggered.
326
-  // This feature must be enabled with "M540 S1" or from the LCD menu.
327
-  // To have any effect, endstops must be enabled during SD printing.
328
-  // With ENDSTOPS_ONLY_FOR_HOMING you must send "M120" to enable endstops.
329
-  //#define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
330
-
331
-#endif // SDSUPPORT
332
-
333
-// for dogm lcd displays you can choose some additional fonts:
334
-#if ENABLED(DOGLCD)
335
-  // save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
336
-  // we don't have a big font for Cyrillic, Kana
337
-  //#define USE_BIG_EDIT_FONT
338
- 
339
-  // If you have spare 2300Byte of progmem and want to use a 
340
-  // smaller font on the Info-screen uncomment the next line.
341
-  //#define USE_SMALL_INFOFONT
342
-#endif // DOGLCD
343
-
344
-// @section more
345
-
346
-// The hardware watchdog should reset the microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation.
347
-//#define USE_WATCHDOG
348
-
349
-#if ENABLED(USE_WATCHDOG)
350
-// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
351
-// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
352
-//  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.
353
-//#define WATCHDOG_RESET_MANUAL
354
-#endif
355
-
356
-// @section lcd
357
-
358
-// Babystepping enables the user to control the axis in tiny amounts, independently from the normal printing process
359
-// it can e.g. be used to change z-positions in the print startup phase in real-time
360
-// does not respect endstops!
361
-//#define BABYSTEPPING
362
-#if ENABLED(BABYSTEPPING)
363
-  #define BABYSTEP_XY  //not only z, but also XY in the menu. more clutter, more functions
364
-  #define BABYSTEP_INVERT_Z false  //true for inverse movements in Z
365
-  #define BABYSTEP_MULTIPLICATOR 1 //faster movements
366
-#endif
367
-
368
-// @section extruder
369
-
370
-// extruder advance constant (s2/mm3)
371
-//
372
-// advance (steps) = STEPS_PER_CUBIC_MM_E * EXTRUDER_ADVANCE_K * cubic mm per second ^ 2
373
-//
374
-// Hooke's law says:    force = k * distance
375
-// Bernoulli's principle says:  v ^ 2 / 2 + g . h + pressure / density = constant
376
-// so: v ^ 2 is proportional to number of steps we advance the extruder
377
-//#define ADVANCE
378
-
379
-#if ENABLED(ADVANCE)
380
-  #define EXTRUDER_ADVANCE_K .0
381
-  #define D_FILAMENT 2.85
382
-  #define STEPS_MM_E 836
383
-#endif
384
-
385
-// @section extras
386
-
387
-// Arc interpretation settings:
388
-#define MM_PER_ARC_SEGMENT 1
389
-#define N_ARC_CORRECTION 25
390
-
391
-const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
392
-
393
-// @section temperature
394
-
395
-// Control heater 0 and heater 1 in parallel.
396
-//#define HEATERS_PARALLEL
397
-
398
-//===========================================================================
399
-//================================= Buffers =================================
400
-//===========================================================================
401
-
402
-// @section hidden
403
-
404
-// The number of linear motions that can be in the plan at any give time.
405
-// 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.
406
-#if ENABLED(SDSUPPORT)
407
-  #define BLOCK_BUFFER_SIZE 16   // SD,LCD,Buttons take more memory, block buffer needs to be smaller
408
-#else
409
-  #define BLOCK_BUFFER_SIZE 16 // maximize block buffer
410
-#endif
411
-
412
-// @section more
413
-
414
-//The ASCII buffer for receiving from the serial:
415
-#define MAX_CMD_SIZE 96
416
-#define BUFSIZE 4
417
-
418
-// Bad Serial-connections can miss a received command by sending an 'ok'
419
-// Therefore some clients abort after 30 seconds in a timeout.
420
-// Some other clients start sending commands while receiving a 'wait'.
421
-// This "wait" is only sent when the buffer is empty. 1 second is a good value here.
422
-//#define NO_TIMEOUTS 1000 // Milliseconds
423
-
424
-// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
425
-//#define ADVANCED_OK
426
-
427
-// @section fwretract
428
-
429
-// Firmware based and LCD controlled retract
430
-// M207 and M208 can be used to define parameters for the retraction.
431
-// The retraction can be called by the slicer using G10 and G11
432
-// until then, intended retractions can be detected by moves that only extrude and the direction.
433
-// the moves are than replaced by the firmware controlled ones.
434
-
435
-//#define FWRETRACT  //ONLY PARTIALLY TESTED
436
-#if ENABLED(FWRETRACT)
437
-  #define MIN_RETRACT 0.1                //minimum extruded mm to accept a automatic gcode retraction attempt
438
-  #define RETRACT_LENGTH 3               //default retract length (positive mm)
439
-  #define RETRACT_LENGTH_SWAP 13         //default swap retract length (positive mm), for extruder change
440
-  #define RETRACT_FEEDRATE 45            //default feedrate for retracting (mm/s)
441
-  #define RETRACT_ZLIFT 0                //default retract Z-lift
442
-  #define RETRACT_RECOVER_LENGTH 0       //default additional recover length (mm, added to retract length when recovering)
443
-  #define RETRACT_RECOVER_LENGTH_SWAP 0  //default additional swap recover length (mm, added to retract length when recovering from extruder change)
444
-  #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
445
-#endif
446
-
447
-// Add support for experimental filament exchange support M600; requires display
448
-#if ENABLED(ULTIPANEL)
449
-  //#define FILAMENTCHANGEENABLE
450
-  #if ENABLED(FILAMENTCHANGEENABLE)
451
-    #define FILAMENTCHANGE_XPOS 3
452
-    #define FILAMENTCHANGE_YPOS 3
453
-    #define FILAMENTCHANGE_ZADD 10
454
-    #define FILAMENTCHANGE_FIRSTRETRACT -2
455
-    #define FILAMENTCHANGE_FINALRETRACT -100
456
-    #define AUTO_FILAMENT_CHANGE                //This extrude filament until you press the button on LCD
457
-    #define AUTO_FILAMENT_CHANGE_LENGTH 0.04    //Extrusion length on automatic extrusion loop
458
-    #define AUTO_FILAMENT_CHANGE_FEEDRATE 300   //Extrusion feedrate (mm/min) on automatic extrusion loop
459
-  #endif
460
-#endif
461
-
462
-/******************************************************************************\
463
- * enable this section if you have TMC26X motor drivers. 
464
- * you need to import the TMC26XStepper library into the arduino IDE for this
465
- ******************************************************************************/
466
-
467
-// @section tmc
468
-
469
-//#define HAVE_TMCDRIVER
470
-#if ENABLED(HAVE_TMCDRIVER)
471
-
472
-//#define X_IS_TMC
473
-  #define X_MAX_CURRENT 1000  //in mA
474
-  #define X_SENSE_RESISTOR 91 //in mOhms
475
-  #define X_MICROSTEPS 16     //number of microsteps
476
-  
477
-//#define X2_IS_TMC
478
-  #define X2_MAX_CURRENT 1000  //in mA
479
-  #define X2_SENSE_RESISTOR 91 //in mOhms
480
-  #define X2_MICROSTEPS 16     //number of microsteps
481
-  
482
-//#define Y_IS_TMC
483
-  #define Y_MAX_CURRENT 1000  //in mA
484
-  #define Y_SENSE_RESISTOR 91 //in mOhms
485
-  #define Y_MICROSTEPS 16     //number of microsteps
486
-  
487
-//#define Y2_IS_TMC
488
-  #define Y2_MAX_CURRENT 1000  //in mA
489
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
490
-  #define Y2_MICROSTEPS 16     //number of microsteps 
491
-  
492
-//#define Z_IS_TMC
493
-  #define Z_MAX_CURRENT 1000  //in mA
494
-  #define Z_SENSE_RESISTOR 91 //in mOhms
495
-  #define Z_MICROSTEPS 16     //number of microsteps
496
-  
497
-//#define Z2_IS_TMC
498
-  #define Z2_MAX_CURRENT 1000  //in mA
499
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
500
-  #define Z2_MICROSTEPS 16     //number of microsteps
501
-  
502
-//#define E0_IS_TMC
503
-  #define E0_MAX_CURRENT 1000  //in mA
504
-  #define E0_SENSE_RESISTOR 91 //in mOhms
505
-  #define E0_MICROSTEPS 16     //number of microsteps
506
-  
507
-//#define E1_IS_TMC
508
-  #define E1_MAX_CURRENT 1000  //in mA
509
-  #define E1_SENSE_RESISTOR 91 //in mOhms
510
-  #define E1_MICROSTEPS 16     //number of microsteps 
511
-  
512
-//#define E2_IS_TMC
513
-  #define E2_MAX_CURRENT 1000  //in mA
514
-  #define E2_SENSE_RESISTOR 91 //in mOhms
515
-  #define E2_MICROSTEPS 16     //number of microsteps 
516
-  
517
-//#define E3_IS_TMC
518
-  #define E3_MAX_CURRENT 1000  //in mA
519
-  #define E3_SENSE_RESISTOR 91 //in mOhms
520
-  #define E3_MICROSTEPS 16     //number of microsteps   
521
-
522
-#endif
523
-
524
-/******************************************************************************\
525
- * enable this section if you have L6470  motor drivers. 
526
- * you need to import the L6470 library into the arduino IDE for this
527
- ******************************************************************************/
528
-
529
-// @section l6470
530
-
531
-//#define HAVE_L6470DRIVER
532
-#if ENABLED(HAVE_L6470DRIVER)
533
-
534
-//#define X_IS_L6470
535
-  #define X_MICROSTEPS 16     //number of microsteps
536
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
537
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
538
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
539
-  
540
-//#define X2_IS_L6470
541
-  #define X2_MICROSTEPS 16     //number of microsteps
542
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
543
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
544
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
545
-  
546
-//#define Y_IS_L6470
547
-  #define Y_MICROSTEPS 16     //number of microsteps
548
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
549
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
550
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
551
-  
552
-//#define Y2_IS_L6470
553
-  #define Y2_MICROSTEPS 16     //number of microsteps 
554
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
555
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
556
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall 
557
-  
558
-//#define Z_IS_L6470
559
-  #define Z_MICROSTEPS 16     //number of microsteps
560
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
561
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
562
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
563
-  
564
-//#define Z2_IS_L6470
565
-  #define Z2_MICROSTEPS 16     //number of microsteps
566
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
567
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
568
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
569
-  
570
-//#define E0_IS_L6470
571
-  #define E0_MICROSTEPS 16     //number of microsteps
572
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
573
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
574
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
575
-  
576
-//#define E1_IS_L6470
577
-  #define E1_MICROSTEPS 16     //number of microsteps 
578
-  #define E1_MICROSTEPS 16     //number of microsteps
579
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
580
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
581
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
582
-  
583
-//#define E2_IS_L6470
584
-  #define E2_MICROSTEPS 16     //number of microsteps 
585
-  #define E2_MICROSTEPS 16     //number of microsteps
586
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
587
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
588
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
589
-  
590
-//#define E3_IS_L6470
591
-  #define E3_MICROSTEPS 16     //number of microsteps   
592
-  #define E3_MICROSTEPS 16     //number of microsteps
593
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be carefull not to go too high    
594
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
595
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
596
-  
597
-#endif
598
-
599
-#include "Conditionals.h"
600
-#include "SanityCheck.h"
601
-
602
-#endif //CONFIGURATION_ADV_H

+ 0
- 1
Marlin/configurator/config/_htaccess View File

@@ -1 +0,0 @@
1
-Header set Access-Control-Allow-Origin "*"

+ 0
- 64
Marlin/configurator/config/boards.h View File

@@ -1,64 +0,0 @@
1
-#ifndef BOARDS_H
2
-#define BOARDS_H
3
-
4
-#define BOARD_UNKNOWN -1
5
-
6
-#define BOARD_GEN7_CUSTOM       10   // Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
7
-#define BOARD_GEN7_12           11   // Gen7 v1.1, v1.2
8
-#define BOARD_GEN7_13           12   // Gen7 v1.3
9
-#define BOARD_GEN7_14           13   // Gen7 v1.4
10
-#define BOARD_CHEAPTRONIC       2    // Cheaptronic v1.0
11
-#define BOARD_SETHI             20   // Sethi 3D_1
12
-#define BOARD_RAMPS_OLD         3    // MEGA/RAMPS up to 1.2
13
-#define BOARD_RAMPS_13_EFB      33   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
14
-#define BOARD_RAMPS_13_EEB      34   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
15
-#define BOARD_RAMPS_13_EFF      35   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
16
-#define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
17
-#define BOARD_RAMPS_13_SF       38   // RAMPS 1.3 / 1.4 (Power outputs: Spindle, Controller Fan)
18
-#define BOARD_FELIX2            37   // Felix 2.0+ Electronics Board (RAMPS like)
19
-#define BOARD_RIGIDBOARD        42   // Invent-A-Part RigidBoard
20
-#define BOARD_GEN6              5    // Gen6
21
-#define BOARD_GEN6_DELUXE       51   // Gen6 deluxe
22
-#define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
23
-#define BOARD_SANGUINOLOLU_12   62   // Sanguinololu 1.2 and above
24
-#define BOARD_MELZI             63   // Melzi
25
-#define BOARD_STB_11            64   // STB V1.1
26
-#define BOARD_AZTEEG_X1         65   // Azteeg X1
27
-#define BOARD_MELZI_MAKR3D      66   // Melzi with ATmega1284 (MaKr3d version)
28
-#define BOARD_AZTEEG_X3         67   // Azteeg X3
29
-#define BOARD_AZTEEG_X3_PRO     68   // Azteeg X3 Pro
30
-#define BOARD_ULTIMAKER         7    // Ultimaker
31
-#define BOARD_ULTIMAKER_OLD     71   // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
32
-#define BOARD_ULTIMAIN_2        72   // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
33
-#define BOARD_3DRAG             77   // 3Drag Controller
34
-#define BOARD_K8200             78   // Vellemann K8200 Controller (derived from 3Drag Controller)
35
-#define BOARD_TEENSYLU          8    // Teensylu
36
-#define BOARD_RUMBA             80   // Rumba
37
-#define BOARD_PRINTRBOARD       81   // Printrboard (AT90USB1286)
38
-#define BOARD_BRAINWAVE         82   // Brainwave (AT90USB646)
39
-#define BOARD_SAV_MKI           83   // SAV Mk-I (AT90USB1286)
40
-#define BOARD_TEENSY2           84   // Teensy++2.0 (AT90USB1286) - CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84  make
41
-#define BOARD_BRAINWAVE_PRO     85   // Brainwave Pro (AT90USB1286)
42
-#define BOARD_GEN3_PLUS         9    // Gen3+
43
-#define BOARD_GEN3_MONOLITHIC   22   // Gen3 Monolithic Electronics
44
-#define BOARD_MEGATRONICS       70   // Megatronics
45
-#define BOARD_MEGATRONICS_2     701  // Megatronics v2.0
46
-#define BOARD_MINITRONICS       702  // Minitronics v1.0/1.1
47
-#define BOARD_MEGATRONICS_3     703  // Megatronics v3.0
48
-#define BOARD_OMCA_A            90   // Alpha OMCA board
49
-#define BOARD_OMCA              91   // Final OMCA board
50
-#define BOARD_RAMBO             301  // Rambo
51
-#define BOARD_MINIRAMBO         302  // Mini-Rambo
52
-#define BOARD_MEGACONTROLLER    310  // Mega controller
53
-#define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
54
-#define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
55
-#define BOARD_LEAPFROG          999  // Leapfrog
56
-#define BOARD_MKS_BASE          40   // MKS BASE 1.0
57
-#define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
58
-#define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
59
-
60
-#define BOARD_99                99   // This is in pins.h but...?
61
-
62
-#define MB(board) (MOTHERBOARD==BOARD_##board)
63
-
64
-#endif //__BOARDS_H

+ 0
- 228
Marlin/configurator/config/language.h View File

@@ -1,228 +0,0 @@
1
-#ifndef LANGUAGE_H
2
-#define LANGUAGE_H
3
-
4
-#include "Configuration.h"
5
-
6
-#define LANGUAGE_CONCAT(M)       #M
7
-#define GENERATE_LANGUAGE_INCLUDE(M)  LANGUAGE_CONCAT(language_##M.h)
8
-
9
-
10
-// NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
11
-//
12
-//   ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h"
13
-//   ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
14
-// See also documentation/LCDLanguageFont.md
15
-
16
-// Languages
17
-// en       English
18
-// pl       Polish
19
-// fr       French
20
-// de       German
21
-// es       Spanish
22
-// ru       Russian
23
-// bg       Bulgarian
24
-// it       Italian
25
-// pt       Portuguese
26
-// pt-br    Portuguese (Brazil)
27
-// fi       Finnish
28
-// an       Aragonese
29
-// nl       Dutch
30
-// ca       Catalan
31
-// eu       Basque-Euskera
32
-// kana     Japanese
33
-// kana_utf Japanese
34
-// cn       Chinese
35
-
36
-// fallback if no language is set, don't change
37
-#ifndef LANGUAGE_INCLUDE
38
-  #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
39
-#endif
40
-
41
-#if ENABLED(USE_AUTOMATIC_VERSIONING)
42
-  #include "_Version.h"
43
-#else
44
-  #include "Default_Version.h"
45
-#endif
46
-
47
-#define PROTOCOL_VERSION "1.0"
48
-
49
-#if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
50
-  #define MACHINE_NAME "Ultimaker"
51
-  #define SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
52
-#elif MB(RUMBA)
53
-  #define MACHINE_NAME "Rumba"
54
-#elif MB(3DRAG)
55
-  #define MACHINE_NAME "3Drag"
56
-  #define SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
57
-#elif MB(K8200)
58
-  #define MACHINE_NAME "K8200"
59
-  #define SOURCE_CODE_URL "https://github.com/CONSULitAS/Marlin-K8200"
60
-#elif MB(5DPRINT)
61
-  #define MACHINE_NAME "Makibox"
62
-#elif MB(SAV_MKI)
63
-  #define MACHINE_NAME "SAV MkI"
64
-  #define SOURCE_CODE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
65
-#elif !defined(MACHINE_NAME)
66
-  #define MACHINE_NAME "3D Printer"
67
-#endif
68
-
69
-#ifdef CUSTOM_MACHINE_NAME
70
-  #undef MACHINE_NAME
71
-  #define MACHINE_NAME CUSTOM_MACHINE_NAME
72
-#endif
73
-
74
-#ifndef SOURCE_CODE_URL
75
-  #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
76
-#endif
77
-
78
-#ifndef DETAILED_BUILD_VERSION
79
-  #error BUILD_VERSION Information must be specified
80
-#endif
81
-
82
-#ifndef MACHINE_UUID
83
-   #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
84
-#endif
85
-
86
-
87
-#define STRINGIFY_(n) #n
88
-#define STRINGIFY(n) STRINGIFY_(n)
89
-
90
-
91
-// Common LCD messages
92
-
93
-  /* nothing here yet */
94
-
95
-// Common serial messages
96
-#define MSG_MARLIN "Marlin"
97
-
98
-// Serial Console Messages (do not translate those!)
99
-
100
-#define MSG_Enqueueing                      "enqueueing \""
101
-#define MSG_POWERUP                         "PowerUp"
102
-#define MSG_EXTERNAL_RESET                  " External Reset"
103
-#define MSG_BROWNOUT_RESET                  " Brown out Reset"
104
-#define MSG_WATCHDOG_RESET                  " Watchdog Reset"
105
-#define MSG_SOFTWARE_RESET                  " Software Reset"
106
-#define MSG_AUTHOR                          " | Author: "
107
-#define MSG_CONFIGURATION_VER               " Last Updated: "
108
-#define MSG_FREE_MEMORY                     " Free Memory: "
109
-#define MSG_PLANNER_BUFFER_BYTES            "  PlannerBufferBytes: "
110
-#define MSG_OK                              "ok"
111
-#define MSG_WAIT                            "wait"
112
-#define MSG_FILE_SAVED                      "Done saving file."
113
-#define MSG_ERR_LINE_NO                     "Line Number is not Last Line Number+1, Last Line: "
114
-#define MSG_ERR_CHECKSUM_MISMATCH           "checksum mismatch, Last Line: "
115
-#define MSG_ERR_NO_CHECKSUM                 "No Checksum with line number, Last Line: "
116
-#define MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM "No Line Number with checksum, Last Line: "
117
-#define MSG_FILE_PRINTED                    "Done printing file"
118
-#define MSG_BEGIN_FILE_LIST                 "Begin file list"
119
-#define MSG_END_FILE_LIST                   "End file list"
120
-#define MSG_INVALID_EXTRUDER                "Invalid extruder"
121
-#define MSG_INVALID_SOLENOID                "Invalid solenoid"
122
-#define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
123
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
124
-#define MSG_COUNT_X                         " Count X: "
125
-#define MSG_ERR_KILLED                      "Printer halted. kill() called!"
126
-#define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
127
-#define MSG_RESEND                          "Resend: "
128
-#define MSG_UNKNOWN_COMMAND                 "Unknown command: \""
129
-#define MSG_ACTIVE_EXTRUDER                 "Active Extruder: "
130
-#define MSG_X_MIN                           "x_min: "
131
-#define MSG_X_MAX                           "x_max: "
132
-#define MSG_Y_MIN                           "y_min: "
133
-#define MSG_Y_MAX                           "y_max: "
134
-#define MSG_Z_MIN                           "z_min: "
135
-#define MSG_Z_MAX                           "z_max: "
136
-#define MSG_Z2_MAX                          "z2_max: "
137
-#define MSG_Z_PROBE                         "z_probe: "
138
-#define MSG_ERR_MATERIAL_INDEX              "M145 S<index> out of range (0-1)"
139
-#define MSG_ERR_M421_REQUIRES_XYZ           "M421 requires XYZ parameters"
140
-#define MSG_ERR_MESH_INDEX_OOB              "Mesh XY index is out of bounds"
141
-#define MSG_ERR_M428_TOO_FAR                "Too far from reference point"
142
-#define MSG_M119_REPORT                     "Reporting endstop status"
143
-#define MSG_ENDSTOP_HIT                     "TRIGGERED"
144
-#define MSG_ENDSTOP_OPEN                    "open"
145
-#define MSG_HOTEND_OFFSET                   "Hotend offsets:"
146
-
147
-#define MSG_SD_CANT_OPEN_SUBDIR             "Cannot open subdir"
148
-#define MSG_SD_INIT_FAIL                    "SD init fail"
149
-#define MSG_SD_VOL_INIT_FAIL                "volume.init failed"
150
-#define MSG_SD_OPENROOT_FAIL                "openRoot failed"
151
-#define MSG_SD_CARD_OK                      "SD card ok"
152
-#define MSG_SD_WORKDIR_FAIL                 "workDir open failed"
153
-#define MSG_SD_OPEN_FILE_FAIL               "open failed, File: "
154
-#define MSG_SD_FILE_OPENED                  "File opened: "
155
-#define MSG_SD_SIZE                         " Size: "
156
-#define MSG_SD_FILE_SELECTED                "File selected"
157
-#define MSG_SD_WRITE_TO_FILE                "Writing to file: "
158
-#define MSG_SD_PRINTING_BYTE                "SD printing byte "
159
-#define MSG_SD_NOT_PRINTING                 "Not SD printing"
160
-#define MSG_SD_ERR_WRITE_TO_FILE            "error writing to file"
161
-#define MSG_SD_CANT_ENTER_SUBDIR            "Cannot enter subdir: "
162
-
163
-#define MSG_STEPPER_TOO_HIGH                "Steprate too high: "
164
-#define MSG_ENDSTOPS_HIT                    "endstops hit: "
165
-#define MSG_ERR_COLD_EXTRUDE_STOP           " cold extrusion prevented"
166
-#define MSG_ERR_LONG_EXTRUDE_STOP           " too long extrusion prevented"
167
-#define MSG_TOO_COLD_FOR_M600               "M600 Hotend too cold to change filament"
168
-#define MSG_BABYSTEPPING_X                  "Babystepping X"
169
-#define MSG_BABYSTEPPING_Y                  "Babystepping Y"
170
-#define MSG_BABYSTEPPING_Z                  "Babystepping Z"
171
-#define MSG_SERIAL_ERROR_MENU_STRUCTURE     "Error in menu structure"
172
-
173
-#define MSG_ERR_EEPROM_WRITE                "Error writing to EEPROM!"
174
-
175
-// temperature.cpp strings
176
-#define MSG_PID_AUTOTUNE                    "PID Autotune"
177
-#define MSG_PID_AUTOTUNE_START              MSG_PID_AUTOTUNE " start"
178
-#define MSG_PID_AUTOTUNE_FAILED             MSG_PID_AUTOTUNE " failed!"
179
-#define MSG_PID_BAD_EXTRUDER_NUM            MSG_PID_AUTOTUNE_FAILED " Bad extruder number"
180
-#define MSG_PID_TEMP_TOO_HIGH               MSG_PID_AUTOTUNE_FAILED " Temperature too high"
181
-#define MSG_PID_TIMEOUT                     MSG_PID_AUTOTUNE_FAILED " timeout"
182
-#define MSG_BIAS                            " bias: "
183
-#define MSG_D                               " d: "
184
-#define MSG_T_MIN                           " min: "
185
-#define MSG_T_MAX                           " max: "
186
-#define MSG_KU                              " Ku: "
187
-#define MSG_TU                              " Tu: "
188
-#define MSG_CLASSIC_PID                     " Classic PID "
189
-#define MSG_KP                              " Kp: "
190
-#define MSG_KI                              " Ki: "
191
-#define MSG_KD                              " Kd: "
192
-#define MSG_B                               "B:"
193
-#define MSG_T                               "T:"
194
-#define MSG_AT                              " @:"
195
-#define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
196
-#define MSG_PID_DEBUG                       " PID_DEBUG "
197
-#define MSG_PID_DEBUG_INPUT                 ": Input "
198
-#define MSG_PID_DEBUG_OUTPUT                " Output "
199
-#define MSG_PID_DEBUG_PTERM                 " pTerm "
200
-#define MSG_PID_DEBUG_ITERM                 " iTerm "
201
-#define MSG_PID_DEBUG_DTERM                 " dTerm "
202
-#define MSG_PID_DEBUG_CTERM                 " cTerm "
203
-#define MSG_INVALID_EXTRUDER_NUM            " - Invalid extruder number !"
204
-
205
-#define MSG_HEATER_BED                      "bed"
206
-#define MSG_STOPPED_HEATER                  ", system stopped! Heater_ID: "
207
-#define MSG_REDUNDANCY                      "Heater switched off. Temperature difference between temp sensors is too high !"
208
-#define MSG_T_HEATING_FAILED                "Heating failed"
209
-#define MSG_T_THERMAL_RUNAWAY               "Thermal Runaway"
210
-#define MSG_T_MAXTEMP                       "MAXTEMP triggered"
211
-#define MSG_T_MINTEMP                       "MINTEMP triggered"
212
-
213
-// Debug
214
-#define MSG_DEBUG_ECHO                      "DEBUG ECHO ENABLED"
215
-#define MSG_DEBUG_INFO                      "DEBUG INFO ENABLED"
216
-#define MSG_DEBUG_ERRORS                    "DEBUG ERRORS ENABLED"
217
-#define MSG_DEBUG_DRYRUN                    "DEBUG DRYRUN ENABLED"
218
-
219
-// LCD Menu Messages
220
-
221
-#if DISABLED(DISPLAY_CHARSET_HD44780_JAPAN) && DISABLED(DISPLAY_CHARSET_HD44780_WESTERN) && DISABLED(DISPLAY_CHARSET_HD44780_CYRILLIC)
222
-  #define DISPLAY_CHARSET_HD44780_JAPAN
223
-#endif
224
-
225
-#include LANGUAGE_INCLUDE
226
-#include "language_en.h"
227
-
228
-#endif //__LANGUAGE_H

+ 0
- 344
Marlin/configurator/css/configurator.css View File

@@ -1,344 +0,0 @@
1
-/* configurator.css */
2
-/* Styles for Marlin Configurator */
3
-
4
-.clear { clear: both; }
5
-
6
-/* Prevent selection except PRE tags */
7
-* {
8
-    -webkit-touch-callout: none;
9
-    -webkit-user-select: none;
10
-    -khtml-user-select: none;
11
-    -moz-user-select: none;
12
-    -ms-user-select: none;
13
-    user-select: none;
14
-	}
15
-pre {
16
-    -webkit-touch-callout: text;
17
-    -webkit-user-select: text;
18
-    -khtml-user-select: text;
19
-    -moz-user-select: text;
20
-    -ms-user-select: text;
21
-    user-select: text;
22
-	}
23
-
24
-body { margin: 0; padding: 0; background: #56A; color: #000; font-family: monospace; }
25
-#main {
26
-	max-width: 1100px;
27
-	margin: 0 auto 10px;
28
- 	padding: 0 2%; width: 96%;
29
-	}
30
-
31
-h1, h2, h3, h4, h5, h6 { clear: both; }
32
-
33
-h1, p.info { font-family: sans-serif; }
34
-h1 {
35
-	height: 38px;
36
-	margin-bottom: -30px;
37
-	color: #FFF;
38
-	background: transparent url(logo.png) right top no-repeat;
39
-	}
40
-p.info { padding: 0; color: #000; }
41
-p.info span { color: #800; }
42
-
43
-#message { text-align: center; }
44
-#message { width: 80%; margin: 0 auto 0.25em; color: #FF0; }
45
-#message p { padding: 2px 0; font-weight: bold; border-radius: 0.8em; }
46
-#message p.message { color: #080; background: #CFC; }
47
-#message p.error { color: #F00; background: #FF4; }
48
-#message p.warning { color: #FF0; background: #BA4; }
49
-#message p.message span,
50
-#message p.error span,
51
-#message p.warning span {
52
-	color: #A00;
53
-	background: rgba(255, 255, 255, 1);
54
-	border: 1px solid rgba(0,0,0,0.5);
55
-	border-radius: 1em;
56
-	float: right;
57
-	margin-right: 0.5em;
58
-	padding: 0 3px;
59
-	font-family: sans-serif;
60
-	font-size: small;
61
-	position: relative;
62
-	top: -1px;
63
-	}
64
-
65
-#help strong { color: #0DD; }
66
-img { display: none; }
67
-
68
-/* Forms */
69
-
70
-#config_form {
71
-	display: block;
72
-	background: #EEE;
73
-	padding: 6px 20px 20px;
74
-	color: #000;
75
-	position: relative;
76
-	border-radius: 1.5em;
77
-	border-top-left-radius: 0;
78
-	}
79
-fieldset {
80
-	height: 16.1em;
81
-	overflow-y: scroll;
82
-	overflow-x: hidden;
83
-	margin-top: 10px;
84
-	}
85
-label, input, select, textarea { display: block; float: left; margin: 1px 0; }
86
-label.newline, textarea, fieldset { clear: both; }
87
-label {
88
-	width: 120px; /* label area */
89
-	height: 1em;
90
-	padding: 10px 460px 10px 1em;
91
-	margin-right: -450px;
92
-	text-align: right;
93
-	}
94
-label.blocked, label.added.blocked, label.added.blocked.sublabel { color: #AAA; }
95
-
96
-label.added.sublabel {
97
-	width: auto;
98
-	margin: 11px -2.5em 0 1em;
99
-	padding: 0 3em 0 0;
100
-	font-style: italic;
101
-	color: #444;
102
-	}
103
-label+label.added.sublabel {
104
-	margin-left: 0;
105
-	}
106
-
107
-input[type="text"], select { margin: 0.75em 0 0; }
108
-input[type="checkbox"], input[type="radio"], input[type="file"] { margin: 1em 0 0; }
109
-input[type="checkbox"].enabler, input[type="radio"].enabler { margin-left: 1em; }
110
-
111
-input:disabled { color: #BBB; }
112
-
113
-#config_form input[type="text"].subitem { width: 4em; }
114
-#config_form input[type="text"].subitem+.subitem { margin-left: 4px; }
115
-
116
-input[type="text"].added { width: 20em; }
117
-label.added {
118
-	width: 265px; /* label area */
119
-	height: 1em;
120
-	padding: 10px 370px 10px 1em;
121
-	margin-right: -360px;
122
-	text-align: right;
123
-	}
124
-
125
-ul.tabs { padding: 0; list-style: none; }
126
-ul.tabs li { display: inline; }
127
-ul.tabs li a,
128
-ul.tabs li a.active:hover,
129
-ul.tabs li a.active:active {
130
-	display: block;
131
-	float: left;
132
-	background: #1E4059;
133
-	color: #CCC;
134
-	font-size: 110%;
135
-	border-radius: 0.25em 0.25em 0 0;
136
-	margin: 0 4px 0 0;
137
-	padding: 2px 8px;
138
-	text-decoration: none;
139
-	font-family: georgia,"times new roman",times;
140
-	}
141
-ul.tabs li a.active:link,
142
-ul.tabs li a.active:visited {
143
-	background: #DDD;
144
-	color: #06F;
145
-	cursor: default;
146
-	margin-top: -4px;
147
-	padding-bottom: 4px;
148
-	padding-top: 4px;
149
-	}
150
-ul.tabs li a:hover,
151
-ul.tabs li a:active {
152
-	background: #000;
153
-	color: #FFF;
154
-	}
155
-
156
-fieldset { display: none; border: 1px solid #AAA; border-radius: 1em; }
157
-fieldset legend { display: none; }
158
-
159
-.hilightable span {
160
-	display: block;
161
-	float: left;
162
-	width: 100%;
163
-	height: 1.3em;
164
-	background: rgba(225,255,0,1);
165
-	margin: 0 -100% -1em 0;
166
-	}
167
-
168
-#serial_stepper { padding-top: 0.75em; display: block; float: left; }
169
-/*#SERIAL_PORT { display: none; }*/
170
-
171
-/* Tooltips */
172
-
173
-#tooltip {
174
-	display: none;
175
-	max-width: 30em;
176
-	padding: 8px;
177
-	border: 2px solid #73d699;
178
-	border-radius: 1em;
179
-	position: absolute;
180
-	z-index: 999;
181
-	font-family: sans-serif;
182
-	font-size: 85%;
183
-	color: #000;
184
-	line-height: 1.1;
185
-	background: #e2ff99; /* Old browsers */
186
-	background: -moz-linear-gradient(top,  #e2ff99 0%, #73d699 100%); /* FF3.6+ */
187
-	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e2ff99), color-stop(100%,#73d699)); /* Chrome,Safari4+ */
188
-	background: -webkit-linear-gradient(top,  #e2ff99 0%,#73d699 100%); /* Chrome10+,Safari5.1+ */
189
-	background: -o-linear-gradient(top,  #e2ff99 0%,#73d699 100%); /* Opera 11.10+ */
190
-	background: -ms-linear-gradient(top,  #e2ff99 0%,#73d699 100%); /* IE10+ */
191
-	background: linear-gradient(to bottom,  #e2ff99 0%,#73d699 100%); /* W3C */
192
-	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e2ff99', endColorstr='#73d699',GradientType=0 ); /* IE6-9 */
193
-	-webkit-box-shadow: 0px 6px 25px -4px rgba(0,0,0,0.75);
194
-	-moz-box-shadow: 0px 6px 25px -4px rgba(0,0,0,0.75);
195
-	box-shadow: 0px 6px 25px -4px rgba(0,0,0,0.75);
196
-	}
197
-#tooltip>span {
198
-	position: absolute;
199
-	content: "";
200
-	width: 0;
201
-	height: 0;
202
-	border-left: 8px solid transparent;
203
-	border-right: 8px solid transparent;
204
-	border-top: 8px solid #73d699;
205
-	z-index: 999;
206
-	bottom: -10px;
207
-	left: 20px;
208
-	}
209
-#tooltip>strong { color: #00B; }
210
-
211
-/* Tooltips Checkbox */
212
-
213
-#tipson {
214
-	width: auto;
215
-	height: auto;
216
-	padding: 0;
217
-	margin-right: 0;
218
-	float: right;
219
-	font-weight: bold;
220
-	font-size: 100%;
221
-	font-family: helvetica;
222
-	text-align: left;
223
-	cursor: pointer;
224
-	}
225
-#tipson input { float: none; display: inline; cursor: pointer; }
226
-
227
-/* Config Text */
228
-
229
-pre.config {
230
-	height: 25em;
231
-	padding: 10px;
232
-	border: 2px solid #888;
233
-	border-radius: 5px;
234
-	overflow: auto;
235
-	clear: both;
236
-	background-color: #FFF;
237
-	color: #000;
238
-	font-family: "Fira Mono", monospace;
239
-	font-size: small;
240
-	}
241
-
242
-/* Pre Headers */
243
-
244
-h2 {
245
-	width: 100%;
246
-	margin: 12px -300px 4px 0;
247
-	padding: 0;
248
-	float: left;
249
-	}
250
-
251
-/* Disclosure Widget */
252
-
253
-span.disclose, a.download, a.download-all {︎
254
-	display: block;
255
-	float: right;
256
-	margin-top: 12px;
257
-	}
258
-
259
-span.disclose {
260
-	margin-right: -10px; /* total width */
261
-	margin-left: 14px;
262
-	width: 0;
263
-	height: 0;
264
-	position: relative;
265
-	left: 3px;
266
-	top: 3px;
267
-	cursor: pointer;
268
-	border-left: 8px solid transparent;
269
-	border-right: 8px solid transparent;
270
-	border-top: 10px solid #000;
271
-	}
272
-span.disclose.closed {
273
-	margin-right: -8px; /* total width */
274
-	margin-left: 10px;
275
-	left: 0;
276
-	top: 0;
277
-	border-top: 8px solid transparent;
278
-	border-bottom: 8px solid transparent;
279
-	border-right: 10px solid #000;
280
-	}
281
-span.disclose.almost {
282
-    -ms-transform: rotate(45deg); /* IE 9 */
283
-    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
284
-    transform: rotate(45deg);
285
-	}
286
-span.disclose.closed.almost {
287
-	left: 1px;
288
-	top: 3px;
289
-    -ms-transform: rotate(315deg); /* IE 9 */
290
-    -webkit-transform: rotate(315deg); /* Chrome, Safari, Opera */
291
-    transform: rotate(315deg);
292
-	}
293
-
294
-/* Download Button */
295
-
296
-a.download, a.download-all {
297
-	visibility: hidden;
298
-	padding: 2px;
299
-	border: 1px solid #494;
300
-	border-radius: 4px;
301
-	margin: 12px 0 0;
302
-	background: #FFF;
303
-	color: #494;
304
-	font-family: sans-serif;
305
-	font-size: small;
306
-	font-weight: bold;
307
-	text-decoration: none;
308
-	}
309
-a.download-all { margin: 9px 2em 0; color: #449; border-color: #449; }
310
-
311
-input[type="text"].one_of_2 { max-width: 15%; }
312
-input[type="text"].one_of_3 { max-width: 10%; }
313
-input[type="text"].one_of_4 { max-width: 7%; }
314
-
315
-select.one_of_2 { max-width: 15%; }
316
-select.one_of_3 { max-width: 10%; }
317
-select.one_of_4 { max-width: 14%; }
318
-select.one_of_4+span.label+select.one_of_4+span.label { clear: both; margin-left: 265px; padding-left: 1.75em; }
319
-select.one_of_4+span.label+select.one_of_4+span.label+select.one_of_4+span.label { clear: none; margin-left: 1em; padding-left: 0; }
320
-
321
-@media all and (min-width: 1140px) {
322
-
323
-	#main { max-width: 10000px; }
324
-
325
-	fieldset { float: left; width: 50%; height: auto; }
326
-
327
-	#config_text, #config_adv_text { float: right; clear: right; width: 45%; }
328
-
329
-	pre.config { height: 20em; }
330
-
331
-	.disclose { display: none; }
332
-
333
-	input[type="text"].one_of_2 { max-width: 15%; }
334
-	input[type="text"].one_of_3 { max-width: 9%; }
335
-	input[type="text"].one_of_4 { max-width: 8%; }
336
-
337
-	select.one_of_2 { max-width: 15%; }
338
-	select.one_of_3 { max-width: 10%; }
339
-	select.one_of_4 { max-width: 16%; }
340
-
341
-}
342
-
343
-/*label.blocked, .blocked { display: none; }*/
344
-

BIN
Marlin/configurator/css/logo.png View File


+ 0
- 129
Marlin/configurator/index.html View File

@@ -1,129 +0,0 @@
1
-<!DOCTYPE html>
2
-<html>
3
-  <head>
4
-    <meta charset="UTF-8">
5
-    <title>Marlin Firmware Configurator</title>
6
-    <link href='http://fonts.googleapis.com/css?family=Fira+Mono&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
7
-    <script src="js/jquery-2.1.3.min.js"></script>
8
-    <script src="js/binarystring.js"></script>
9
-    <script src="js/binaryfileuploader.js"></script>
10
-    <script src="js/FileSaver.min.js"></script>
11
-    <script src="js/jszip.min.js"></script>
12
-    <script src="js/jcanvas.js"></script>
13
-    <script src="js/jstepper.js"></script>
14
-    <script src="js/configurator.js"></script>
15
-    <link rel="stylesheet" href="css/configurator.css" type="text/css" media="all" />
16
-  </head>
17
-  <body>
18
-    <section id="main">
19
-      <h1>Marlin Configurator</h1>
20
-      <p class="info">Select presets (coming soon), modify, and download.</p>
21
-
22
-      <div id="message"></div>
23
-      <div id="tabs"></div>
24
-
25
-      <form id="config_form">
26
-
27
-        <div id="tooltip"></div>
28
-
29
-        <label>Drop Files:</label><input type="file" id="file-upload" />
30
-        <label id="tipson"><input type="checkbox" checked /> ?</label>
31
-        <a href="" class="download-all">Download Zip</a>
32
-
33
-        <fieldset id="info">
34
-          <legend>Info</legend>
35
-        </fieldset>
36
-
37
-        <fieldset id="machine">
38
-          <legend>Machine</legend>
39
-
40
-          <label class="newline">Serial Port:</label><select name="SERIAL_PORT"></select><div id="serial_stepper"></div>
41
-
42
-          <label>Baud Rate:</label><select name="BAUDRATE"></select>
43
-
44
-          <label>AT90USB BT IF:</label>
45
-            <input name="BLUETOOTH" type="checkbox" value="1" checked />
46
-
47
-          <label class="newline">Motherboard:</label><select name="MOTHERBOARD"></select>
48
-
49
-          <label class="newline">Custom Name:</label><input name="CUSTOM_MACHINE_NAME" type="text" size="14" maxlength="12" value="" />
50
-
51
-          <label class="newline">Machine UUID:</label><input name="MACHINE_UUID" type="text" size="38" maxlength="36" value="" />
52
-
53
-          <label class="newline">Extruders:</label><select name="EXTRUDERS"></select>
54
-
55
-          <label class="newline">Power Supply:</label><select name="POWER_SUPPLY"></select>
56
-
57
-          <label>PS Default Off:</label>
58
-            <input name="PS_DEFAULT_OFF" type="checkbox" value="1" checked />
59
-        </fieldset>
60
-
61
-        <fieldset id="homing">
62
-          <legend>Homing</legend>
63
-        </fieldset>
64
-
65
-        <fieldset id="temperature">
66
-          <legend>Temperature</legend>
67
-          <label class="newline">Temp Sensor 0:</label><select name="TEMP_SENSOR_0"></select>
68
-          <label class="newline">Temp Sensor 1:</label><select name="TEMP_SENSOR_1"></select>
69
-          <label class="newline">Temp Sensor 2:</label><select name="TEMP_SENSOR_2"></select>
70
-          <label class="newline">Bed Temp Sensor:</label><select name="TEMP_SENSOR_BED"></select>
71
-
72
-          <label>Max Diff:</label>
73
-            <input name="MAX_REDUNDANT_TEMP_SENSOR_DIFF" type="text" size="3" maxlength="2" />
74
-
75
-          <label>Temp Residency Time (s):</label>
76
-            <input name="TEMP_RESIDENCY_TIME" type="text" size="3" maxlength="2" />
77
-        </fieldset>
78
-
79
-        <fieldset id="extruder">
80
-          <legend>Extruder</legend>
81
-        </fieldset>
82
-
83
-        <fieldset id="lcd">
84
-          <legend>LCD / SD</legend>
85
-        </fieldset>
86
-
87
-        <fieldset id="bedlevel">
88
-          <legend>Bed Leveling</legend>
89
-        </fieldset>
90
-
91
-        <fieldset id="fwretract">
92
-          <legend>FW Retract</legend>
93
-        </fieldset>
94
-
95
-        <fieldset id="tmc">
96
-          <legend>TMC</legend>
97
-        </fieldset>
98
-
99
-        <fieldset id="l6470">
100
-          <legend>L6470</legend>
101
-        </fieldset>
102
-
103
-        <fieldset id="extras">
104
-          <legend>Extras</legend>
105
-        </fieldset>
106
-
107
-        <fieldset id="more">
108
-          <legend>More…</legend>
109
-        </fieldset>
110
-
111
-        <section id="config_text">
112
-          <h2>Configuration.h</h2>
113
-          <span class="disclose"></span>
114
-          <a href="" class="download">Download</a>
115
-          <pre class="hilightable config"></pre>
116
-        </section>
117
-
118
-        <section id="config_adv_text">
119
-          <h2>Configuration_adv.h</h2>
120
-          <span class="disclose"></span>
121
-          <a href="" class="download">Download</a>
122
-          <pre class="hilightable config"></pre>
123
-        </section>
124
-
125
-        <br class="clear" />
126
-      </form>
127
-    </section>
128
-  </body>
129
-</html>

+ 0
- 2
Marlin/configurator/js/FileSaver.min.js View File

@@ -1,2 +0,0 @@
1
-/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
2
-var saveAs=saveAs||typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(view){"use strict";if(typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var doc=view.document,get_URL=function(){return view.URL||view.webkitURL||view},save_link=doc.createElementNS("http://www.w3.org/1999/xhtml","a"),can_use_save_link="download"in save_link,click=function(node){var event=doc.createEvent("MouseEvents");event.initMouseEvent("click",true,false,view,0,0,0,0,0,false,false,false,false,0,null);node.dispatchEvent(event)},webkit_req_fs=view.webkitRequestFileSystem,req_fs=view.requestFileSystem||webkit_req_fs||view.mozRequestFileSystem,throw_outside=function(ex){(view.setImmediate||view.setTimeout)(function(){throw ex},0)},force_saveable_type="application/octet-stream",fs_min_size=0,arbitrary_revoke_timeout=500,revoke=function(file){var revoker=function(){if(typeof file==="string"){get_URL().revokeObjectURL(file)}else{file.remove()}};if(view.chrome){revoker()}else{setTimeout(revoker,arbitrary_revoke_timeout)}},dispatch=function(filesaver,event_types,event){event_types=[].concat(event_types);var i=event_types.length;while(i--){var listener=filesaver["on"+event_types[i]];if(typeof listener==="function"){try{listener.call(filesaver,event||filesaver)}catch(ex){throw_outside(ex)}}}},FileSaver=function(blob,name){var filesaver=this,type=blob.type,blob_changed=false,object_url,target_view,dispatch_all=function(){dispatch(filesaver,"writestart progress write writeend".split(" "))},fs_error=function(){if(blob_changed||!object_url){object_url=get_URL().createObjectURL(blob)}if(target_view){target_view.location.href=object_url}else{var new_tab=view.open(object_url,"_blank");if(new_tab==undefined&&typeof safari!=="undefined"){view.location.href=object_url}}filesaver.readyState=filesaver.DONE;dispatch_all();revoke(object_url)},abortable=function(func){return function(){if(filesaver.readyState!==filesaver.DONE){return func.apply(this,arguments)}}},create_if_not_found={create:true,exclusive:false},slice;filesaver.readyState=filesaver.INIT;if(!name){name="download"}if(can_use_save_link){object_url=get_URL().createObjectURL(blob);save_link.href=object_url;save_link.download=name;click(save_link);filesaver.readyState=filesaver.DONE;dispatch_all();revoke(object_url);return}if(view.chrome&&type&&type!==force_saveable_type){slice=blob.slice||blob.webkitSlice;blob=slice.call(blob,0,blob.size,force_saveable_type);blob_changed=true}if(webkit_req_fs&&name!=="download"){name+=".download"}if(type===force_saveable_type||webkit_req_fs){target_view=view}if(!req_fs){fs_error();return}fs_min_size+=blob.size;req_fs(view.TEMPORARY,fs_min_size,abortable(function(fs){fs.root.getDirectory("saved",create_if_not_found,abortable(function(dir){var save=function(){dir.getFile(name,create_if_not_found,abortable(function(file){file.createWriter(abortable(function(writer){writer.onwriteend=function(event){target_view.location.href=file.toURL();filesaver.readyState=filesaver.DONE;dispatch(filesaver,"writeend",event);revoke(file)};writer.onerror=function(){var error=writer.error;if(error.code!==error.ABORT_ERR){fs_error()}};"writestart progress write abort".split(" ").forEach(function(event){writer["on"+event]=filesaver["on"+event]});writer.write(blob);filesaver.abort=function(){writer.abort();filesaver.readyState=filesaver.DONE};filesaver.readyState=filesaver.WRITING}),fs_error)}),fs_error)};dir.getFile(name,{create:false},abortable(function(file){file.remove();save()}),abortable(function(ex){if(ex.code===ex.NOT_FOUND_ERR){save()}else{fs_error()}}))}),fs_error)}),fs_error)},FS_proto=FileSaver.prototype,saveAs=function(blob,name){return new FileSaver(blob,name)};FS_proto.abort=function(){var filesaver=this;filesaver.readyState=filesaver.DONE;dispatch(filesaver,"abort")};FS_proto.readyState=FS_proto.INIT=0;FS_proto.WRITING=1;FS_proto.DONE=2;FS_proto.error=FS_proto.onwritestart=FS_proto.onprogress=FS_proto.onwrite=FS_proto.onabort=FS_proto.onerror=FS_proto.onwriteend=null;return saveAs}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof module!=="undefined"&&module.exports){module.exports.saveAs=saveAs}else if(typeof define!=="undefined"&&define!==null&&define.amd!=null){define([],function(){return saveAs})}

+ 0
- 79
Marlin/configurator/js/binaryfileuploader.js View File

@@ -1,79 +0,0 @@
1
-function BinaryFileUploader(o) {
2
-	this.options = null;
3
-
4
-
5
-	this._defaultOptions = {
6
-		element: null, // HTML file element
7
-		onFileLoad: function(file) {
8
-			console.log(file.toString());
9
-		}
10
-	};
11
-
12
-
13
-	this._init = function(o) {
14
-		if (!this.hasFileUploaderSupport()) return;
15
-
16
-		this._verifyDependencies();
17
-
18
-		this.options = this._mergeObjects(this._defaultOptions, o);
19
-		this._verifyOptions();
20
-
21
-		this.addFileChangeListener();
22
-	}
23
-
24
-
25
-	this.hasFileUploaderSupport = function() {
26
-		return !!(window.File && window.FileReader && window.FileList && window.Blob);
27
-	}
28
-
29
-	this.addFileChangeListener = function() {
30
-		this.options.element.addEventListener(
31
-			'change',
32
-			this._bind(this, this.onFileChange)
33
-		);
34
-	}
35
-
36
-	this.onFileChange = function(e) {
37
-		// TODO accept multiple files
38
-		var file = e.target.files[0],
39
-		    reader = new FileReader();
40
-
41
-		reader.onload = this._bind(this, this.onFileLoad);
42
-		reader.readAsBinaryString(file);
43
-	}
44
-
45
-	this.onFileLoad = function(e) {
46
-		var content = e.target.result,
47
-		    string  = new BinaryString(content);
48
-		this.options.onFileLoad(string);
49
-	}
50
-
51
-
52
-	this._mergeObjects = function(starting, override) {
53
-		var merged = starting;
54
-		for (key in override) merged[key] = override[key];
55
-
56
-		return merged;
57
-	}
58
-
59
-	this._verifyOptions = function() {
60
-		if (!(this.options.element && this.options.element.type && this.options.element.type === 'file')) {
61
-			throw 'Invalid element param in options. Must be a file upload DOM element';
62
-		}
63
-
64
-		if (typeof this.options.onFileLoad !== 'function') {
65
-			throw 'Invalid onFileLoad param in options. Must be a function';
66
-		}
67
-	}
68
-
69
-	this._verifyDependencies = function() {
70
-		if (!window.BinaryString) throw 'BinaryString is missing. Check that you\'ve correctly included it';
71
-	}
72
-
73
-	// helper function for binding methods to objects
74
-	this._bind = function(object, method) {
75
-		return function() {return method.apply(object, arguments);};
76
-	}
77
-
78
-	this._init(o);
79
-}

+ 0
- 168
Marlin/configurator/js/binarystring.js View File

@@ -1,168 +0,0 @@
1
-function BinaryString(source) {
2
-	this._source = null;
3
-	this._bytes  = [];
4
-	this._pos    = 0;
5
-	this._length = 0;
6
-
7
-	this._init = function(source) {
8
-		this._source = source;
9
-		this._bytes  = this._stringToBytes(this._source);
10
-		this._length = this._bytes.length;
11
-	}
12
-
13
-	this.current = function() {return this._pos;}
14
-
15
-	this.rewind  = function() {return this.jump(0);}
16
-	this.end     = function() {return this.jump(this.length()  - 1);}
17
-	this.next    = function() {return this.jump(this.current() + 1);}
18
-	this.prev    = function() {return this.jump(this.current() - 1);}
19
-
20
-	this.jump = function(pos) {
21
-		if (pos < 0 || pos >= this.length()) return false;
22
-
23
-		this._pos = pos;
24
-		return true;
25
-	}
26
-
27
-	this.readByte = function(pos) {
28
-		pos = (typeof pos == 'number') ? pos : this.current();
29
-		return this.readBytes(1, pos)[0];
30
-	}
31
-
32
-	this.readBytes = function(length, pos) {
33
-		length = length || 1;
34
-		pos    = (typeof pos == 'number') ? pos : this.current();
35
-
36
-		if (pos          >  this.length() ||
37
-		    pos          <  0             ||
38
-		    length       <= 0             ||
39
-		    pos + length >  this.length() ||
40
-		    pos + length <  0
41
-		) {
42
-			return false;
43
-		}
44
-
45
-		var bytes = [];
46
-		
47
-		for (var i = pos; i < pos + length; i++) {
48
-			bytes.push(this._bytes[i]);
49
-		}
50
-
51
-		return bytes;
52
-	}
53
-
54
-	this.length = function() {return this._length;}
55
-
56
-	this.toString = function() {
57
-		var string = '',
58
-		    length = this.length();
59
-
60
-		for (var i = 0; i < length; i++) {
61
-			string += String.fromCharCode(this.readByte(i));
62
-		}
63
-
64
-		return string;
65
-	}
66
-
67
-	this.toUtf8 = function() {
68
-		var inc    = 0,
69
-		    string = '',
70
-		    length = this.length();
71
-
72
-		// determine if first 3 characters are the BOM
73
-		// then skip them in output if so
74
-		if (length >= 3               &&
75
-		    this.readByte(0) === 0xEF &&
76
-		    this.readByte(1) === 0xBB &&
77
-		    this.readByte(2) === 0xBF
78
-		) {
79
-			inc = 3;
80
-		}
81
-
82
-		for (; inc < length; inc++) {
83
-			var byte1 = this.readByte(inc),
84
-			    byte2 = 0,
85
-			    byte3 = 0,
86
-			    byte4 = 0,
87
-			    code1 = 0,
88
-			    code2 = 0,
89
-			    point = 0;
90
-
91
-			switch (true) {
92
-				// single byte character; same as ascii
93
-				case (byte1 < 0x80):
94
-					code1 = byte1;
95
-					break;
96
-
97
-				// 2 byte character
98
-				case (byte1 >= 0xC2 && byte1 < 0xE0):
99
-					byte2 = this.readByte(++inc);
100
-
101
-					code1 = ((byte1 & 0x1F) << 6) +
102
-					         (byte2 & 0x3F);
103
-					break;
104
-
105
-				// 3 byte character
106
-				case (byte1 >= 0xE0 && byte1 < 0xF0):
107
-					byte2 = this.readByte(++inc);
108
-					byte3 = this.readByte(++inc);
109
-
110
-					code1 = ((byte1 & 0xFF) << 12) +
111
-					        ((byte2 & 0x3F) <<  6) +
112
-					         (byte3 & 0x3F);
113
-					break;
114
-
115
-				// 4 byte character
116
-				case (byte1 >= 0xF0 && byte1 < 0xF5):
117
-					byte2 = this.readByte(++inc);
118
-					byte3 = this.readByte(++inc);
119
-					byte4 = this.readByte(++inc);
120
-
121
-					point = ((byte1 & 0x07) << 18) +
122
-					        ((byte2 & 0x3F) << 12) +
123
-					        ((byte3 & 0x3F) <<  6) +
124
-					         (byte4 & 0x3F)
125
-					point -= 0x10000;
126
-
127
-					code1 = (point >> 10)    + 0xD800;
128
-					code2 = (point &  0x3FF) + 0xDC00;
129
-					break;
130
-
131
-				default:
132
-					throw 'Invalid byte ' + this._byteToString(byte1) + ' whilst converting to UTF-8';
133
-					break;
134
-			}
135
-
136
-			string += (code2) ? String.fromCharCode(code1, code2)
137
-			                  : String.fromCharCode(code1);
138
-		}
139
-
140
-		return string;
141
-	}
142
-
143
-	this.toArray  = function() {return this.readBytes(this.length() - 1, 0);} 
144
-
145
-
146
-	this._stringToBytes = function(str) {
147
-		var bytes = [],
148
-		    chr   = 0;
149
-
150
-		for (var i = 0; i < str.length; i++) {
151
-			chr = str.charCodeAt(i);
152
-			bytes.push(chr & 0xFF);
153
-		}
154
-
155
-		return bytes;
156
-	}
157
-
158
-	this._byteToString = function(byte) {
159
-		var asString = byte.toString(16).toUpperCase();
160
-		while (asString.length < 2) {
161
-			asString = '0' + asString;
162
-		}
163
-
164
-		return '0x' + asString;
165
-	}
166
-
167
-	this._init(source);
168
-}

+ 0
- 1432
Marlin/configurator/js/configurator.js
File diff suppressed because it is too large
View File


+ 0
- 524
Marlin/configurator/js/jcanvas.js View File

@@ -1,524 +0,0 @@
1
-/*!
2
-  jCanvas v2.2.1
3
-  Caleb Evans
4
-  2.2.1 revisions by Thinkyhead
5
-*/
6
-
7
-(function($, document, Math, Number, undefined) {
8
-
9
-// jC global object
10
-var jC = {};
11
-jC.originals = {
12
-	width: 20,
13
-	height: 20,
14
-	cornerRadius: 0,
15
-	fillStyle: 'transparent',
16
-	strokeStyle: 'transparent',
17
-	strokeWidth: 5,
18
-	strokeCap: 'butt',
19
-	strokeJoin: 'miter',
20
-	shadowX: 0,
21
-	shadowY: 0,
22
-	shadowBlur: 10,
23
-	shadowColor: 'transparent',
24
-	x: 0, y: 0,
25
-	x1: 0, y1: 0,
26
-	radius: 10,
27
-	start: 0,
28
-	end: 360,
29
-	ccw: false,
30
-	inDegrees: true,
31
-	fromCenter: true,
32
-	closed: false,
33
-	sides: 3,
34
-	angle: 0,
35
-	text: '',
36
-	font: 'normal 12pt sans-serif',
37
-	align: 'center',
38
-	baseline: 'middle',
39
-	source: '',
40
-	repeat: 'repeat'
41
-};
42
-// Duplicate original defaults
43
-jC.defaults = $.extend({}, jC.originals);
44
-
45
-// Set global properties
46
-function setGlobals(context, map) {
47
-	context.fillStyle = map.fillStyle;
48
-	context.strokeStyle = map.strokeStyle;
49
-	context.lineWidth = map.strokeWidth;
50
-	context.lineCap = map.strokeCap;
51
-	context.lineJoin = map.strokeJoin;
52
-	context.shadowOffsetX = map.shadowX;
53
-	context.shadowOffsetY = map.shadowY;
54
-	context.shadowBlur = map.shadowBlur;
55
-	context.shadowColor = map.shadowColor;
56
-}
57
-
58
-// Close path if chosen
59
-function closePath(context, map) {
60
-	if (map.closed === true) {
61
-		context.closePath();
62
-		context.fill();
63
-		context.stroke();
64
-	} else {
65
-		context.fill();
66
-		context.stroke();
67
-		context.closePath();
68
-	}
69
-}
70
-
71
-// Measure angles in degrees if chosen
72
-function checkUnits(map) {
73
-	if (map.inDegrees === true) {
74
-		return Math.PI / 180;
75
-	} else {
76
-		return 1;
77
-	}
78
-}
79
-
80
-// Set canvas defaults
81
-$.fn.canvas = function(args) {
82
-	// Reset defaults if no value is passed
83
-	if (typeof args === 'undefined') {
84
-		jC.defaults = jC.originals;
85
-	} else {
86
-		jC.defaults = $.extend({}, jC.defaults, args);
87
-	}
88
-	return this;
89
-};
90
-
91
-// Load canvas
92
-$.fn.loadCanvas = function(context) {
93
-	if (typeof context === 'undefined') {context = '2d';}
94
-	return this[0].getContext(context);
95
-};
96
-
97
-// Create gradient
98
-$.fn.gradient = function(args) {
99
-	var ctx = this.loadCanvas(),
100
-		// Specify custom defaults
101
-		gDefaults = {
102
-			x1: 0, y1: 0,
103
-			x2: 0, y2: 0,
104
-			r1: 10, r2: 100
105
-		},
106
-		params = $.extend({}, gDefaults, args),
107
-		gradient, stops = 0, percent, i;
108
-		
109
-	// Create radial gradient if chosen
110
-	if (typeof args.r1 === 'undefined' && typeof args.r2 === 'undefined') {
111
-		gradient = ctx.createLinearGradient(params.x1, params.y1, params.x2, params.y2);
112
-	} else {
113
-		gradient = ctx.createRadialGradient(params.x1, params.y1, params.r1, params.x2, params.y2, params.r2);
114
-	}
115
-	
116
-	// Count number of color stops
117
-	for (i=1; i<=Number.MAX_VALUE; i+=1) {
118
-		if (params['c' + i]) {
119
-			stops += 1;
120
-		} else {
121
-			break;
122
-		}
123
-	}
124
-	
125
-	// Calculate color stop percentages if absent
126
-	for (i=1; i<=stops; i+=1) {
127
-		percent = Math.round((100 / (stops-1)) * (i-1)) / 100;
128
-		if (typeof params['s' + i] === 'undefined') {
129
-			params['s' + i] = percent;
130
-		}
131
-		gradient.addColorStop(params['s' + i], params['c' + i]);
132
-	}
133
-	return gradient;
134
-};
135
-
136
-// Create pattern
137
-$.fn.pattern = function(args) {
138
-	var ctx = this.loadCanvas(),
139
-		params = $.extend({}, jC.defaults, args),
140
-		pattern,
141
-		img = document.createElement('img');
142
-	img.src = params.source;
143
-	
144
-	// Create pattern
145
-	function create() {
146
-		if (img.complete === true) {
147
-			// Create pattern
148
-			pattern = ctx.createPattern(img, params.repeat);
149
-		} else {
150
-			throw "The pattern has not loaded yet";
151
-		}
152
-	}
153
-	try {
154
-		create();
155
-	} catch(error) {
156
-		img.onload = create;
157
-	}
158
-	return pattern;
159
-};
160
-
161
-// Clear canvas
162
-$.fn.clearCanvas = function(args) {
163
-	var ctx = this.loadCanvas(),
164
-		params = $.extend({}, jC.defaults, args);
165
-
166
-	// Draw from center if chosen
167
-	if (params.fromCenter === true) {
168
-		params.x -= params.width / 2;
169
-		params.y -= params.height / 2;
170
-	}
171
-
172
-	// Clear entire canvas if chosen
173
-	ctx.beginPath();
174
-	if (typeof args === 'undefined') {
175
-		ctx.clearRect(0, 0, this.width(), this.height());
176
-	} else {
177
-		ctx.clearRect(params.x, params.y, params.width, params.height);
178
-	} 
179
-	ctx.closePath();
180
-	return this;
181
-};
182
-
183
-// Save canvas
184
-$.fn.saveCanvas = function() {
185
-	var ctx = this.loadCanvas();
186
-	ctx.save();
187
-	return this;
188
-};
189
-
190
-// Restore canvas
191
-$.fn.restoreCanvas = function() {
192
-	var ctx = this.loadCanvas();
193
-	ctx.restore();
194
-	return this;
195
-};
196
-
197
-// Scale canvas
198
-$.fn.scaleCanvas = function(args) {
199
-	var ctx = this.loadCanvas(),
200
-		params = $.extend({}, jC.defaults, args);
201
-	ctx.save();
202
-	ctx.translate(params.x, params.y);
203
-	ctx.scale(params.width, params.height);
204
-	ctx.translate(-params.x, -params.y)
205
-	return this;
206
-};
207
-
208
-// Translate canvas
209
-$.fn.translateCanvas = function(args) {
210
-	var ctx = this.loadCanvas(),
211
-		params = $.extend({}, jC.defaults, args);
212
-	ctx.save();
213
-	ctx.translate(params.x, params.y);		
214
-	return this;
215
-};
216
-
217
-// Rotate canvas
218
-$.fn.rotateCanvas = function(args) {
219
-	var ctx = this.loadCanvas(),
220
-		params = $.extend({}, jC.defaults, args),
221
-		toRad = checkUnits(params);
222
-	
223
-	ctx.save();
224
-	ctx.translate(params.x, params.y);
225
-	ctx.rotate(params.angle * toRad);
226
-	ctx.translate(-params.x, -params.y);
227
-	return this;
228
-};
229
-
230
-// Draw rectangle
231
-$.fn.drawRect = function(args) {
232
-	var ctx = this.loadCanvas(),
233
-		params = $.extend({}, jC.defaults, args),
234
-		toRad = checkUnits(params),
235
-		x1, y1, x2, y2, r;
236
-	setGlobals(ctx, params);
237
-	
238
-	// Draw from center if chosen
239
-	if (params.fromCenter === true) {
240
-		params.x -= params.width / 2;
241
-		params.y -= params.height / 2;
242
-	}
243
-		
244
-	// Draw rounded rectangle if chosen
245
-	if (params.cornerRadius > 0) {
246
-		x1 = params.x;
247
-		y1 = params.y;
248
-		x2 = params.x + params.width;
249
-		y2 = params.y + params.height;
250
-		r = params.cornerRadius;
251
-		if ((x2 - x1) - (2 * r) < 0) {
252
-			r = (x2 - x1) / 2;
253
-		}
254
-		if ((y2 - y1) - (2 * r) < 0) {
255
-			r = (y2 - y1) / 2;
256
-		}
257
-		ctx.beginPath();
258
-		ctx.moveTo(x1+r,y1);
259
-		ctx.lineTo(x2-r,y1);
260
-		ctx.arc(x2-r, y1+r, r, 270*toRad, 360*toRad, false);
261
-		ctx.lineTo(x2,y2-r);
262
-		ctx.arc(x2-r, y2-r, r, 0, 90*toRad, false);
263
-		ctx.lineTo(x1+r,y2);
264
-		ctx.arc(x1+r, y2-r, r, 90*toRad, 180*toRad, false);
265
-		ctx.lineTo(x1,y1+r);
266
-		ctx.arc(x1+r, y1+r, r, 180*toRad, 270*toRad, false);
267
-		ctx.fill();
268
-		ctx.stroke();
269
-		ctx.closePath();
270
-	} else {
271
-		ctx.fillRect(params.x, params.y, params.width, params.height);
272
-		ctx.strokeRect(params.x, params.y, params.width, params.height);
273
-	}
274
-	return this;
275
-};
276
-
277
-// Draw arc
278
-$.fn.drawArc = function(args) {
279
-	var ctx = this.loadCanvas(),
280
-		params = $.extend({}, jC.defaults, args),
281
-		toRad = checkUnits(params);
282
-		setGlobals(ctx, params);
283
-	
284
-	// Draw from center if chosen
285
-	if (params.fromCenter === false) {
286
-		params.x += params.radius;
287
-		params.y += params.radius;
288
-	}
289
-	
290
-	ctx.beginPath();
291
-	ctx.arc(params.x, params.y, params.radius, (params.start*toRad)-(Math.PI/2), (params.end*toRad)-(Math.PI/2), params.ccw);
292
-	// Close path if chosen
293
-	closePath(ctx, params);
294
-	return this;
295
-};
296
-
297
-// Draw ellipse
298
-$.fn.drawEllipse = function(args) {
299
-	var ctx = this.loadCanvas(),
300
-		params = $.extend({}, jC.defaults, args),
301
-		controlW = params.width * (4/3);
302
-		setGlobals(ctx, params);
303
-	
304
-	// Draw from center if chosen
305
-	if (params.fromCenter === false) {
306
-		params.x += params.width / 2;
307
-		params.y += params.height / 2;
308
-	}
309
-	
310
-	// Increment coordinates to prevent negative values
311
-	params.x += 1e-10;
312
-	params.y += 1e-10;
313
-	
314
-	// Create ellipse
315
-	ctx.beginPath();
316
-	ctx.moveTo(params.x, params.y-params.height/2);
317
-	ctx.bezierCurveTo(params.x-controlW/2,params.y-params.height/2,
318
-		params.x-controlW/2,params.y+params.height/2,
319
-		params.x,params.y+params.height/2);
320
-	ctx.bezierCurveTo(params.x+controlW/2,params.y+params.height/2,
321
-		params.x+controlW/2,params.y-params.height/2,
322
-		params.x,params.y-params.height/2);
323
-	ctx.closePath();
324
-	ctx.fill();
325
-	ctx.stroke();
326
-	return this;
327
-};
328
-
329
-// Draw line
330
-$.fn.drawLine = function(args) {
331
-	var ctx = this.loadCanvas(),
332
-		params = $.extend({}, jC.defaults, args),
333
-		max = Number.MAX_VALUE, l,
334
-		lx, ly;
335
-	setGlobals(ctx, params);
336
-	
337
-	// Draw each point
338
-	ctx.beginPath();
339
-	ctx.moveTo(params.x1, params.y1);
340
-	for (l=2; l<max; l+=1) {
341
-		lx = params['x' + l];
342
-		ly = params['y' + l];
343
-		// Stop loop when all points are drawn
344
-		if (typeof lx === 'undefined' || typeof ly === 'undefined') {
345
-			break;
346
-		}
347
-		ctx.lineTo(lx, ly);
348
-	}
349
-	// Close path if chosen
350
-	closePath(ctx, params);
351
-	return this;
352
-};
353
-
354
-// Draw quadratic curve
355
-$.fn.drawQuad = function(args) {
356
-	var ctx = this.loadCanvas(),
357
-		params = $.extend({}, jC.defaults, args),
358
-		max = Number.MAX_VALUE, l,
359
-		lx, ly, lcx, lcy;
360
-	setGlobals(ctx, params);
361
-	
362
-	// Draw each point
363
-	ctx.beginPath();
364
-	ctx.moveTo(params.x1, params.y1);
365
-	for (l=2; l<max; l+=1) {
366
-		lx = params['x' + l];
367
-    if (typeof lx === 'undefined') break;
368
-		ly = params['y' + l];
369
-    if (typeof ly === 'undefined') break;
370
-		lcx = params['cx' + (l-1)];
371
-    if (typeof lcx === 'undefined') break;
372
-		lcy = params['cy' + (l-1)];
373
-    if (typeof lcy === 'undefined') break;
374
-		ctx.quadraticCurveTo(lcx, lcy, lx, ly);
375
-	}
376
-	// Close path if chosen
377
-	closePath(ctx, params);
378
-	return this;
379
-};
380
-
381
-// Draw Bezier curve
382
-$.fn.drawBezier = function(args) {
383
-	var ctx = this.loadCanvas(),
384
-		params = $.extend({}, jC.defaults, args),
385
-		max = Number.MAX_VALUE,
386
-		l=2, lc=1, lx, ly, lcx1, lcy1, lcx2, lcy2, i;
387
-	setGlobals(ctx, params);
388
-
389
-	// Draw each point
390
-	ctx.beginPath();
391
-	ctx.moveTo(params.x1, params.y1);
392
-	for (i=2; i<max; i+=1) {
393
-		lx = params['x' + l];
394
-    if (typeof lx === 'undefined') break;
395
-		ly = params['y' + l];
396
-    if (typeof ly === 'undefined') break;
397
-		lcx1 = params['cx' + lc];
398
-    if (typeof lcx1 === 'undefined') break;
399
-		lcy1 = params['cy' + lc];
400
-    if (typeof lcy1 === 'undefined') break;
401
-		lcx2 = params['cx' + (lc+1)];
402
-    if (typeof lcx2 === 'undefined') break;
403
-		lcy2 = params['cy' + (lc+1)];
404
-    if (typeof lcy2 === 'undefined') break;
405
-		ctx.bezierCurveTo(lcx1, lcy1, lcx2, lcy2, lx, ly);
406
-		l += 1;
407
-		lc += 2;
408
-	}
409
-	// Close path if chosen
410
-	closePath(ctx, params);
411
-	return this;
412
-};
413
-
414
-// Draw text
415
-$.fn.drawText = function(args) {
416
-	var ctx = this.loadCanvas(),
417
-		params = $.extend({}, jC.defaults, args);
418
-	setGlobals(ctx, params);
419
-	
420
-	// Set text-specific properties
421
-	ctx.textBaseline = params.baseline;
422
-	ctx.textAlign = params.align;
423
-	ctx.font = params.font;
424
-	
425
-	ctx.strokeText(params.text, params.x, params.y);
426
-	ctx.fillText(params.text, params.x, params.y);
427
-	return this;
428
-};
429
-
430
-// Draw image
431
-$.fn.drawImage = function(args) {
432
-	var ctx = this.loadCanvas(),
433
-		params = $.extend({}, jC.defaults, args),
434
-		// Define image source
435
-		img = document.createElement('img');
436
-  	img.src = params.source;
437
-	  setGlobals(ctx, params);
438
-
439
-	// Draw image function
440
-	function draw() {
441
-		if (img.complete) {
442
-
443
-  		var scaleFac = img.width / img.height;
444
-
445
-			// If width/height are specified
446
-			if (typeof args.width !== 'undefined' && typeof args.height !== 'undefined') {
447
-				img.width = args.width;
448
-				img.height = args.height;
449
-			// If width is specified
450
-			} else if (typeof args.width !== 'undefined' && typeof args.height === 'undefined') {
451
-				img.width = args.width;
452
-				img.height = img.width / scaleFac;
453
-			// If height is specified
454
-			} else if (typeof args.width === 'undefined' && typeof args.height !== 'undefined') {
455
-				img.height = args.height;
456
-				img.width = img.height * scaleFac;
457
-			}
458
-		
459
-			// Draw from center if chosen
460
-			if (params.fromCenter === true) {
461
-				params.x -= img.width / 2;
462
-				params.y -= img.height / 2;
463
-			}
464
-
465
-			// Draw image
466
-			ctx.drawImage(img, params.x, params.y, img.width, img.height);
467
-		} else {
468
-			throw "The image has not loaded yet.";
469
-		}
470
-	}
471
-
472
-  function dodraw() {
473
-    // console.log("dodraw...");
474
-    try {
475
-  	  // console.log("dodraw...try...");
476
-      draw();
477
-    }
478
-    catch(error) {
479
-      // console.log("dodraw...catch: " + error);
480
-    }
481
-  }
482
-
483
-	// Draw image if already loaded
484
-  // console.log("--------------------");
485
-  // console.log("drawImage " + img.src);
486
-	try {
487
-    // console.log("try...");
488
-		draw();
489
-	} catch(error) {
490
-    // console.log("catch: " + error);
491
-		img.onload = dodraw;
492
-	}
493
-	return this;
494
-};
495
-
496
-// Draw polygon
497
-$.fn.drawPolygon = function(args) {
498
-	var ctx = this.loadCanvas(),
499
-		params = $.extend({}, jC.defaults, args),
500
-		theta, dtheta, x, y,
501
-		toRad = checkUnits(params), i;
502
-	setGlobals(ctx, params);
503
-	
504
-	if (params.sides >= 3) {		
505
-		// Calculate points and draw
506
-		theta = (Math.PI/2) + (Math.PI/params.sides) + (params.angle*toRad);
507
-		dtheta = (Math.PI*2) / params.sides;
508
-		for (i=0; i<params.sides; i+=1) {
509
-			x = params.x + (params.radius * Math.cos(theta)) + 1e-10;
510
-			y = params.y + (params.radius * Math.sin(theta)) + 1e-10;
511
-			if (params.fromCenter === false) {
512
-				x += params.radius;
513
-				y += params.radius;
514
-			}
515
-			ctx.lineTo(x, y);
516
-			theta += dtheta;
517
-		}
518
-		closePath(ctx, params);
519
-	}
520
-	return this;
521
-};
522
-
523
-return window.jCanvas = jC;
524
-}(jQuery, document, Math, Number));

+ 0
- 4
Marlin/configurator/js/jquery-2.1.3.min.js
File diff suppressed because it is too large
View File


+ 0
- 220
Marlin/configurator/js/jstepper.js View File

@@ -1,220 +0,0 @@
1
-/*!
2
- * jQuery "stepper" Plugin
3
- * version 0.0.1
4
- * @requires jQuery v1.3.2 or later
5
- * @requires jCanvas
6
- *
7
- * Authored 2011-06-11 Scott Lahteine (thinkyhead.com)
8
- *
9
- *  A very simple numerical stepper.
10
- *  TODO: place arrows based on div size, make 50/50 width
11
- *
12
- *  Usage example:
13
- *
14
- *  $('#mydiv').jstepper({
15
- *    min: 1,
16
- *    max: 4,
17
- *    val: 1,
18
- *    arrowWidth: 15,
19
- *    arrowHeight: '22px',
20
- *    color: '#FFF',
21
- *    acolor: '#F70',
22
- *    hcolor: '#FF0',
23
- *    id: 'select-me',
24
- *    stepperClass: 'inner',
25
- *    textStyle: {width:'1.5em',fontSize:'20px',textAlign:'center'},
26
- *    onChange: function(v) { },
27
- *  });
28
- *
29
- */
30
-;(function($) {
31
-  var un = 'undefined';
32
-
33
-  $.jstepperArrows = [
34
-    { name:'prev', poly:[[1.0,0],[0,0.5],[1.0,1.0]] },
35
-    { name:'next', poly:[[0,0],[1.0,0.5],[0,1.0]] }
36
-  ];
37
-
38
- 	$.fn.jstepper = function(args) {
39
-
40
-		return this.each(function() {
41
-
42
-      var defaults = {
43
-        min: 1,
44
-        max: null,
45
-        val: null,
46
-        active: true,
47
-        placeholder: null,
48
-        arrowWidth: 0,
49
-        arrowHeight: 0,
50
-        color: '#FFF',
51
-        hcolor: '#FF0',
52
-        acolor: '#F80',
53
-        id: '',
54
-        stepperClass: '',
55
-        textStyle: '',
56
-        onChange: (function(v){ if (typeof console.log !== 'undefined') console.log("val="+v); })
57
-      };
58
-
59
-      args = $.extend(defaults, args || {});
60
-
61
-		  var min = args.min * 1,
62
-          max = (args.max !== null) ? args.max * 1 : min,
63
-          span = max - min + 1,
64
-          val = (args.val !== null) ? args.val * 1 : min,
65
-          active = !args.disabled,
66
-          placeholder = args.placeholder,
67
-          arrowWidth = 1 * args.arrowWidth.toString().replace(/px/,''),
68
-          arrowHeight = 1 * args.arrowHeight.toString().replace(/px/,''),
69
-          color = args.color,
70
-          hcolor = args.hcolor,
71
-          acolor = args.acolor,
72
-			    $prev = $('<a href="#prev" style="cursor:w-resize;"><canvas/></a>'),
73
-			    $marq = $('<div class="number"/>').css({float:'left',textAlign:'center'}),
74
-			    $next = $('<a href="#next" style="cursor:e-resize;"><canvas/></a>'),
75
-			    arrow = [ $prev.find('canvas')[0], $next.find('canvas')[0] ],
76
-			    $stepper = $('<span class="jstepper"/>').append($prev).append($marq).append($next).append('<div style="clear:both;"/>'),
77
-			    onChange = args.onChange;
78
-
79
-      if (args.id) $stepper[0].id = args.id;
80
-      if (args.stepperClass) $stepper.addClass(args.stepperClass);
81
-      if (args.textStyle) $marq.css(args.textStyle);
82
-
83
-      // replace a span, but embed elsewhere
84
-      if (this.tagName == 'SPAN') {
85
-        var previd = this.id;
86
-        $(this).replaceWith($stepper);
87
-        if (previd) $stepper.attr('id',previd);
88
-      }
89
-      else {
90
-        $(this).append($stepper);
91
-      }
92
-
93
-      // hook to call functions on this object
94
-      $stepper[0].ui = {
95
-
96
-        refresh: function() {
97
-          this.updateNumber();
98
-          this._drawArrow(0, 1);
99
-          this._drawArrow(1, 1);
100
-          return this;
101
-        },
102
-
103
-        _drawArrow: function(i,state) {
104
-          var $elm = $(arrow[i]),
105
-              desc = $.jstepperArrows[i],
106
-              fillStyle = (state == 2) ? hcolor : (state == 3) ? acolor : color,
107
-              draw = { fillStyle: fillStyle },
108
-              w = $elm.width(), h = $elm.height();
109
-
110
-          if (w <= 0) w = $elm.attr('width');
111
-          if (h <= 0) h = $elm.attr('height');
112
-
113
-          $.each(desc.poly,function(i,v){
114
-            ++i;
115
-            draw['x'+i] = v[0] * w;
116
-            draw['y'+i] = v[1] * h;
117
-          });
118
-          $elm.restoreCanvas().clearCanvas().drawLine(draw);
119
-        },
120
-
121
-        updateNumber: function() {
122
-          $marq.html((active || placeholder === null) ? val.toString() : placeholder);
123
-          return this;
124
-        },
125
-
126
-        _doclick: function(i) {
127
-          this.add(i ? 1 : -1);
128
-          this._drawArrow(i, 3);
129
-          var self = this;
130
-          setTimeout(function(){ self._drawArrow(i, 2); }, 50);
131
-        },
132
-
133
-        add: function(x) {
134
-          val = (((val - min) + x + span) % span) + min;
135
-          this.updateNumber();
136
-          this.didChange(val);
137
-          return this;
138
-        },
139
-
140
-        min: function(v) {
141
-          if (typeof v === un) return min;
142
-          this.setRange(v,max);
143
-          return this;
144
-        },
145
-
146
-        max: function(v) {
147
-          if (typeof v === un) return max;
148
-          this.setRange(min,v);
149
-          return this;
150
-        },
151
-
152
-        val: function(v) {
153
-          if (typeof v === un) return val;
154
-          val = (((v - min) + span) % span) + min;
155
-          this.updateNumber();
156
-          return this;
157
-        },
158
-
159
-        setRange: function(lo, hi, ini) {
160
-          if (lo > hi) hi = (lo += hi -= lo) - hi;
161
-          min = lo; max = hi; span = hi - lo + 1;
162
-          if (typeof ini !== un) val = ini;
163
-          if (val < min) val = min;
164
-          if (val > max) val = max;
165
-          this.updateNumber();
166
-          return this;
167
-        },
168
-
169
-        active: function(a) {
170
-          if (typeof a === un) return active;
171
-          (active = a) ? $marq.removeClass('inactive') : $marq.addClass('inactive');
172
-          this.updateNumber();
173
-          return this;
174
-        },
175
-
176
-        disable: function() { this.active(false); return this; },
177
-        enable: function() { this.active(true); return this; },
178
-
179
-        clearPlaceholder: function() {
180
-          this.setPlaceholder(null);
181
-          return this;
182
-        },
183
-        setPlaceholder: function(p) {
184
-          placeholder = p;
185
-          if (!active) this.updateNumber();
186
-          return this;
187
-        },
188
-
189
-        didChange: onChange
190
-
191
-      };
192
-
193
-      // set hover and click for each arrow
194
-      $.each($.jstepperArrows, function(i,desc) {
195
-        var $elm = $(arrow[i]),
196
-            w = arrowWidth ? arrowWidth : $elm.width() ? $elm.width() : 15,
197
-            h = arrowHeight ? arrowHeight : $elm.height() ? $elm.height() : 24;
198
-        $elm[0]._index = i;
199
-        $elm
200
-          .css({float:'left'})
201
-          .attr({width:w,height:h,'class':desc.name})
202
-          .hover(
203
-            function(e) { $stepper[0].ui._drawArrow(e.target._index, 2); },
204
-            function(e) { $stepper[0].ui._drawArrow(e.target._index, 1); }
205
-          )
206
-          .click(function(e){
207
-            $stepper[0].ui._doclick(e.target._index);
208
-            return false;
209
-          });
210
-      });
211
-
212
-      // init the visuals first time
213
-  		$stepper[0].ui.refresh();
214
-
215
-		}); // this.each
216
-
217
-  }; // $.fn.jstepper
218
-
219
-})( jQuery );
220
-

+ 0
- 14
Marlin/configurator/js/jszip.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save