mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 13:17:55 -06:00
chipmisc: Add support for statically configured output pins
Allow digital and PWM output pins to be setup via new config sections. This makes it easier to setup pin configurations. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6ab8567d51
commit
9d75c3b0ca
7 changed files with 193 additions and 74 deletions
|
@ -6,7 +6,7 @@
|
|||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
import sys, optparse, ConfigParser, logging, time, threading
|
||||
import util, reactor, queuelogger, msgproto, gcode
|
||||
import pins, mcu, extruder, fan, heater, toolhead
|
||||
import pins, mcu, chipmisc, extruder, fan, heater, toolhead
|
||||
|
||||
message_ready = "Printer is ready"
|
||||
|
||||
|
@ -172,7 +172,7 @@ class Printer:
|
|||
ConfigLogger(self.fileconfig, self.bglogger)
|
||||
# Create printer components
|
||||
config = ConfigWrapper(self, 'printer')
|
||||
for m in [pins, mcu, extruder, fan, heater, toolhead]:
|
||||
for m in [pins, mcu, chipmisc, extruder, fan, heater, toolhead]:
|
||||
m.add_printer_objects(self, config)
|
||||
self.mcu = self.objects['mcu']
|
||||
# Validate that there are no undefined parameters in the config file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue