PyTmcStepper 0.7.5__tar.gz → 0.7.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytmcstepper-0.7.5/src/PyTmcStepper.egg-info → pytmcstepper-0.7.7}/PKG-INFO +1 -1
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/setup.cfg +1 -1
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7/src/PyTmcStepper.egg-info}/PKG-INFO +1 -1
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_gpio_board.py +2 -2
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/reg/_tmc220x_reg.py +19 -2
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/tmc_220x.py +4 -2
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/LICENSE +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/README.md +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/pyproject.toml +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/PyTmcStepper.egg-info/SOURCES.txt +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/PyTmcStepper.egg-info/dependency_links.txt +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/PyTmcStepper.egg-info/requires.txt +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/PyTmcStepper.egg-info/top_level.txt +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/__init__.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_exceptions.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_logger.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_math.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_stallguard.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/_tmc_stepperdriver.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/com/__init__.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/com/_tmc_com.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/com/_tmc_com_spi.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/com/_tmc_com_uart.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/enable_control/__init__.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/enable_control/_tmc_ec.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/enable_control/_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/enable_control/_tmc_ec_toff.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/__init__.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc_step_dir.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc_step_reg.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc_vactual.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/reg/__init__.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/reg/_tmc2209_reg.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/reg/_tmc224x_reg.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/reg/_tmc_reg.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/tmc_2208.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/tmc_2209.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/tmc_2240.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc2209.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc2240.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc_com_spi.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc_com_uart.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc_math.py +0 -0
- {pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/tests/test_tmc_move.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
5
5
|
Home-page: https://github.com/Chr157i4n/PyTmcStepper
|
|
6
6
|
Author: Christian Köhlke
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = PyTmcStepper
|
|
3
|
-
version = 0.7.
|
|
3
|
+
version = 0.7.7
|
|
4
4
|
author = Christian Köhlke
|
|
5
5
|
author_email = christian@koehlke.de
|
|
6
6
|
description = This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: This is a Python libary to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi
|
|
5
5
|
Home-page: https://github.com/Chr157i4n/PyTmcStepper
|
|
6
6
|
Author: Christian Köhlke
|
|
@@ -234,7 +234,7 @@ class GpiozeroWrapper(BaseGPIOWrapper):
|
|
|
234
234
|
def gpio_setup(self, pin:int, mode:GpioMode, initial:Gpio=Gpio.LOW, pull_up_down:GpioPUD=GpioPUD.PUD_OFF):
|
|
235
235
|
"""setup GPIO pin"""
|
|
236
236
|
if mode == GpioMode.OUT:
|
|
237
|
-
self._gpios[pin] = self.gpiozero.DigitalOutputDevice(pin)
|
|
237
|
+
self._gpios[pin] = self.gpiozero.DigitalOutputDevice(pin, initial_value =bool(initial))
|
|
238
238
|
else:
|
|
239
239
|
self._gpios[pin] = self.gpiozero.DigitalInputDevice(pin)
|
|
240
240
|
|
|
@@ -327,7 +327,7 @@ class peripheryWrapper(BaseGPIOWrapper):
|
|
|
327
327
|
|
|
328
328
|
board_mapping = {
|
|
329
329
|
"raspberry pi 5": (GpiozeroWrapper, Board.RASPBERRY_PI5, "gpiozero", "https://gpiozero.readthedocs.io/en/stable/installing.html"),
|
|
330
|
-
"raspberry": (
|
|
330
|
+
"raspberry": (GpiozeroWrapper, Board.RASPBERRY_PI, "RPi.GPIO", "https://sourceforge.net/p/raspberry-gpio-python/wiki/install"),
|
|
331
331
|
"jetson": (JetsonGPIOWrapper, Board.NVIDIA_JETSON, "jetson-gpio", "https://github.com/NVIDIA/jetson-gpio"),
|
|
332
332
|
"luckfox": (peripheryWrapper, Board.LUCKFOX_PICO, "periphery", "https://github.com/vsergeev/python-periphery"),
|
|
333
333
|
"orange": (OPiGPIOWrapper, Board.ORANGE_PI, "OPi.GPIO", "https://github.com/rm-hull/OPi.GPIO")
|
|
@@ -84,7 +84,7 @@ class Ioin(TmcReg):
|
|
|
84
84
|
["ms1", 2, 0x1, bool, None, ""],
|
|
85
85
|
["enn", 0, 0x1, bool, None, ""]
|
|
86
86
|
]
|
|
87
|
-
super().__init__(
|
|
87
|
+
super().__init__(0x6, "IOIN", tmc_com, reg_map)
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
class IHoldIRun(TmcReg):
|
|
@@ -144,7 +144,7 @@ class VActual(TmcReg):
|
|
|
144
144
|
"""constructor"""
|
|
145
145
|
|
|
146
146
|
reg_map = [
|
|
147
|
-
["vactual", 0,
|
|
147
|
+
["vactual", 0, 0xFFFFFF, int, None, ""]
|
|
148
148
|
]
|
|
149
149
|
super().__init__(0x22, "VACTUAL", tmc_com, reg_map)
|
|
150
150
|
|
|
@@ -195,6 +195,23 @@ class ChopConf(TmcReg):
|
|
|
195
195
|
mres_bit = 8 - mres_bit
|
|
196
196
|
self.mres = mres_bit
|
|
197
197
|
|
|
198
|
+
class PwmConf(TmcReg):
|
|
199
|
+
"""PWMCONF register class"""
|
|
200
|
+
|
|
201
|
+
def __init__(self, tmc_com: TmcCom):
|
|
202
|
+
"""constructor"""
|
|
203
|
+
|
|
204
|
+
reg_map = [
|
|
205
|
+
["pwm_lim", 28, 0xF, int, None, ""],
|
|
206
|
+
["pwm_reg", 24, 0xF, int, None, ""],
|
|
207
|
+
["freewheel", 20, 0x3, int, None, ""],
|
|
208
|
+
["pwm_autograd", 19, 0x1, bool, None, ""],
|
|
209
|
+
["pwm_autoscale", 18, 0x1, bool, None, ""],
|
|
210
|
+
["pwm_freq", 16, 0x3, int, None, ""],
|
|
211
|
+
["pwm_grad", 8, 0xFF, int, None, ""],
|
|
212
|
+
["pwm_ofs", 0, 0xFF, int, None, ""]
|
|
213
|
+
]
|
|
214
|
+
super().__init__(0x70, "PWMCONF", tmc_com, reg_map)
|
|
198
215
|
|
|
199
216
|
class DrvStatus(TmcReg):
|
|
200
217
|
"""DRVSTATUS register class"""
|
|
@@ -76,9 +76,10 @@ class Tmc220x(TmcStepperDriver):
|
|
|
76
76
|
Defaults to None (messages are logged in the format
|
|
77
77
|
'%(asctime)s - %(name)s - %(levelname)s - %(message)s').
|
|
78
78
|
"""
|
|
79
|
-
|
|
79
|
+
if logprefix is None:
|
|
80
|
+
logprefix = f"TMC2209 {driver_address}"
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
super().__init__(tmc_ec, tmc_mc, gpio_mode, loglevel, logprefix, log_handlers, log_formatter)
|
|
82
83
|
|
|
83
84
|
if tmc_com is not None:
|
|
84
85
|
self.tmc_com = tmc_com
|
|
@@ -105,6 +106,7 @@ class Tmc220x(TmcStepperDriver):
|
|
|
105
106
|
VActual,
|
|
106
107
|
MsCnt,
|
|
107
108
|
ChopConf,
|
|
109
|
+
PwmConf,
|
|
108
110
|
DrvStatus
|
|
109
111
|
}
|
|
110
112
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytmcstepper-0.7.5 → pytmcstepper-0.7.7}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|