xbst

Untitled

Feb 21st, 2021
7,684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # Chamber Lighting
  2. [output_pin caselight]
  3. pin: P2.5
  4. #max_power: 1.0
  5. #kick_start_time: 0.5
  6. pwm: true
  7. shutdown_value: 0
  8. value: 100
  9. cycle_time: 0.01
  10. scale: 100
  11.  
  12. # Lighting Control
  13. [gcode_macro lights_off]
  14. gcode:
  15. SET_PIN PIN=caselight VALUE=0
  16.  
  17. [gcode_macro lights_on]
  18. gcode:
  19. SET_PIN PIN=caselight VALUE=100
  20.  
  21. [gcode_macro lights_toggle]
  22. gcode:
  23. {% if printer["output_pin caselight"].value == 100 %}
  24. lights_off
  25. {% else %}
  26. lights_on
  27. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment