-
Notifications
You must be signed in to change notification settings - Fork 0
/
nevermore.cfg
46 lines (41 loc) · 1.56 KB
/
nevermore.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
## This is a simple include for the Nevermore. To use it with your printer, edit
## the pin definition in line 16 so it matches your printer.
## What you get:
## - a generic fan "Nevermore" which is adjustable in GCODE and in Mainsail/Fluidd
## - Commands in your 12864-controller to turn the fan on/off or adjust in 10%-steps
## - a Macro to turn the fan off some time after the print.
##
## Slicer integration: Add "SET_FAN_SPEED FAN=Nevermore SPEED=1" in your start-macro
## (or less fan depending on your needs, like SPEED=0.8)
## in your end print code, add "UPDATE_DELAYED_GCODE ID=filter_off DURATION=180"
## this keeps your Nevermore running for 180s after the print finishes to clean the chamber a bit more.
[fan_generic filter]
## Nevermore - FAN5 on Octopus
## Adjust if you use a different board or a different terminal.
pin: PA2
[menu __main __control __nevermoreonoff]
type: command
name: Nevermore {'ON' if printer['fan_generic filter'].speed > 0 else 'OFF'}
enable: {'fan_generic filter' in printer}
gcode:
TOGGLE_filter
[menu __main __control __filterspeed]
type: input
enable: {'fan_generic filter' in printer}
name: Filter %: {'%3d' % (menu.input*100)}%
input: {printer["fan_generic filter"].speed}
input_min: 0
input_max: 1
input_step: 0.1
gcode:
SET_FAN_SPEED FAN=filter SPEED={menu.input}
[delayed_gcode filter_off]
gcode:
SET_FAN_SPEED FAN=filter SPEED=0
[gcode_macro TOGGLE_NEVERMORE]
gcode:
{% if printer['fan_generic filter'].speed > 0 %}
SET_FAN_SPEED FAN=filter SPEED=0
{% else %}
SET_FAN_SPEED FAN=filter SPEED=1
{% endif %}