Browse Source

merged SBUBA82 and Justblair

Erik van der Zalm 13 years ago
parent
commit
d298dd121f

+ 18
- 11
Marlin/Configuration.h View File

26
 // Gen7 v1.3 = 79
26
 // Gen7 v1.3 = 79
27
 // Teensylu = 8,
27
 // Teensylu = 8,
28
 // Gen3+ =9
28
 // Gen3+ =9
29
-#define MOTHERBOARD 77
29
+#define MOTHERBOARD 7
30
 
30
 
31
 //===========================================================================
31
 //===========================================================================
32
 //=============================Thermal Settings  ============================
32
 //=============================Thermal Settings  ============================
44
 // 6 is EPCOS 100k
44
 // 6 is EPCOS 100k
45
 // 7 is 100k Honeywell thermistor 135-104LAG-J01
45
 // 7 is 100k Honeywell thermistor 135-104LAG-J01
46
 
46
 
47
-#define TEMP_SENSOR_0 6
47
+#define TEMP_SENSOR_0 -1
48
 #define TEMP_SENSOR_1 0
48
 #define TEMP_SENSOR_1 0
49
 #define TEMP_SENSOR_2 0
49
 #define TEMP_SENSOR_2 0
50
 #define TEMP_SENSOR_BED 1
50
 #define TEMP_SENSOR_BED 1
51
 
51
 
52
 // Actual temperature must be close to target for this long before M109 returns success
52
 // Actual temperature must be close to target for this long before M109 returns success
53
-#define TEMP_RESIDENCY_TIME 30  // (seconds)
53
+#define TEMP_RESIDENCY_TIME 10	// 30  // (seconds) 30 seconds was too long
54
 #define TEMP_HYSTERESIS 3       // (C�) range of +/- temperatures considered "close" to the target one
54
 #define TEMP_HYSTERESIS 3       // (C�) range of +/- temperatures considered "close" to the target one
55
 
55
 
56
 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
56
 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
128
 #define DISABLE_E false // For all extruders
128
 #define DISABLE_E false // For all extruders
129
 
129
 
130
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
130
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
131
-#define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
131
+#define INVERT_Y_DIR true    // for Mendel set to true, for Orca set to false
132
 #define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
132
 #define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
133
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
133
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
134
 #define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
134
 #define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
142
 
142
 
143
 #define min_software_endstops false //If true, axis won't move to coordinates less than zero.
143
 #define min_software_endstops false //If true, axis won't move to coordinates less than zero.
144
 #define max_software_endstops true  //If true, axis won't move to coordinates greater than the defined lengths below.
144
 #define max_software_endstops true  //If true, axis won't move to coordinates greater than the defined lengths below.
145
-#define X_MAX_LENGTH 205
146
-#define Y_MAX_LENGTH 205
147
-#define Z_MAX_LENGTH 200
145
+#define X_MAX_LENGTH 175
146
+#define Y_MAX_LENGTH 185
147
+#define Z_MAX_LENGTH 90
148
 
148
 
149
 //// MOVEMENT SETTINGS
149
 //// MOVEMENT SETTINGS
150
 #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
150
 #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
151
-#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0}  // set the homing speeds (mm/min)
151
+#define HOMING_FEEDRATE {1500, 1500, 80, 0} // {50*60, 50*60, 4*60, 0}  // set the homing speeds (mm/min)
152
 
152
 
153
 // default settings 
153
 // default settings 
154
 
154
 
155
-#define DEFAULT_AXIS_STEPS_PER_UNIT   {80,80,2560,760*1.1}                    // default steps per unit for ultimaker 
155
+#define DEFAULT_AXIS_STEPS_PER_UNIT   {78.7402,78.7402,200*8/3,760*1.1}                    // default steps per unit for ultimaker 
156
 #define DEFAULT_MAX_FEEDRATE          {500, 500, 5, 45}    // (mm/sec)    
156
 #define DEFAULT_MAX_FEEDRATE          {500, 500, 5, 45}    // (mm/sec)    
157
 #define DEFAULT_MAX_ACCELERATION      {9000,9000,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.
157
 #define DEFAULT_MAX_ACCELERATION      {9000,9000,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.
158
 
158
 
159
-#define DEFAULT_ACCELERATION          3000    // X, Y, Z and E max acceleration in mm/s^2 for printing moves 
160
-#define DEFAULT_RETRACT_ACCELERATION  3000   // X, Y, Z and E max acceleration in mm/s^2 for r retracts
159
+#define DEFAULT_ACCELERATION          1500	// 3000    // X, Y, Z and E max acceleration in mm/s^2 for printing moves 
160
+#define DEFAULT_RETRACT_ACCELERATION  1500	// 3000   // X, Y, Z and E max acceleration in mm/s^2 for r retracts
161
 
161
 
162
 // 
162
 // 
163
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
163
 #define DEFAULT_XYJERK                20.0    // (mm/sec)
182
 //#define ULTRA_LCD  //general lcd support, also 16x2
182
 //#define ULTRA_LCD  //general lcd support, also 16x2
183
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
183
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
184
 
184
 
185
+//#define ULTIPANEL
186
+// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
187
+// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT 
188
+// in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
189
+// be commented out otherwise
190
+#define SDCARDDETECTINVERTED 
191
+
185
 #define ULTIPANEL
192
 #define ULTIPANEL
186
 #ifdef ULTIPANEL
193
 #ifdef ULTIPANEL
187
   #define NEWPANEL  //enable this if you have a click-encoder panel
194
   #define NEWPANEL  //enable this if you have a click-encoder panel

BIN
Marlin/Debug/CL.read.1.tlog View File


BIN
Marlin/Debug/CL.write.1.tlog View File


+ 2
- 0
Marlin/Debug/Marlin.lastbuildstate View File

1
+#v4.0:v100
2
+Debug|Win32|C:\Users\Blair\Desktop\Marlin_v1\Marlin\|

+ 1042
- 0
Marlin/Debug/Marlin.log
File diff suppressed because it is too large
View File


+ 0
- 0
Marlin/Debug/Marlin.unsuccessfulbuild View File


BIN
Marlin/Debug/cl.command.1.tlog View File


BIN
Marlin/Debug/vc100.idb View File


BIN
Marlin/Debug/vc100.pdb View File


+ 1
- 0
Marlin/Marlin.pde View File

35
 #include "cardreader.h"
35
 #include "cardreader.h"
36
 #include "watchdog.h"
36
 #include "watchdog.h"
37
 #include "EEPROMwrite.h"
37
 #include "EEPROMwrite.h"
38
+#include "language.h"
38
 
39
 
39
 #define VERSION_STRING  "1.0.0 RC1"
40
 #define VERSION_STRING  "1.0.0 RC1"
40
 
41
 

BIN
Marlin/ipch/marlin-7ce658c4/marlin-4b8a948f.ipch View File


+ 318
- 0
Marlin/language.h View File

1
+#ifndef LANGUAGE_H
2
+#define LANGUAGE_H
3
+
4
+// Languages
5
+// 1  Custom (For you to add your own messages)
6
+// 2  English 
7
+// 3  French	(Waiting translation)
8
+// 4  German	(Waiting translation)
9
+// 5  Etc
10
+
11
+#define LANGUAGE_CHOICE 1  // Pick your language from the list above
12
+
13
+#if LANGUAGE_CHOICE == 1
14
+
15
+// LCD Menu Messages
16
+
17
+	#define WELCOME_MSG "RepRap Ready."
18
+	#define MSG_SD_INSERTED "Card Ready"
19
+	#define MSG_SD_REMOVED "Card Initiate"
20
+	#define MSG_MAIN " Main \003"
21
+	#define MSG_AUTOSTART " Autostart"
22
+	#define MSG_DISABLE_STEPPERS " Disable Steppers"
23
+	#define MSG_AUTO_HOME " Auto Home"
24
+	#define MSG_SET_ORIGIN " Set Origin"
25
+	#define MSG_PREHEAT " Preheat"
26
+	#define MSG_COOLDOWN " Cooldown"
27
+	#define MSG_EXTRUDE " Extrude"
28
+	#define MSG_SPEED " Speed:"
29
+	#define MSG_NOZZLE " \002Nozzle:"
30
+	#define MSG_BED " \002Bed:"
31
+	#define MSG_FAN_SPEED " Fan speed:"
32
+	#define MSG_FLOW " Flow:"
33
+	#define MSG_CONTROL " Control \003"
34
+	#define MSG_MIN " \002 Min:"
35
+	#define MSG_MAX " \002 Max:"
36
+	#define MSG_FACTOR " \002 Fact:"
37
+	#define MSG_AUTOTEMP " Autotemp:"
38
+	#define MSG_ON "On "
39
+	#define MSG_OFF "Off"
40
+	#define MSG_PID_P " PID-P: "
41
+	#define MSG_PID_I " PID-I: "
42
+	#define MSG_PID_D " PID-D: "
43
+	#define MSG_PID_C " PID-C: "
44
+	#define MSG_ACC  " Acc:"
45
+	#define MSG_VXY_JERK " Vxy-jerk: "
46
+	#define MSG_VMAX " Vmax "
47
+	#define MSG_X "x:"
48
+	#define MSG_Y "y:"
49
+	#define MSG_Z "z:"
50
+	#define MSG_E "e:"
51
+	#define MSG_VMIN " Vmin:"
52
+	#define MSG_VTRAV_MIN " VTrav min:"
53
+	#define MSG_AMAX " Amax "
54
+	#define MSG_A_RETRACT " A-retract:"
55
+	#define MSG_ESTEPS " Esteps/mm:"
56
+	#define MSG_MAIN_WIDE " Main        \003"
57
+	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
58
+	#define MSG_MOTION_WIDE " Motion      \x7E"
59
+	#define MSG_STORE_EPROM " Store EPROM"
60
+	#define MSG_LOAD_EPROM " Load EPROM"
61
+	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
62
+	#define MSG_REFRESH "\004Refresh"
63
+	#define MSG_WATCH " Watch   \003"
64
+	#define MSG_PREPARE " Prepare \x7E"
65
+	#define MSG_CONTROL_ARROW " Control \x7E"
66
+	#define MSG_TUNE " Tune    \x7E"
67
+	#define MSG_STOP_PRINT " Stop Print   \x7E"
68
+	#define MSG_CARD_MENU " Card Menu    \x7E"
69
+	#define MSG_NO_CARD " No Card"
70
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
71
+
72
+#endif
73
+
74
+#if LANGUAGE_CHOICE == 2
75
+
76
+// LCD Menu Messages
77
+
78
+	#define WELCOME_MSG "UltiMARLIN Ready."
79
+	#define MSG_SD_INSERTED "Card inserted"
80
+	#define MSG_SD_REMOVED "Card removed"
81
+	#define MSG_MAIN " Main \003"
82
+	#define MSG_AUTOSTART " Autostart"
83
+	#define MSG_DISABLE_STEPPERS " Disable Steppers"
84
+	#define MSG_AUTO_HOME " Auto Home"
85
+	#define MSG_SET_ORIGIN " Set Origin"
86
+	#define MSG_PREHEAT " Preheat"
87
+	#define MSG_COOLDOWN " Cooldown"
88
+	#define MSG_EXTRUDE " Extrude"
89
+	#define MSG_SPEED " Speed:"
90
+	#define MSG_NOZZLE " \002Nozzle:"
91
+	#define MSG_BED " \002Bed:"
92
+	#define MSG_FAN_SPEED " Fan speed:"
93
+	#define MSG_FLOW " Flow:"
94
+	#define MSG_CONTROL " Control \003"
95
+	#define MSG_MIN " \002 Min:"
96
+	#define MSG_MAX " \002 Max:"
97
+	#define MSG_FACTOR " \002 Fact:"
98
+	#define MSG_AUTOTEMP " Autotemp:"
99
+	#define MSG_ON "On "
100
+	#define MSG_OFF "Off"
101
+	#define MSG_PID_P " PID-P: "
102
+	#define MSG_PID_I " PID-I: "
103
+	#define MSG_PID_D " PID-D: "
104
+	#define MSG_PID_C " PID-C: "
105
+	#define MSG_ACC  " Acc:"
106
+	#define MSG_VXY_JERK " Vxy-jerk: "
107
+	#define MSG_VMAX " Vmax "
108
+	#define MSG_X "x:"
109
+	#define MSG_Y "y:"
110
+	#define MSG_Z "z:"
111
+	#define MSG_E "e:"
112
+	#define MSG_VMIN " Vmin:"
113
+	#define MSG_VTRAV_MIN " VTrav min:"
114
+	#define MSG_AMAX " Amax "
115
+	#define MSG_A_RETRACT " A-retract:"
116
+	#define MSG_ESTEPS " Esteps/mm:"
117
+	#define MSG_MAIN_WIDE " Main        \003"
118
+	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
119
+	#define MSG_MOTION_WIDE " Motion      \x7E"
120
+	#define MSG_STORE_EPROM " Store EPROM"
121
+	#define MSG_LOAD_EPROM " Load EPROM"
122
+	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
123
+	#define MSG_REFRESH "\004Refresh"
124
+	#define MSG_WATCH " Watch   \003"
125
+	#define MSG_PREPARE " Prepare \x7E"
126
+	#define MSG_CONTROL_ARROW " Control \x7E"
127
+	#define MSG_TUNE " Tune    \x7E"
128
+	#define MSG_STOP_PRINT " Stop Print   \x7E"
129
+	#define MSG_CARD_MENU " Card Menu    \x7E"
130
+	#define MSG_NO_CARD " No Card"
131
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
132
+
133
+#endif
134
+
135
+#if LANGUAGE_CHOICE == 3
136
+
137
+// LCD Menu Messages
138
+
139
+	#define WELCOME_MSG "RepRap Ready."
140
+	#define MSG_SD_INSERTED "Card Ready"
141
+	#define MSG_SD_REMOVED "Card Initiate"
142
+	#define MSG_MAIN " Main \003"
143
+	#define MSG_AUTOSTART " Autostart"
144
+	#define MSG_DISABLE_STEPPERS " Disable Steppers"
145
+	#define MSG_AUTO_HOME " Auto Home"
146
+	#define MSG_SET_ORIGIN " Set Origin"
147
+	#define MSG_PREHEAT " Preheat"
148
+	#define MSG_COOLDOWN " Cooldown"
149
+	#define MSG_EXTRUDE " Extrude"
150
+	#define MSG_SPEED " Speed:"
151
+	#define MSG_NOZZLE " \002Nozzle:"
152
+	#define MSG_BED " \002Bed:"
153
+	#define MSG_FAN_SPEED " Fan speed:"
154
+	#define MSG_FLOW " Flow:"
155
+	#define MSG_CONTROL " Control \003"
156
+	#define MSG_MIN " \002 Min:"
157
+	#define MSG_MAX " \002 Max:"
158
+	#define MSG_FACTOR " \002 Fact:"
159
+	#define MSG_AUTOTEMP " Autotemp:"
160
+	#define MSG_ON "On "
161
+	#define MSG_OFF "Off"
162
+	#define MSG_PID_P " PID-P: "
163
+	#define MSG_PID_I " PID-I: "
164
+	#define MSG_PID_D " PID-D: "
165
+	#define MSG_PID_C " PID-C: "
166
+	#define MSG_ACC  " Acc:"
167
+	#define MSG_VXY_JERK " Vxy-jerk: "
168
+	#define MSG_VMAX " Vmax "
169
+	#define MSG_X "x:"
170
+	#define MSG_Y "y:"
171
+	#define MSG_Z "z:"
172
+	#define MSG_E "e:"
173
+	#define MSG_VMIN " Vmin:"
174
+	#define MSG_VTRAV_MIN " VTrav min:"
175
+	#define MSG_AMAX " Amax "
176
+	#define MSG_A_RETRACT " A-retract:"
177
+	#define MSG_ESTEPS " Esteps/mm:"
178
+	#define MSG_MAIN_WIDE " Main        \003"
179
+	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
180
+	#define MSG_MOTION_WIDE " Motion      \x7E"
181
+	#define MSG_STORE_EPROM " Store EPROM"
182
+	#define MSG_LOAD_EPROM " Load EPROM"
183
+	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
184
+	#define MSG_REFRESH "\004Refresh"
185
+	#define MSG_WATCH " Watch   \003"
186
+	#define MSG_PREPARE " Prepare \x7E"
187
+	#define MSG_CONTROL_ARROW " Control \x7E"
188
+	#define MSG_TUNE " Tune    \x7E"
189
+	#define MSG_STOP_PRINT " Stop Print   \x7E"
190
+	#define MSG_CARD_MENU " Card Menu    \x7E"
191
+	#define MSG_NO_CARD " No Card"
192
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
193
+
194
+#endif
195
+
196
+#if LANGUAGE_CHOICE == 4
197
+
198
+// LCD Menu Messages
199
+
200
+	#define WELCOME_MSG "RepRap Ready."
201
+	#define MSG_SD_INSERTED "Card Ready"
202
+	#define MSG_SD_REMOVED "Card Initiate"
203
+	#define MSG_MAIN " Main \003"
204
+	#define MSG_AUTOSTART " Autostart"
205
+	#define MSG_DISABLE_STEPPERS " Disable Steppers"
206
+	#define MSG_AUTO_HOME " Auto Home"
207
+	#define MSG_SET_ORIGIN " Set Origin"
208
+	#define MSG_PREHEAT " Preheat"
209
+	#define MSG_COOLDOWN " Cooldown"
210
+	#define MSG_EXTRUDE " Extrude"
211
+	#define MSG_SPEED " Speed:"
212
+	#define MSG_NOZZLE " \002Nozzle:"
213
+	#define MSG_BED " \002Bed:"
214
+	#define MSG_FAN_SPEED " Fan speed:"
215
+	#define MSG_FLOW " Flow:"
216
+	#define MSG_CONTROL " Control \003"
217
+	#define MSG_MIN " \002 Min:"
218
+	#define MSG_MAX " \002 Max:"
219
+	#define MSG_FACTOR " \002 Fact:"
220
+	#define MSG_AUTOTEMP " Autotemp:"
221
+	#define MSG_ON "On "
222
+	#define MSG_OFF "Off"
223
+	#define MSG_PID_P " PID-P: "
224
+	#define MSG_PID_I " PID-I: "
225
+	#define MSG_PID_D " PID-D: "
226
+	#define MSG_PID_C " PID-C: "
227
+	#define MSG_ACC  " Acc:"
228
+	#define MSG_VXY_JERK " Vxy-jerk: "
229
+	#define MSG_VMAX " Vmax "
230
+	#define MSG_X "x:"
231
+	#define MSG_Y "y:"
232
+	#define MSG_Z "z:"
233
+	#define MSG_E "e:"
234
+	#define MSG_VMIN " Vmin:"
235
+	#define MSG_VTRAV_MIN " VTrav min:"
236
+	#define MSG_AMAX " Amax "
237
+	#define MSG_A_RETRACT " A-retract:"
238
+	#define MSG_ESTEPS " Esteps/mm:"
239
+	#define MSG_MAIN_WIDE " Main        \003"
240
+	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
241
+	#define MSG_MOTION_WIDE " Motion      \x7E"
242
+	#define MSG_STORE_EPROM " Store EPROM"
243
+	#define MSG_LOAD_EPROM " Load EPROM"
244
+	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
245
+	#define MSG_REFRESH "\004Refresh"
246
+	#define MSG_WATCH " Watch   \003"
247
+	#define MSG_PREPARE " Prepare \x7E"
248
+	#define MSG_CONTROL_ARROW " Control \x7E"
249
+	#define MSG_TUNE " Tune    \x7E"
250
+	#define MSG_STOP_PRINT " Stop Print   \x7E"
251
+	#define MSG_CARD_MENU " Card Menu    \x7E"
252
+	#define MSG_NO_CARD " No Card"
253
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
254
+
255
+#endif
256
+
257
+#if LANGUAGE_CHOICE == 5
258
+
259
+// LCD Menu Messages
260
+
261
+	#define WELCOME_MSG "RepRap Ready."
262
+	#define MSG_SD_INSERTED "Card Ready"
263
+	#define MSG_SD_REMOVED "Card Initiate"
264
+	#define MSG_MAIN " Main \003"
265
+	#define MSG_AUTOSTART " Autostart"
266
+	#define MSG_DISABLE_STEPPERS " Disable Steppers"
267
+	#define MSG_AUTO_HOME " Auto Home"
268
+	#define MSG_SET_ORIGIN " Set Origin"
269
+	#define MSG_PREHEAT " Preheat"
270
+	#define MSG_COOLDOWN " Cooldown"
271
+	#define MSG_EXTRUDE " Extrude"
272
+	#define MSG_SPEED " Speed:"
273
+	#define MSG_NOZZLE " \002Nozzle:"
274
+	#define MSG_BED " \002Bed:"
275
+	#define MSG_FAN_SPEED " Fan speed:"
276
+	#define MSG_FLOW " Flow:"
277
+	#define MSG_CONTROL " Control \003"
278
+	#define MSG_MIN " \002 Min:"
279
+	#define MSG_MAX " \002 Max:"
280
+	#define MSG_FACTOR " \002 Fact:"
281
+	#define MSG_AUTOTEMP " Autotemp:"
282
+	#define MSG_ON "On "
283
+	#define MSG_OFF "Off"
284
+	#define MSG_PID_P " PID-P: "
285
+	#define MSG_PID_I " PID-I: "
286
+	#define MSG_PID_D " PID-D: "
287
+	#define MSG_PID_C " PID-C: "
288
+	#define MSG_ACC  " Acc:"
289
+	#define MSG_VXY_JERK " Vxy-jerk: "
290
+	#define MSG_VMAX " Vmax "
291
+	#define MSG_X "x:"
292
+	#define MSG_Y "y:"
293
+	#define MSG_Z "z:"
294
+	#define MSG_E "e:"
295
+	#define MSG_VMIN " Vmin:"
296
+	#define MSG_VTRAV_MIN " VTrav min:"
297
+	#define MSG_AMAX " Amax "
298
+	#define MSG_A_RETRACT " A-retract:"
299
+	#define MSG_ESTEPS " Esteps/mm:"
300
+	#define MSG_MAIN_WIDE " Main        \003"
301
+	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
302
+	#define MSG_MOTION_WIDE " Motion      \x7E"
303
+	#define MSG_STORE_EPROM " Store EPROM"
304
+	#define MSG_LOAD_EPROM " Load EPROM"
305
+	#define MSG_RESTORE_FAILSAFE " Restore Failsafe"
306
+	#define MSG_REFRESH "\004Refresh"
307
+	#define MSG_WATCH " Watch   \003"
308
+	#define MSG_PREPARE " Prepare \x7E"
309
+	#define MSG_CONTROL_ARROW " Control \x7E"
310
+	#define MSG_TUNE " Tune    \x7E"
311
+	#define MSG_STOP_PRINT " Stop Print   \x7E"
312
+	#define MSG_CARD_MENU " Card Menu    \x7E"
313
+	#define MSG_NO_CARD " No Card"
314
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
315
+
316
+#endif
317
+
318
+#endif // ifndef LANGUAGE_H

+ 69
- 1
Marlin/pins.h View File

308
 #define SDPOWER            -1
308
 #define SDPOWER            -1
309
 #define SDSS               53
309
 #define SDSS               53
310
 #define LED_PIN            13
310
 #define LED_PIN            13
311
-#define FAN_PIN            4
311
+#define FAN_PIN            9 // Uses HEATER_1 on Ramps Board
312
 #define PS_ON_PIN          12
312
 #define PS_ON_PIN          12
313
 #define KILL_PIN           -1
313
 #define KILL_PIN           -1
314
 
314
 
321
 #define HEATER_BED_PIN     8    // BED
321
 #define HEATER_BED_PIN     8    // BED
322
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
322
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
323
 
323
 
324
+#ifdef ULTRA_LCD
325
+
326
+  #ifdef NEWPANEL
327
+  //arduino pin which triggers an piezzo beeper
328
+    #define BEEPER 33			// Beeper on AUX-4
329
+
330
+    #define LCD_PINS_RS 16 
331
+    #define LCD_PINS_ENABLE 17
332
+    #define LCD_PINS_D4 23
333
+    #define LCD_PINS_D5 25 
334
+    #define LCD_PINS_D6 27
335
+    #define LCD_PINS_D7 29
336
+    
337
+    //buttons are directly attached using AUX-2
338
+    #define BTN_EN1 44
339
+    #define BTN_EN2 42
340
+    #define BTN_ENC 64  //the click
341
+    
342
+    #define BLEN_C 2
343
+    #define BLEN_B 1
344
+    #define BLEN_A 0
345
+    
346
+    #define SDCARDDETECT 31		// Ramps does not use this port
347
+    
348
+      //encoder rotation values
349
+    #define encrot0 0
350
+    #define encrot1 2
351
+    #define encrot2 3
352
+    #define encrot3 1
353
+
354
+  #else //old style panel with shift register
355
+    //arduino pin witch triggers an piezzo beeper
356
+    #define BEEPER 33		No Beeper added
357
+
358
+    //buttons are attached to a shift register
359
+	// Not wired this yet
360
+    //#define SHIFT_CLK 38
361
+    //#define SHIFT_LD 42
362
+    //#define SHIFT_OUT 40
363
+    //#define SHIFT_EN 17
364
+    
365
+    #define LCD_PINS_RS 16 
366
+    #define LCD_PINS_ENABLE 17
367
+    #define LCD_PINS_D4 23
368
+    #define LCD_PINS_D5 25 
369
+    #define LCD_PINS_D6 27
370
+    #define LCD_PINS_D7 29
371
+    
372
+    //encoder rotation values
373
+    #define encrot0 0
374
+    #define encrot1 2
375
+    #define encrot2 3
376
+    #define encrot3 1
377
+
378
+    
379
+    //bits in the shift register that carry the buttons for:
380
+    // left up center down right red
381
+    #define BL_LE 7
382
+    #define BL_UP 6
383
+    #define BL_MI 5
384
+    #define BL_DW 4
385
+    #define BL_RI 3
386
+    #define BL_ST 2
387
+
388
+    #define BLEN_B 1
389
+    #define BLEN_A 0
390
+  #endif 
391
+#endif //ULTRA_LCD
324
 
392
 
325
 #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default
393
 #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default
326
 
394
 

+ 9
- 2
Marlin/ultralcd.h View File

29
     #define BLOCK {blocking=millis()+blocktime;}
29
     #define BLOCK {blocking=millis()+blocktime;}
30
     #if (SDCARDDETECT > -1)
30
     #if (SDCARDDETECT > -1)
31
     {
31
     {
32
-      #define CARDINSERTED (READ(SDCARDDETECT)==0)
32
+
33
+	#ifdef SDCARDDETECTINVERTED 
34
+		#define CARDINSERTED (READ(SDCARDDETECT)!=0)
35
+
36
+	#else
37
+		#define CARDINSERTED (READ(SDCARDDETECT)==0)
33
     }
38
     }
34
     #endif
39
     #endif
35
-    
40
+
41
+	#endif  //SDCARDTETECTINVERTED
42
+
36
   #else
43
   #else
37
 
44
 
38
     //atomatic, do not change
45
     //atomatic, do not change

+ 61
- 61
Marlin/ultralcd.pde View File

122
   lcd.createChar(3,uplevel);
122
   lcd.createChar(3,uplevel);
123
   lcd.createChar(4,refresh);
123
   lcd.createChar(4,refresh);
124
   lcd.createChar(5,folder);
