-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchamber.cfg
41 lines (35 loc) · 981 Bytes
/
chamber.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
[temperature_sensor chamber]
sensor_type: AHT10
i2c_address: 56
i2c_software_scl_pin: PA9 #Blue wire
i2c_software_sda_pin: PA10 #White wire
i2c_speed: 100000
aht10_report_time: 5
[gcode_macro M191]
gcode:
{% set s = params.S|float %}
{% if s == 0 %}
M118 Chamber heating cancelled! # If target temperature is 0, do nothing
{% else %}
M118 Heating chamber to temperature...
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={s}
M140 S100
TEMPERATURE_WAIT SENSOR='temperature_sensor chamber' MINIMUM={s-1}
M118 Chamber at target temperature...
{% endif %}
[gcode_macro M141]
gcode:
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={params.S|default(0)}
[output_pin caselight]
pin: PB3
pwm: true
shutdown_value: 0
value: 100
cycle_time: 0.01
scale: 100
[gcode_macro lights_off]
gcode:
SET_PIN PIN=caselight VALUE=0
[gcode_macro lights_on]
gcode:
SET_PIN PIN=caselight VALUE=100