preheat: add heater_generic

This commit is contained in:
Jordan Ruthe
2021-02-19 15:21:50 -05:00
parent 56731e77f6
commit 0c73b3831b
5 changed files with 61 additions and 33 deletions

View File

@@ -40,6 +40,10 @@ class KlippyGcodes:
def set_ext_temp(temp, tool=0):
return "%s T%s S%s" % (KlippyGcodes.SET_EXT_TEMP, str(tool), str(temp))
@staticmethod
def set_heater_temp(heater, temp):
return 'SET_HEATER_TEMPERATURE heater="%s" target=%s' % (heater, str(temp))
@staticmethod
def set_fan_speed(speed):
speed = str( int(float(int(speed) % 101)/100*255) )