-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdisplay.cfg
398 lines (340 loc) · 8.3 KB
/
display.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
######################################################################
# Fysetc Mini 12864Panel v2.1 (with neopixel backlight leds)
######################################################################
[display]
lcd_type: uc1701
cs_pin: PB9
a0_pin: PB8
rst_pin: PB15
encoder_pins: ^PB5,^PA15
click_pin: ^!PA10
contrast: 63
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
#menu_timeout: 60
#menu_root: __mymain
[neopixel fysetc_mini12864]
pin: PA9
chain_count: 3
color_order: RGB
initial_RED: 0.4
initial_GREEN: 0.4
initial_BLUE: 0.4
######################################################################
# Display Menu
######################################################################
[menu __mymain]
type: list
name: Info screen
[menu __mymain __offsetz]
type: input
name: Z-Offset:{'%05.3f' % menu.input}
enable: { printer.idle_timeout.state == "Printing" }
input: {printer.gcode_move.homing_origin.z}
input_min: -5
input_max: 5
input_step: 0.005
realtime: True
gcode:
SET_GCODE_OFFSET Z={'%.3f' % menu.input} MOVE=1
### menu tune ###
[menu __mymain __tune]
type: list
enable: { printer.idle_timeout.state == "Printing" }
name: Tune
[menu __mymain __tune __speed]
type: input
name: Speed: {'%3d' % (menu.input*100)}%
input: {printer.gcode_move.speed_factor}
input_min: 0
input_max: 2
input_step: 0.01
realtime: True
gcode:
M220 S{'%d' % (menu.input*100)}
[menu __mymain __tune __nozzle]
type: input
enable: {'extruder' in printer}
name: Nozzle: {'%3d' % (menu.input)}%
input: {printer.extruder.target}
input_min: 0
input_max: 300
input_step: 1
gcode:
M104 S{'%d' % (menu.input)}
[menu __mymain _tune _hotbed]
type: input
enable: {'heater_bed' in printer}
name: Bed: {'%3d' % (menu.input)}%
input: {printer.heater_bed.target}
input_min: 0
input_max: 130
input_step: 1
gcode:
M140 S{'%d' % (menu.input)}
[menu __mymain __tune __fanspeed]
type: input
name: Fan speed: {'%3d' % (menu.input*100)}%
input: {printer.fan.speed}
input_min: 0
input_max: 1
input_step: 0.01
realtime: True
gcode:
M106 S{'%d' % (menu.input*255)}
[menu __mymain __tune __flow]
type: input
name: Flow: {'%3d' % (menu.input*100)}%
input: {printer.gcode_move.extrude_factor}
input_min: 0
input_max: 2
input_step: 0.01
realtime: True
gcode:
M221 S{'%d' % (menu.input*100)}
[menu __mymain __tune __filamentchange]
type: command
name: Change filament
gcode:
M600
### menu preheat ###
[menu __mymain __preheat]
type: list
enable: { not printer.idle_timeout.state == "Printing" }
name: Preheat
[menu __mymain __preheat __preheatpla]
type: command
name: PLA - 215/60
gcode:
M140 S60
M104 S215
{ menu.exit() }
[menu __mymain __preheat __preheatpet]
type: command
name: PET - 230/85
gcode:
M140 S85
M104 S230
{ menu.exit() }
[menu __mymain __preheat __preheatabs]
type: command
name: ABS - 255/100
gcode:
M140 S100
M104 S255
{ menu.exit() }
[menu __mymain __preheat __preheatasa]
type: command
name: ASA - 260/105
gcode:
M140 S105
M104 S260
{ menu.exit() }
[menu __mymain __preheat __preheathips]
type: command
name: HIPS - 220/100
gcode:
M140 S100
M104 S220
{ menu.exit() }
[menu __mymain __preheat __preheatpp]
type: command
name: PP - 254/100
gcode:
M140 S100
M104 S254
{ menu.exit() }
[menu __mymain __preheat __preheatflex]
type: command
name: FLEX - 230/50
gcode:
M140 S50
M104 S230
{ menu.exit() }
[menu __mymain __preheat __cooldown]
type: command
name: Cooldown
gcode:
M140 S0
M104 S0
{ menu.exit() }
### menu print sd ###
[menu __mymain __printstart]
type: command
enable: {('virtual_sdcard' in printer) and not printer.print_stats.filename == "" and printer.idle_timeout.state == "Idle"}
name: Start printing
gcode:
M24
{ menu.exit() }
[menu __mymain __printpause]
type: command
enable: { printer.idle_timeout.state == "Printing" }
name: PAUSE
gcode:
PAUSE
{ menu.exit() }
[menu __mymain __printcancel]
type: command
enable: { printer.pause_resume.is_paused == true }
name: CANCEL
gcode:
CANCEL_PRINT
{ menu.exit() }
[menu __mymain __sdcard]
type: vsdlist
enable: {('virtual_sdcard' in printer) and printer.print_stats.filename == ""}
name: SD Card
[menu __mymain __loadfilament]
type: command
enable: {not printer.idle_timeout.state == "Printing"}
name: Load Filament
gcode:
LOAD_FILAMENT
{ menu.exit() }
[menu __mymain __unloadfilament]
type: command
enable: {not printer.idle_timeout.state == "Printing"}
name: Unload Filament
gcode:
UNLOAD_FILAMENT
{ menu.exit() }
[menu __mymain __temperature]
type: list
name: Temperature
[menu __mymain __temperature __nozzle]
type: input
enable: {'extruder' in printer}
name: {"E: %3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
input: {printer.extruder.target}
input_min: 0
input_max: {printer.configfile.config.extruder.max_temp}
input_step: 1
gcode: M104 T0 S{'%d' % (menu.input)}
[menu __mymain __temperature __hotbed]
type: input
enable: {'heater_bed' in printer}
name: {"B:%3.0f (%4.0f)" % (menu.input, printer.heater_bed.temperature)}
input: {printer.heater_bed.target}
input_min: 0
input_max: {printer.configfile.config.heater_bed.max_temp}
input_step: 1
gcode: M140 S{'%d' % (menu.input)}
[menu __mymain __temperature __fanspeed]
type: input
name: Fan speed: {'%3d' % (menu.input*100)}%
input: {printer.fan.speed}
input_min: 0
input_max: 1
input_step: 0.01
realtime: True
gcode: M106 S{'%d' % (menu.input*255)}
[menu __mymain __moveaxis]
type: list
name: Move axis
[menu __mymain __moveaxis __autohome]
type: command
name: Auto home
gcode:
G28
[menu __mymain __moveaxis __homex]
type: command
name: Home X
gcode:
G28 X
[menu __mymain __moveaxis __homey]
type: command
name: Home Y
gcode:
G28 Y
[menu __mymain __moveaxis __homez]
type: command
name: Home Z
gcode:
G28 Z
[menu __mymain __moveaxis __axis_x]
type: input
name: Move X:{'%05.1f' % menu.input}
input: {printer.gcode_move.gcode_position.x}
input_min: {printer.configfile.config.stepper_x.position_min}
input_max: {printer.configfile.config.stepper_x.position_max}
input_step: 1
gcode:
SAVE_GCODE_STATE NAME=__move__axis
G90
G1 X{menu.input} F6000
RESTORE_GCODE_STATE NAME=__move__axis
[menu __mymain __moveaxis __axis_y]
type: input
name: Move Y:{'%05.1f' % menu.input}
input: {printer.gcode_move.gcode_position.y}
input_min: {printer.configfile.config.stepper_y.position_min}
input_max: {printer.configfile.config.stepper_y.position_max}
input_step: 1
gcode:
SAVE_GCODE_STATE NAME=__move__axis
G90
G1 Y{menu.input} F6000
RESTORE_GCODE_STATE NAME=__move__axis
[menu __mymain __moveaxis __axis_z]
type: input
name: Move Z:{'%05.1f' % menu.input}
input: {printer.gcode_move.gcode_position.z}
input_min: {printer.configfile.config.stepper_z.position_min}
input_max: {printer.configfile.config.stepper_z.position_max}
input_step: 0.1
gcode:
SAVE_GCODE_STATE NAME=__move__axis
G90
G1 Z{menu.input} F1200
RESTORE_GCODE_STATE NAME=__move__axis
[menu __mymain __moveaxis __axis_e]
type: input
name: Move E:{'%+06.1f' % menu.input}
input: 0
input_min: -50
input_max: 50
input_step: 0.1
gcode:
SAVE_GCODE_STATE NAME=__move__axis
M83
G1 E{menu.input} F240
RESTORE_GCODE_STATE NAME=__move__axis
[menu __mymain __moveaxis __disable_steppers]
type: command
name: Disable steppers
gcode:
M84
M18
### menu settings ###
[menu __mymain __settings]
type: list
enable: {not printer.idle_timeout.state == "Printing"}
name: Settings
[menu __mymain __settings __pidtuning]
type: list
name: PID tuning
[menu __mymain __settings __pidtuning __hotend_pid_tuning]
type: command
enable: {(not printer.idle_timeout.state == 'Printing') and ('extruder' in printer)}
name: Tune Hotend PID
gcode: PID_CALIBRATE HEATER=extruder TARGET=210 WRITE_FILE=1
[menu __mymain __settings __pidtuning __hotbed_pid_tuning]
type: command
enable: {(not printer.idle_timeout.state == "Printing") and ('heater_bed' in printer)}
name: Tune Hotbed PID
gcode: PID_CALIBRATE HEATER=heater_bed TARGET=60 WRITE_FILE=1
[menu __mymain __settings __pidtuning __save_config]
type: command
name: Save config
gcode: SAVE_CONFIG
[menu __mymain __settings __host_restart]
type: command
name: Restart host
enable: {printer.idle_timeout.state == "Idle"}
gcode: RESTART
[menu __mymain __settings __firmware_restart]
type: command
name: Restart FW
enable: {printer.idle_timeout.state == "Idle"}
gcode: FIRMWARE_RESTART