-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdisplay.cfg
228 lines (194 loc) · 5.15 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
#####################################################################
# Display
#####################################################################
[display]
lcd_type: ssd1306
i2c_bus: i2c1a
i2c_mcu = mcu
#contrast: 63
display_group: __voron_display
#x_offset: 2
# Use X offset to shift the display towards the right. Value can be 0 to 3
#vcomh: 0
# Set the Vcomh value on SSD1306/SH1106 displays. This value is
# associated with a "smearing" effect on some OLED displays. The
# value may range from 0 to 63. Default is 0.
# Adjust this value if you get some vertical stripes on your display. (31 seems to be a good value)
#####################################################################
# Custom Glyph Definitions
#####################################################################
[display_glyph chamber]
data:
................
****************
*....*....*....*
*....*....*....*
*....******....*
*..............*
*..............*
*.....****.....*
*.***.*..*.***.*
*.....****.....*
*......**......*
*..............*
*.************.*
*...*......*...*
****************
................
[display_glyph thermometer]
data:
0000000000000000
0000000000000000
0000000000111000
0000000001000100
0000000010010100
0000000100100100
0000001001001000
0000010010010000
0001100100100000
0010001001000000
0100100010000000
0101110100000000
0100100100000000
0010001000000000
0001110000000000
0000000000000000
[display_glyph voron]
data:
......***.......
....*******.....
...*********....
.*************..
*****..***..***.
****..***..****.
***..***..*****.
**..***..******.
******..***..**.
*****..***..***.
****..***..****.
***..***..*****.
.*************..
...*********....
....*******.....
......***.......
[display_glyph voron_heart]
data:
................
..****...*****..
.**************.
******..**..****
*****..**..*****
****..**..******
*******..*******
.*****..**..***.
.****..**..****.
..**..**..****..
...**********...
....********....
.....******.....
......****......
.......**.......
................
[display_glyph ercfcarrot]
data:
........***.....
***....***......
.**....**.......
.****..**.......
...**..*........
...***.*..**....
.........***....
..****..***.....
****...***..*...
***...***..***..
**...***..***...
......*..***..*.
........***..**.
.........*..***.
............***.
................
#####################################################################
# Display Template/Definition
#####################################################################
[display_template _chamber_temperature]
text:
{% set chamber = printer['temperature_sensor chamber'] %}
~chamber~
{ "%3.0f" % (chamber.temperature,) }
~degrees~
[display_template _vprint_status]
text:
{% if printer.display_status.message %}
{ printer.display_status.message }
{% elif printer.idle_timeout.printing_time %}
{% set pos = printer.toolhead.position %}
{ "X%-4.0fY%-4.0fZ%-5.2f" % (pos.x, pos.y, pos.z) }
{% else %}
{" V0.696"}
{% endif %}
[display_data __voron_display extruder]
position: 0, 0
text: { render("_heater_temperature", param_heater_name= printer.toolhead.extruder) }
[display_data __voron_display fan]
position: 0, 10
text:{ render("_fan_speed") }
[display_data __voron_display heater_bed]
position: 1, 0
text: { render("_heater_temperature", param_heater_name="heater_bed") }
[display_data __voron_display chamber]
position: 1, 10
text: { render("_chamber_temperature") }
[display_data __voron_display print_progress]
position: 2, 0
text: { "{:^10.0%}".format(printer.display_status.progress) }
[display_data __voron_display progress_bar]
position: 2, 1 # Draw graphical progress bar after text is written
text: { draw_progress_bar(2, 0, 10, printer.display_status.progress) }
[display_data __voron_display printing_time]
position: 2, 10
text: { "%6s" % (render("_printing_time").strip(),) }
[display_data __voron_display print_status]
position: 3, 0
text : { render("_vprint_status") }
[display_data __voron_display voron_logo]
position: 3, 10
text:
{% if printer.display_status.message %}
{% elif printer.idle_timeout.printing_time %}
{% else %}
~voron~
~voron_heart~
~ercfcarrot~
{% endif %}
#####################################################################
# Display Specific Macros
#####################################################################
## Clear display after Duration
[delayed_gcode _CLEAR_DISPLAY]
gcode:
M117
[delayed_gcode _LCD_INIT_OFF]
initial_duration: 10
gcode:
SET_GCODE_VARIABLE MACRO=DISPLAY VARIABLE=state VALUE='"off"'
[gcode_macro DISPLAY]
variable_state: 'on'
gcode:
{% if printer["gcode_macro DISPLAY"].state == 'on' %}
_DISPLAY_OFF
{% else %}
_DISPLAY_ON
{% endif %}
[gcode_macro _display_state]
gcode:
{action_respond_info("LCD display %s" % (printer["gcode_macro DISPLAY"].state))}
[gcode_macro _DISPLAY_OFF]
## Display off to hinder burn in
gcode:
SET_GCODE_VARIABLE MACRO=DISPLAY VARIABLE=state VALUE='"off"'
_display_state
[gcode_macro _DISPLAY_ON]
## Display on
gcode:
SET_GCODE_VARIABLE MACRO=DISPLAY VARIABLE=state VALUE='"on"'
_display_state