124
   lcd.createChar(5,folder);
125
-  LCD_MESSAGEPGM("UltiMarlin ready.");
125
+  LCD_MESSAGEPGM(WELCOME_MSG);
126
 }
126
 }
127
 
127
 
128
 
128
 
476
   switch(i)
476
   switch(i)
477
   {
477
   {
478
     case ItemP_exit:
478
     case ItemP_exit:
479
-      MENUITEM(  lcdprintPGM(" Main \003")  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
479
+      MENUITEM(  lcdprintPGM(MSG_MAIN)  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
480
       break;
480
       break;
481
     case ItemP_autostart:
481
     case ItemP_autostart:
482
-      MENUITEM(  lcdprintPGM(" Autostart")  ,  BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
482
+      MENUITEM(  lcdprintPGM(MSG_AUTOSTART)  ,  BLOCK;card.lastnr=0;card.setroot();card.checkautostart(true);beepshort(); ) ;
483
       break;
483
       break;
484
     case ItemP_disstep:
484
     case ItemP_disstep:
485
-      MENUITEM(  lcdprintPGM(" Disable Steppers")  ,  BLOCK;enquecommand("M84");beepshort(); ) ;
485
+      MENUITEM(  lcdprintPGM(MSG_DISABLE_STEPPERS)  ,  BLOCK;enquecommand("M84");beepshort(); ) ;
486
       break;
486
       break;
487
     case ItemP_home:
487
     case ItemP_home:
488
-      MENUITEM(  lcdprintPGM(" Auto Home")  ,  BLOCK;enquecommand("G28 X0 Y0 Z0");beepshort(); ) ;
488
+      MENUITEM(  lcdprintPGM(MSG_AUTO_HOME)  ,  BLOCK;enquecommand("G28 X-105 Y-105 Z0");beepshort(); ) ;
489
       break;
489
       break;
490
     case ItemP_origin:
490
     case ItemP_origin:
491
-      MENUITEM(  lcdprintPGM(" Set Origin")  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
491
+      MENUITEM(  lcdprintPGM(MSG_SET_ORIGIN)  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
492
       break;
492
       break;
493
     case ItemP_preheat:
493
     case ItemP_preheat:
494
-      MENUITEM(  lcdprintPGM(" Preheat")  ,  BLOCK;setTargetHotend0(227);setTargetBed(105);beepshort(); ) ;
494
+      MENUITEM(  lcdprintPGM(MSG_PREHEAT)  ,  BLOCK;setTargetHotend0(170);setTargetBed(70);beepshort(); ) ;
495
       break;
495
       break;
496
     case ItemP_cooldown:
496
     case ItemP_cooldown:
497
-      MENUITEM(  lcdprintPGM(" Cooldown")  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
497
+      MENUITEM(  lcdprintPGM(MSG_COOLDOWN)  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
498
       break;
498
       break;
499
 //    case ItemP_extrude:
499
 //    case ItemP_extrude:
500
   //    MENUITEM(  lcdprintPGM(" Extrude")  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
500
   //    MENUITEM(  lcdprintPGM(" Extrude")  ,  BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
690
   switch(i)
690
   switch(i)
691
   {
691
   {
692
   case ItemT_exit:
692
   case ItemT_exit:
693
-      MENUITEM(  lcdprintPGM(" Main \003")  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
693
+      MENUITEM(  lcdprintPGM(MSG_MAIN)  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
694
       break;
694
       break;
695
   case ItemT_speed:
695
   case ItemT_speed:
696
     {
696
     {
697
       if(force_lcd_update)
697
       if(force_lcd_update)
698
       {
698
       {
699
-        lcd.setCursor(0,line);lcdprintPGM(" Speed:");
699
+        lcd.setCursor(0,line);lcdprintPGM(MSG_SPEED);
700
         lcd.setCursor(13,line);lcd.print(ftostr3(feedmultiply));
700
         lcd.setCursor(13,line);lcd.print(ftostr3(feedmultiply));
701
       }
701
       }
702
       
702
       
731
       {
731
       {
732
         if(force_lcd_update)
732
         if(force_lcd_update)
733
         {
733
         {
734
-          lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
734
+          lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
735
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
735
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
736
         }
736
         }
737
         
737
         
765
       {
765
       {
766
         if(force_lcd_update)
766
         if(force_lcd_update)
767
         {
767
         {
768
-          lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
768
+          lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
769
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
769
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
770
         }
770
         }
771
         
771
         
836
          {
836
          {
837
       if(force_lcd_update)
837
       if(force_lcd_update)
838
         {
838
         {
839
-          lcd.setCursor(0,line);lcdprintPGM(" Flow:");
839
+          lcd.setCursor(0,line);lcdprintPGM(MSG_FLOW);
840
           lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
840
           lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
841
         }
841
         }
842
         
842
         
917
   switch(i)
917
   switch(i)
918
   {
918
   {
919
     case ItemCT_exit:
919
     case ItemCT_exit:
920
-      MENUITEM(  lcdprintPGM(" Control \003")  ,  BLOCK;status=Main_Control;beepshort(); ) ;
920
+      MENUITEM(  lcdprintPGM(MSG_CONTROL)  ,  BLOCK;status=Main_Control;beepshort(); ) ;
921
       break;
921
       break;
922
     case ItemCT_nozzle:
922
     case ItemCT_nozzle:
923
       {
923
       {
924
         if(force_lcd_update)
924
         if(force_lcd_update)
925
         {
925
         {
926
-          lcd.setCursor(0,line);lcdprintPGM(" \002Nozzle:");
926
+          lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
927
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
927
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
928
         }
928
         }
929
         
929
         
958
       {
958
       {
959
         if(force_lcd_update)
959
         if(force_lcd_update)
960
         {
960
         {
961
-          lcd.setCursor(0,line);lcdprintPGM(" \002 Min:");
961
+          lcd.setCursor(0,line);lcdprintPGM(MSG_MIN);
962
           lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_min));
962
           lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_min));
963
         }
963
         }
964
         
964
         
992
       {
992
       {
993
         if(force_lcd_update)
993
         if(force_lcd_update)
994
         {
994
         {
995
-          lcd.setCursor(0,line);lcdprintPGM(" \002 Max:");
995
+          lcd.setCursor(0,line);lcdprintPGM(MSG_MAX);
996
           lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_max));
996
           lcd.setCursor(13,line);lcd.print(ftostr3(autotemp_max));
997
         }
997
         }
998
         
998
         
1026
       {
1026
       {
1027
         if(force_lcd_update)
1027
         if(force_lcd_update)
1028
         {
1028
         {
1029
-          lcd.setCursor(0,line);lcdprintPGM(" \002 Fact:");
1029
+          lcd.setCursor(0,line);lcdprintPGM(MSG_FACTOR);
1030
           lcd.setCursor(13,line);lcd.print(ftostr32(autotemp_factor));
1030
           lcd.setCursor(13,line);lcd.print(ftostr32(autotemp_factor));
1031
         }
1031
         }
1032
         
1032
         
1060
       {
1060
       {
1061
         if(force_lcd_update)
1061
         if(force_lcd_update)
1062
         {
1062
         {
1063
-          lcd.setCursor(0,line);lcdprintPGM(" Autotemp:");
1063
+          lcd.setCursor(0,line);lcdprintPGM(MSG_AUTOTEMP);
1064
           lcd.setCursor(13,line);
1064
           lcd.setCursor(13,line);
1065
           if(autotemp_enabled)
1065
           if(autotemp_enabled)
1066
-            lcdprintPGM("On");
1066
+            lcdprintPGM(MSG_ON);
1067
           else
1067
           else
1068
-            lcdprintPGM("Off");
1068
+            lcdprintPGM(MSG_OFF);
1069
         }
1069
         }
1070
         
1070
         
1071
         if((activeline!=line) )
1071
         if((activeline!=line) )
1076
           autotemp_enabled=!autotemp_enabled;
1076
           autotemp_enabled=!autotemp_enabled;
1077
           lcd.setCursor(13,line);
1077
           lcd.setCursor(13,line);
1078
           if(autotemp_enabled)
1078
           if(autotemp_enabled)
1079
-            lcdprintPGM("On ");
1079
+            lcdprintPGM(MSG_ON);
1080
           else
1080
           else
1081
-            lcdprintPGM("Off");
1081
+            lcdprintPGM(MSG_OFF);
1082
           BLOCK;
1082
           BLOCK;
1083
         }
1083
         }
1084
         
1084
         
1089
       {
1089
       {
1090
         if(force_lcd_update)
1090
         if(force_lcd_update)
1091
         {
1091
         {
1092
-          lcd.setCursor(0,line);lcdprintPGM(" \002Bed:");
1092
+          lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
1093
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
1093
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetBed())));
1094
         }
1094
         }
1095
         
1095
         
1123
       {
1123
       {
1124
         if(force_lcd_update)
1124
         if(force_lcd_update)
1125
         {
1125
         {
1126
-          lcd.setCursor(0,line);lcdprintPGM(" Fan speed:");
1126
+          lcd.setCursor(0,line);lcdprintPGM(MSG_FAN_SPEED);
1127
           lcd.setCursor(13,line);lcd.print(ftostr3(fanpwm));
1127
           lcd.setCursor(13,line);lcd.print(ftostr3(fanpwm));
1128
         }
1128
         }
1129
         
1129
         
1193
       {
1193
       {
1194
       if(force_lcd_update)
1194
       if(force_lcd_update)
1195
         {
1195
         {
1196
-          lcd.setCursor(0,line);lcdprintPGM(" PID-I: ");
1196
+          lcd.setCursor(0,line);lcdprintPGM(MSG_PID_I);
1197
           lcd.setCursor(13,line);lcd.print(ftostr51(Ki/PID_dT));
1197
           lcd.setCursor(13,line);lcd.print(ftostr51(Ki/PID_dT));
1198
         }
1198
         }
1199
         
1199
         
1228
       {
1228
       {
1229
       if(force_lcd_update)
1229
       if(force_lcd_update)
1230
         {
1230
         {
1231
-          lcd.setCursor(0,line);lcdprintPGM(" PID-D: ");
1231
+          lcd.setCursor(0,line);lcdprintPGM(MSG_PID_D);
1232
           lcd.setCursor(13,line);lcd.print(itostr4(Kd*PID_dT));
1232
           lcd.setCursor(13,line);lcd.print(itostr4(Kd*PID_dT));
1233
         }
1233
         }
1234
         
1234
         
1265
       {
1265
       {
1266
       if(force_lcd_update)
1266
       if(force_lcd_update)
1267
         {
1267
         {
1268
-          lcd.setCursor(0,line);lcdprintPGM(" PID-C: ");
1268
+          lcd.setCursor(0,line);lcdprintPGM(MSG_PID_C);
1269
           lcd.setCursor(13,line);lcd.print(itostr3(Kc));
1269
           lcd.setCursor(13,line);lcd.print(itostr3(Kc));
1270
         }
1270
         }
1271
         
1271
         
1331
   switch(i)
1331
   switch(i)
1332
   {
1332
   {
1333
     case ItemCM_exit:
1333
     case ItemCM_exit:
1334
-      MENUITEM(  lcdprintPGM(" Control \003")  ,  BLOCK;status=Main_Control;beepshort(); ) ;
1334
+      MENUITEM(  lcdprintPGM(MSG_CONTROL)  ,  BLOCK;status=Main_Control;beepshort(); ) ;
1335
       break;
1335
       break;
1336
     case ItemCM_acc:
1336
     case ItemCM_acc:
1337
     {
1337
     {
1338
       if(force_lcd_update)
1338
       if(force_lcd_update)
1339
         {
1339
         {
1340
-          lcd.setCursor(0,line);lcdprintPGM(" Acc:");
1340
+          lcd.setCursor(0,line);lcdprintPGM(MSG_ACC);
1341
           lcd.setCursor(13,line);lcd.print(itostr3(acceleration/100));lcdprintPGM("00");
1341
           lcd.setCursor(13,line);lcd.print(itostr3(acceleration/100));lcdprintPGM("00");
1342
         }
1342
         }
1343
         
1343
         
1371
       {
1371
       {
1372
       if(force_lcd_update)
1372
       if(force_lcd_update)
1373
         {
1373
         {
1374
-          lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
1374
+          lcd.setCursor(0,line);lcdprintPGM(MSG_VXY_JERK);
1375
           lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
1375
           lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
1376
         }
1376
         }
1377
         
1377
         
1410
       {
1410
       {
1411
       if(force_lcd_update)
1411
       if(force_lcd_update)
1412
         {
1412
         {
1413
-          lcd.setCursor(0,line);lcdprintPGM(" Vmax ");
1414
-          if(i==ItemCM_vmaxx)lcdprintPGM("x:");
1415
-          if(i==ItemCM_vmaxy)lcdprintPGM("y:");
1416
-          if(i==ItemCM_vmaxz)lcdprintPGM("z:");
1417
-          if(i==ItemCM_vmaxe)lcdprintPGM("e:");
1413
+          lcd.setCursor(0,line);lcdprintPGM(MSG_VMAX);
1414
+          if(i==ItemCM_vmaxx)lcdprintPGM(MSG_X);
1415
+          if(i==ItemCM_vmaxy)lcdprintPGM(MSG_Y);
1416
+          if(i==ItemCM_vmaxz)lcdprintPGM(MSG_Z);
1417
+          if(i==ItemCM_vmaxe)lcdprintPGM(MSG_E);
1418
           lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemCM_vmaxx]));
1418
           lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemCM_vmaxx]));
1419
         }
1419
         }
1420
         
1420
         
1450
     {
1450
     {
1451
       if(force_lcd_update)
1451
       if(force_lcd_update)
1452
         {
1452
         {
1453
-          lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
1453
+          lcd.setCursor(0,line);lcdprintPGM(MSG_VMIN);
1454
           lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
1454
           lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
1455
         }
1455
         }
1456
         
1456
         
1485
     {
1485
     {
1486
       if(force_lcd_update)
1486
       if(force_lcd_update)
1487
         {
1487
         {
1488
-          lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
1488
+          lcd.setCursor(0,line);lcdprintPGM(MSG_VTRAV_MIN);
1489
           lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
1489
           lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
1490
         }
1490
         }
1491
         
1491
         
1525
       if(force_lcd_update)
1525
       if(force_lcd_update)
1526
         {
1526
         {
1527
           lcd.setCursor(0,line);lcdprintPGM(" Amax ");
1527
           lcd.setCursor(0,line);lcdprintPGM(" Amax ");
1528
-          if(i==ItemCM_amaxx)lcdprintPGM("x:");
1529
-          if(i==ItemCM_amaxy)lcdprintPGM("y:");
1530
-          if(i==ItemCM_amaxz)lcdprintPGM("z:");
1531
-          if(i==ItemCM_amaxe)lcdprintPGM("e:");
1528
+          if(i==ItemCM_amaxx)lcdprintPGM(MSG_X);
1529
+          if(i==ItemCM_amaxy)lcdprintPGM(MSG_Y);
1530
+          if(i==ItemCM_amaxz)lcdprintPGM(MSG_Z);
1531
+          if(i==ItemCM_amaxe)lcdprintPGM(MSG_E);
1532
           lcd.setCursor(13,line);lcd.print(itostr3(max_acceleration_units_per_sq_second[i-ItemCM_amaxx]/100));lcdprintPGM("00");
1532
           lcd.setCursor(13,line);lcd.print(itostr3(max_acceleration_units_per_sq_second[i-ItemCM_amaxx]/100));lcdprintPGM("00");
1533
         }
1533
         }
1534
         
1534
         
1562
     {
1562
     {
1563
         if(force_lcd_update)
1563
         if(force_lcd_update)
1564
         {
1564
         {
1565
-          lcd.setCursor(0,line);lcdprintPGM(" A-retract:");
1565
+          lcd.setCursor(0,line);lcdprintPGM(MSG_A_RETRACT);
1566
           lcd.setCursor(13,line);lcd.print(ftostr3(retract_acceleration/100));lcdprintPGM("00");
1566
           lcd.setCursor(13,line);lcd.print(ftostr3(retract_acceleration/100));lcdprintPGM("00");
1567
         }
1567
         }
1568
         
1568
         
1712
          {
1712
          {
1713
       if(force_lcd_update)
1713
       if(force_lcd_update)
1714
         {
1714
         {
1715
-          lcd.setCursor(0,line);lcdprintPGM(" E steps/mm:");
1715
+          lcd.setCursor(0,line);lcdprintPGM(MSG_ESTEPS);
1716
           lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
1716
           lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
1717
         }
1717
         }
1718
         
1718
         
1769
   switch(i)
1769
   switch(i)
1770
   {
1770
   {
1771
     case ItemC_exit:
1771
     case ItemC_exit:
1772
-      MENUITEM(  lcdprintPGM(" Main        \003")  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
1772
+      MENUITEM(  lcdprintPGM(MSG_MAIN_WIDE)  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
1773
       break;
1773
       break;
1774
     case ItemC_temp:
1774
     case ItemC_temp:
1775
-      MENUITEM(  lcdprintPGM(" Temperature \x7E")  ,  BLOCK;status=Sub_TempControl;beepshort(); ) ;
1775
+      MENUITEM(  lcdprintPGM(MSG_TEMPERATURE_WIDE)  ,  BLOCK;status=Sub_TempControl;beepshort(); ) ;
1776
       break;
1776
       break;
1777
    case ItemC_move:
1777
    case ItemC_move:
1778
-      MENUITEM(  lcdprintPGM(" Motion      \x7E")  ,  BLOCK;status=Sub_MotionControl;beepshort(); ) ;
1778
+      MENUITEM(  lcdprintPGM(MSG_MOTION_WIDE)  ,  BLOCK;status=Sub_MotionControl;beepshort(); ) ;
1779
       break;
1779
       break;
1780
     case ItemC_store:
1780
     case ItemC_store:
1781
     {
1781
     {
1782
       if(force_lcd_update)
1782
       if(force_lcd_update)
1783
       {
1783
       {
1784
-        lcd.setCursor(0,line);lcdprintPGM(" Store EPROM");
1784
+        lcd.setCursor(0,line);lcdprintPGM(MSG_STORE_EPROM);
1785
       }
1785
       }
1786
       if((activeline==line) && CLICKED)
1786
       if((activeline==line) && CLICKED)
1787
       {
1787
       {
1795
     {
1795
     {
1796
       if(force_lcd_update)
1796
       if(force_lcd_update)
1797
       {
1797
       {
1798
-        lcd.setCursor(0,line);lcdprintPGM(" Load EPROM");
1798
+        lcd.setCursor(0,line);lcdprintPGM(MSG_LOAD_EPROM);
1799
       }
1799
       }
1800
       if((activeline==line) && CLICKED)
1800
       if((activeline==line) && CLICKED)
1801
       {
1801
       {
1809
     {
1809
     {
1810
       if(force_lcd_update)
1810
       if(force_lcd_update)
1811
       {
1811
       {
1812
-        lcd.setCursor(0,line);lcdprintPGM(" Restore Failsafe");
1812
+        lcd.setCursor(0,line);lcdprintPGM(MSG_RESTORE_FAILSAFE);
1813
       }
1813
       }
1814
       if((activeline==line) && CLICKED)
1814
       if((activeline==line) && CLICKED)
1815
       {
1815
       {
1856
   switch(i)
1856
   switch(i)
1857
   {
1857
   {
1858
     case 0:
1858
     case 0:
1859
-      MENUITEM(  lcdprintPGM(" Main \003")  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
1859
+      MENUITEM(  lcdprintPGM(MSG_MAIN)  ,  BLOCK;status=Main_Menu;beepshort(); ) ;
1860
       break;
1860
       break;
1861
 //     case 1:
1861
 //     case 1:
1862
 //       {
1862
 //       {
1887
 //         }
1887
 //         }
1888
 //       }break;
1888
 //       }break;
1889
     case 1:
1889
     case 1:
1890
-      MENUITEM(  lcd.print(" ");card.getWorkDirName();if(card.filename[0]=='/') lcdprintPGM("\004Refresh");else {lcd.print("\005");lcd.print(card.filename);lcd.print("/..");}  ,  BLOCK;card.updir();enforceupdate=true;lineoffset=0;beepshort(); ) ;
1890
+      MENUITEM(  lcd.print(" ");card.getWorkDirName();if(card.filename[0]=='/') lcdprintPGM(MSG_REFRESH);else {lcd.print("\005");lcd.print(card.filename);lcd.print("/..");}  ,  BLOCK;card.updir();enforceupdate=true;lineoffset=0;beepshort(); ) ;
1891
       
1891
       
1892
       break;
1892
       break;
1893
     default:
1893
     default:
1974
     switch(line)
1974
     switch(line)
1975
     { 
1975
     { 
1976
       case ItemM_watch:
1976
       case ItemM_watch:
1977
-        MENUITEM(  lcdprintPGM(" Watch   \003")  ,  BLOCK;status=Main_Status;beepshort(); ) ;
1977
+        MENUITEM(  lcdprintPGM(MSG_WATCH)  ,  BLOCK;status=Main_Status;beepshort(); ) ;
1978
        break;
1978
        break;
1979
       case ItemM_prepare:
1979
       case ItemM_prepare:
1980
-        MENUITEM(  if(!tune) lcdprintPGM(" Prepare \x7E");else  lcdprintPGM(" Tune    \x7E"); ,  BLOCK;status=Main_Prepare;beepshort(); ) ;
1980
+        MENUITEM(  if(!tune) lcdprintPGM(MSG_PREPARE);else  lcdprintPGM(MSG_TUNE); ,  BLOCK;status=Main_Prepare;beepshort(); ) ;
1981
       break;
1981
       break;
1982
        
1982
        
1983
       case ItemM_control:
1983
       case ItemM_control:
1984
-        MENUITEM(  lcdprintPGM(" Control \x7E")  ,  BLOCK;status=Main_Control;beepshort(); ) ;
1984
+        MENUITEM(  lcdprintPGM(MSG_CONTROL_ARROW)  ,  BLOCK;status=Main_Control;beepshort(); ) ;
1985
       break;
1985
       break;
1986
       #ifdef SDSUPPORT
1986
       #ifdef SDSUPPORT
1987
       case ItemM_file:    
1987
       case ItemM_file:    
1996
           #endif
1996
           #endif
1997
           {
1997
           {
1998
             if(card.sdprinting)
1998
             if(card.sdprinting)
1999
-              lcdprintPGM(" Stop Print   \x7E");
1999
+              lcdprintPGM(MSG_STOP_PRINT);
2000
             else
2000
             else
2001
-              lcdprintPGM(" Card Menu    \x7E");
2001
+              lcdprintPGM(MSG_CARD_MENU);
2002
           }
2002
           }
2003
           else
2003
           else
2004
           {
2004
           {
2005
-           lcdprintPGM(" No Card"); 
2005
+           lcdprintPGM(MSG_NO_CARD); 
2006
           }
2006
           }
2007
         }
2007
         }
2008
         #ifdef CARDINSERTED
2008
         #ifdef CARDINSERTED
2022
       #endif
2022
       #endif
2023
       default: 
2023
       default: 
2024
         SERIAL_ERROR_START;
2024
         SERIAL_ERROR_START;
2025
-        SERIAL_ERRORLNPGM("Something is wrong in the MenuStructure.");
2025
+        SERIAL_ERRORLNPGM(MSG_SERIAL_ERROR_MENU_STRUCTURE);
2026
       break;
2026
       break;
2027
     }
2027
     }
2028
   }
2028
   }
2043
       if(CARDINSERTED)
2043
       if(CARDINSERTED)
2044
       {
2044
       {
2045
         card.initsd();
2045
         card.initsd();
2046
-        LCD_MESSAGEPGM("Card inserted");
2046
+        LCD_MESSAGEPGM(MSG_SD_INSERTED);
2047
       }
2047
       }
2048
       else
2048
       else
2049
       {
2049
       {
2050
         card.release();
2050
         card.release();
2051
-        LCD_MESSAGEPGM("Card removed");
2051
+        LCD_MESSAGEPGM(MSG_SD_REMOVED);
2052
       }
2052
       }
2053
     }
2053
     }
2054
   #endif
2054
   #endif

Loading…
Cancel
Save