adding files

This commit is contained in:
2026-03-21 23:48:08 +01:00
parent eba2b73dec
commit 18f86cfd1e
105 changed files with 13770 additions and 0 deletions

12
my-3d/custom-m-codes/M104 Normal file
View 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)