mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
output_pin: Move pwm and digital output pins to new module in extras/
Rename the digital_output, pwm_output, and static_pwm_output config sections to output_pin and move to a new module in the extras/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
66eefa1da8
commit
ef8c464d97
4 changed files with 59 additions and 87 deletions
|
@ -7,7 +7,7 @@
|
|||
import sys, os, optparse, logging, time, threading
|
||||
import collections, ConfigParser, importlib
|
||||
import util, reactor, queuelogger, msgproto
|
||||
import gcode, pins, mcu, chipmisc, toolhead, extruder, heater
|
||||
import gcode, pins, mcu, toolhead, extruder, heater
|
||||
|
||||
message_ready = "Printer is ready"
|
||||
|
||||
|
@ -209,7 +209,7 @@ class Printer:
|
|||
m.add_printer_objects(self, config)
|
||||
for section in fileconfig.sections():
|
||||
self.try_load_module(config, section)
|
||||
for m in [chipmisc, toolhead, extruder, heater]:
|
||||
for m in [toolhead, extruder, heater]:
|
||||
m.add_printer_objects(self, config)
|
||||
# Validate that there are no undefined parameters in the config file
|
||||
valid_sections = { s: 1 for s, o in self.all_config_options }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue