forked from MarcoAntonini/RepRapLcd4D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GfxInterfaceConst.inc
240 lines (190 loc) · 7.56 KB
/
GfxInterfaceConst.inc
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
/***********************************************************************************
* Object indexes into ImageControl
************************************************************************************/
#CONST
iImage1 // offset 0x0
iImage2 // offset 0x10C00
iGauge1 // offset 0x14600
iGauge2 // offset 0x65600
iGauge3 // offset 0xB6600
iImage3 // offset 0x107600
iWinbutton1 // offset 0x107800
iWinbutton2 // offset 0x108400
iWinbutton3 // offset 0x109000
iWinbutton4 // offset 0x109800
iWinbutton5 // offset 0x10A000
iWinbutton6 // offset 0x10AC00
iLed2 // offset 0x10B800
iLed3 // offset 0x10C600
iLed1 // offset 0x10D000
iTrackbar1 // offset 0x10DE00
iWinbutton9 // offset 0x1C4000
iWinbutton7 // offset 0x1C5C00
iWinbutton8 // offset 0x1C6200
iWinbutton10 // offset 0x1C6800
iWinbutton13 // offset 0x1C8400
iWinbutton14 // offset 0x1C8C00
iWinbutton11 // offset 0x1C9400
iWinbutton12 // offset 0x1CA200
iWinbutton15 // offset 0x1CB000
iWinbutton16 // offset 0x1CC200
iWinbutton17 // offset 0x1CD400
iWinbutton18 // offset 0x1CE800
iWinbutton19 // offset 0x1CFC00
iWinbutton20 // offset 0x1D0200
iWinbutton22 // offset 0x1D0800
iWinbutton23 // offset 0x1D0E00
iWinbutton26 // offset 0x1D1400
iWinbutton27 // offset 0x1D1A00
iWinbutton28 // offset 0x1D2000
iWinbutton29 // offset 0x1D2600
iWinbutton30 // offset 0x1D2C00
iWinbutton21 // offset 0x1D3400
iImage4 // offset 0x1D4800
#END
var disk, hndl ;
/***********************************************************************************
* Touch Region Axis Move
************************************************************************************/
#CONST
HOMING_ACTION_INDEX 22
#END
#DATA
word AXIS_MOVE_TOUCH_REGION X_PLUS_FAST,X_PLUS_NORMAL,X_PLUS_SLOW,X_PLUS_VSLOW,
X_MINUS_FAST,X_MINUS_NORMAL,X_MINUS_SLOW,X_MINUS_VSLOW,
Y_PLUS_FAST,Y_PLUS_NORMAL,Y_PLUS_SLOW,Y_PLUS_VSLOW,
Y_MINUS_FAST,Y_MINUS_NORMAL,Y_MINUS_SLOW,Y_MINUS_VSLOW,
Z_PLUS_FAST,Z_PLUS_NORMAL,Z_PLUS_SLOW,
Z_MINUS_FAST,Z_MINUS_NORMAL,Z_MINUS_SLOW,
HOMING,X_HOMING,Y_HOMING,Z_HOMING
word AXIS_MOVE_TOUCH_ACTION X_PLUS_FAST_ACT,X_PLUS_NORMAL_ACT,X_PLUS_SLOW_ACT,X_PLUS_VSLOW_ACT,
X_MINUS_FAST_ACT,X_MINUS_NORMAL_ACT,X_MINUS_SLOW_ACT,X_MINUS_VSLOW_ACT,
Y_PLUS_FAST_ACT,Y_PLUS_NORMAL_ACT,Y_PLUS_SLOW_ACT,Y_PLUS_VSLOW_ACT,
Y_MINUS_FAST_ACT,Y_MINUS_NORMAL_ACT,Y_MINUS_SLOW_ACT,Y_MINUS_VSLOW_ACT,
Z_PLUS_FAST_ACT,Z_PLUS_NORMAL_ACT,Z_PLUS_SLOW_ACT,
Z_MINUS_FAST_ACT,Z_MINUS_NORMAL_ACT,Z_MINUS_SLOW_ACT,
HOMING_ACT,X_HOMING_ACT,Y_HOMING_ACT,Z_HOMING_ACT
//X Touch Region
word X_PLUS_FAST 165, 60, 180, 117
word X_PLUS_NORMAL 147, 64, 160, 112
word X_PLUS_SLOW 128, 65, 141, 112
word X_PLUS_VSLOW 104,80,126,97
word X_MINUS_FAST 8, 60, 23, 117
word X_MINUS_NORMAL 28, 64, 41, 112
word X_MINUS_SLOW 48, 64, 61, 111
word X_MINUS_VSLOW 64, 80, 86, 97
//Action
byte X_PLUS_FAST_ACT "G1 X100 F12000\0"
byte X_PLUS_NORMAL_ACT "G1 X10 F12000\0"
byte X_PLUS_SLOW_ACT "G1 X1 F12000\0"
byte X_PLUS_VSLOW_ACT "G1 X0.1 F12000\0"
byte X_MINUS_FAST_ACT "G1 X-100 F12000\0"
byte X_MINUS_NORMAL_ACT "G1 X-10 F12000\0"
byte X_MINUS_SLOW_ACT "G1 X-1 F12000\0"
byte X_MINUS_VSLOW_ACT "G1 X-0.1 F12000\0"
//Y Touch Region
word Y_PLUS_FAST 48,7,135,22
word Y_PLUS_NORMAL 66,27,120,39
word Y_PLUS_SLOW 72,46,118,56
word Y_PLUS_VSLOW 80,60,106,76
word Y_MINUS_FAST 60, 155, 134, 168
word Y_MINUS_NORMAL 69, 137, 122, 149
word Y_MINUS_SLOW 76, 119, 113, 134
word Y_MINUS_VSLOW 82,100,107,116
//Action
byte Y_PLUS_FAST_ACT "G1 Y100 F12000\0"
byte Y_PLUS_NORMAL_ACT "G1 Y10 F12000\0"
byte Y_PLUS_SLOW_ACT "G1 Y1 F12000\0"
byte Y_PLUS_VSLOW_ACT "G1 Y0.1 F12000\0"
byte Y_MINUS_FAST_ACT "G1 Y-100 F12000\0"
byte Y_MINUS_NORMAL_ACT "G1 Y-10 F12000\0"
byte Y_MINUS_SLOW_ACT "G1 Y-1 F12000\0"
byte Y_MINUS_VSLOW_ACT "G1 Y-0.1 F12000\0"
//Z Touch region
word Z_PLUS_FAST 196, 28, 220, 44
word Z_PLUS_NORMAL 196, 48, 220, 63
word Z_PLUS_SLOW 196, 67, 220, 83
word Z_MINUS_FAST 196, 128, 218, 146
word Z_MINUS_NORMAL 196, 109, 220, 124
word Z_MINUS_SLOW 196, 92, 220, 107
//Action
byte Z_PLUS_FAST_ACT "G1 Z10 F1000\0"
byte Z_PLUS_NORMAL_ACT "G1 Z1 F1000\0"
byte Z_PLUS_SLOW_ACT "G1 Z0.1 F1000\0"
byte Z_MINUS_FAST_ACT "G1 Z-10 F1000\0"
byte Z_MINUS_NORMAL_ACT "G1 Z-1 F1000\0"
byte Z_MINUS_SLOW_ACT "G1 Z-0.1 F1000\0"
//Homing
word HOMING 4, 140, 35, 168
word X_HOMING 4, 4, 35, 32
word Y_HOMING 152, 4, 183, 32
word Z_HOMING 152, 140, 183, 168
//Action
byte HOMING_ACT "G28\0"
byte X_HOMING_ACT "G28 X0\0"
byte Y_HOMING_ACT "G28 Y0\0"
byte Z_HOMING_ACT "G28 Z0\0"
#END
/***********************************************************************************
* Touch Region Button Set
************************************************************************************/
#CONST
EXTMM_ACT 0
EXTMM_MIN_ACT 1
EXTTEMP_ACT 2
BEDTEMP_ACT 3
#END
#DATA
word BUTTON_SET_NUMBER BUTTON_EXTMM,BUTTON_EXTMM_MIN,BUTTON_EXTTEMP,BUTTON_BEDTEMP
word BUTTON_EXTMM 60, 184, 87, 198
word BUTTON_EXTMM_MIN 60, 199, 87, 213
word BUTTON_EXTTEMP 172, 184, 199, 198
word BUTTON_BEDTEMP 172, 199, 199, 213
word TRACKPAD_CONTAINER 28, 140, 212, 176
word WIN_SDCARD_CONTAINER 0, 0, 320, 215
#END
/***********************************************************************************
* Button SDCard File List
************************************************************************************/
#DATA
word PRINTING_OPTION_TOUCH_REGION 228, 132, 310, 214
word BUTTON_FILES_Y 10,32,54,76,98,120,142,164
word BUTTON_FILES_X 10,112,214
#END
#CONST
BUTTON_FILE_WIDTH 98
BUTTON_FILE_HEIGHT 17
#END
/***********************************************************************************
* Z Calibration
************************************************************************************/
#DATA
word BUTTON_Z_CAL_TOUCH_REGION 104, 228, 203, 239
word WIN_Z_CAL_TOUCH_REGION 36, 50, 226, 203
word BUTTON_Z_PROBE_TOUCH_REGION 112, 170, 170, 184
word BUTTON_Z_OFFSET_TOUCH_REGION 112, 144, 170, 158
word BUTTON_Z_INT_PLUS_TOUCH_REGION 112, 61, 128, 74
word BUTTON_Z_INT_MINUS_TOUCH_REGION 112, 115, 128, 128
word BUTTON_Z_DEC1_PLUS_TOUCH_REGION 147, 61, 163, 74
word BUTTON_Z_DEC1_MINUS_TOUCH_REGION 147, 115, 163, 128
word BUTTON_Z_DEC2_PLUS_TOUCH_REGION 171, 61, 187, 74
word BUTTON_Z_DEC2_MINUS_TOUCH_REGION 171, 115, 187, 128
word BUTTON_Z_DEC3_PLUS_TOUCH_REGION 195, 61, 211, 74
word BUTTON_Z_DEC3_MINUS_TOUCH_REGION 195, 115, 211, 128
word BUTTON_Z_SIGN_TOUCH_REGION 44, 86, 77, 100
#END
/***********************************************************************************
* Messages
************************************************************************************/
#DATA
byte MSG_OP_NOT_PERMITTED "Operation not permitted while printing.\0"
byte MSG_SET_HEATER "set Heater target to \0"
byte MSG_SET_BED "set Bed target to \0"
byte MSG_HEATER_SHUTDOWN "Heater shutdown\0"
byte MSG_BED_SHUTDOWN "Bed shutdown\0"
byte MSG_CENT " C\0"
byte MSG_HOMING "Homing..\0"
byte MSG_MM_OF_FILAMENT "mm of filament..\0"
byte MSG_COLD_EXTR_PREVENT "Cold Extrusion Prevent!\0"
byte MSG_SWITCH_EXTRUDER "Switch Extruder to T\0"
#END