adding files
This commit is contained in:
12
my-3d/custom-m-codes/M104
Normal file
12
my-3d/custom-m-codes/M104
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python3
|
||||
# M104: Set Extruder Temperature
|
||||
import sys
|
||||
import hal
|
||||
|
||||
_dummy = hal.component("dummy")
|
||||
|
||||
P = sys.argv[1]
|
||||
setVal = str(int(float(P))) #convert from float-in-a-string to int-in-a-string
|
||||
hal.set_p("my-temp-ctrl.ref-temp", setVal)
|
||||
|
||||
print("M104 P" + setVal)
|
||||
Reference in New Issue
Block a user