diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-12 23:28:22 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-06-28 16:59:26 -0400 |
commit | 7702f0a027686ccba4d45417c79c353c00e8c712 (patch) | |
tree | b48a98efea6a4fd1b4f135b60028ade58cb14e27 /klippy/extras/tmc2208.py | |
parent | 041831f93a50426efc103a13917a7cdbef99a56e (diff) | |
download | kutter-7702f0a027686ccba4d45417c79c353c00e8c712.tar.gz kutter-7702f0a027686ccba4d45417c79c353c00e8c712.tar.xz kutter-7702f0a027686ccba4d45417c79c353c00e8c712.zip |
tmc: Add support for virtual enable pins
Add support for enabling the stepper via the communication channel.
This improves support for boards with a shared enable line.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc2208.py')
-rw-r--r-- | klippy/extras/tmc2208.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/tmc2208.py b/klippy/extras/tmc2208.py index 4bcdabd8..6b004fb1 100644 --- a/klippy/extras/tmc2208.py +++ b/klippy/extras/tmc2208.py @@ -187,6 +187,8 @@ class TMC2208: # Setup mcu communication self.fields = tmc.FieldHelper(Fields, SignedFields, FieldFormatters) self.mcu_tmc = tmc_uart.MCU_TMC_uart(config, Registers, self.fields) + # Allow virtual pins to be created + tmc.TMCVirtualPinHelper(config, self.mcu_tmc) # Register commands cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc) cmdhelper.setup_register_dump(ReadRegisters, self.read_translate) |