pins: add pwm_tool
This commit is contained in:
parent
fc7f12b24d
commit
bdc48d37a8
@ -197,6 +197,9 @@ class Printer:
|
||||
fans.extend(iter(self.get_config_section_list(f"{fan_type} ")))
|
||||
return fans
|
||||
|
||||
def get_pwm_tools(self):
|
||||
return self.get_config_section_list("pwm_tool ")
|
||||
|
||||
def get_output_pins(self):
|
||||
return self.get_config_section_list("output_pin ")
|
||||
|
||||
|
@ -23,7 +23,7 @@ class Panel(ScreenPanel):
|
||||
self.content.add(scroll)
|
||||
|
||||
def load_pins(self):
|
||||
output_pins = self._printer.get_output_pins()
|
||||
output_pins = self._printer.get_pwm_tools() + self._printer.get_output_pins()
|
||||
for pin in output_pins:
|
||||
# Support for hiding devices by name
|
||||
name = pin.split()[1]
|
||||
|
@ -282,7 +282,7 @@ class KlipperScreen(Gtk.Window):
|
||||
requested_updates['objects'][f] = ["speed"]
|
||||
for f in self.printer.get_filament_sensors():
|
||||
requested_updates['objects'][f] = ["enabled", "filament_detected"]
|
||||
for p in self.printer.get_output_pins():
|
||||
for p in self.printer.get_pwm_tools() + self.printer.get_output_pins():
|
||||
requested_updates['objects'][p] = ["value"]
|
||||
for led in self.printer.get_leds():
|
||||
requested_updates['objects'][led] = ["color_data"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user