Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Chamber Lighting
- [output_pin caselight]
- pin: P2.5
- #max_power: 1.0
- #kick_start_time: 0.5
- pwm: true
- shutdown_value: 0
- value: 100
- cycle_time: 0.01
- scale: 100
- # Lighting Control
- [gcode_macro lights_off]
- gcode:
- SET_PIN PIN=caselight VALUE=0
- [gcode_macro lights_on]
- gcode:
- SET_PIN PIN=caselight VALUE=100
- [gcode_macro lights_toggle]
- gcode:
- {% if printer["output_pin caselight"].value == 100 %}
- lights_off
- {% else %}
- lights_on
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment