-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain
84 lines (66 loc) · 2.16 KB
/
main
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
; Duet 12864 Menu Files
;
; This is a set of menu files for running a 12864 display with a duet3D control board.
;
; Written by Jadon Miller - 2/27/2019
; Partially adapted from the work of tinkerlifeprojects on Github.
;
; File "main"
;
; This is the file for the overview screen of the menu system.
; On the top of the screen we have a menu that updates based
; on the print status. In the middle we show the temperatures and fan
; speeds, and the bottom shows the percentage complete and time left according
; to filament usage, or the axis positions if you're not in a print. There
; is a scroll button on the right to go to the "altMain" menu.
; --------------- "Not Printing" Menu Buttons ---------------
button R0 C0 F0 V5 W42 T"Print" A"menu selectSD"
image V5 L"imgs/vline.img"
button V5 W42 T"Move" A"menu moveAxis"
image V5 L"imgs/vline.img"
button V5 W42 T"Menu" A"menu mainMenu"
; --------------- "Printing" Menu Buttons ---------------
button R0 C0 F0 W64 V2 T"Pause" A"M25"
image V2 L"imgs/vline.img"
button W64 V2 T"Info" A"menu printInfo"
; --------------- "Paused" Menu Buttons ---------------
button R0 C0 F0 W42 V6 T"Resume" A"M24"
image V6 L"imgs/vline.img"
button W42 V6 T"Menu" A"menu mainMenu"
image V6 L"imgs/vline.img"
button W42 V6 T"Abort" A"menu confirmAbort"
; --------------- Main Overview ---------------
; Note: this section may need modified if you use different heater and fan numbers.
image R11 C0 L"imgs/hline.img"
; Bed Temp
image R14 C25 L"imgs/bed.img"
alter R14 C40 N180 W20 H2
text T" / "
value N80 W20
text T"°C"
; Hotend Temp
image R26 C25 L"imgs/temp.img"
alter C40 N100 W20 H2
text T" / "
value N0 W20
text T"°C"
; Fan Speed
image R38 C25 L"imgs/fan.img"
alter C52 N300 W25 H1
button C80 F0 T"OFF" A"M106 P0 S0"
; --------------- Scroll Button ---------------
button R25 C104 F1 T" » " A"menu altMain"
; --------------- Axis Positions ---------------
image R53 C0 L"imgs/hline.img"
;"Not Actively Printing" Commands
text V5 R54 C15 F0 T"X "
value V5 N510 W25
text V5 T" Y "
value V5 N511 W25
text V5 T" Z "
value V5 N512 D2 W30
;"Actively Printing"
value V4 R54 C4 W34 H0 N535 D0
text V4 C46 T"Z "
value V4 N512 D2
value V4 C85 W40 H2 N536