PyTmcStepper 0.16.0__tar.gz → 0.18.2__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.16.0 → pytmcstepper-0.18.2}/PKG-INFO +21 -2
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/README.md +20 -1
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/pyproject.toml +59 -47
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/PyTmcStepper.egg-info/PKG-INFO +21 -2
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/LICENSE +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/setup.cfg +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/PyTmcStepper.egg-info/SOURCES.txt +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/PyTmcStepper.egg-info/dependency_links.txt +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/PyTmcStepper.egg-info/requires.txt +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/PyTmcStepper.egg-info/top_level.txt +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_exceptions.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_math.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_stallguard.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_stepperdriver.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_validation.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/_tmc_xxxx.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi_base.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi_circuitpython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi_ftdi.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi_micropython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_uart.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_uart_base.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_uart_circuitpython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_uart_micropython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/enable_control/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/enable_control/_tmc_ec.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/enable_control/_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/enable_control/_tmc_ec_toff.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_int_ramp_generator.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_dir.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_vactual.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/platform_utils.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc2209_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc220x_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc224x_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc5160_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc_reg.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/reg/_tmc_shared_regs.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_2208.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_2209.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_220x.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_2240.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_5160.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_base.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_circuitpython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_ftdi.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_gpiozero.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_micropython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_periphery.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_rpi_gpio.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/__init__.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/_tmc_logger_base.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/_tmc_logger_cpython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/_tmc_logger_micropython.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc2209.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc2240.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_com_spi.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_com_uart.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_ec_pin.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_math.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_modules.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_move.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_set_current.py +0 -0
- {pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/tests/test_tmc_stallguard.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.18.2
|
|
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
|
Author-email: Christian Köhlke <christian@koehlke.de>
|
|
6
6
|
License-Expression: GPL-3.0
|
|
@@ -37,6 +37,9 @@ Dynamic: license-file
|
|
|
37
37
|
[](https://pypi.org/project/PyTmcStepper)
|
|
38
38
|
[](https://GitHub.com/Chr157i4n/PyTmcStepper/issues/)
|
|
39
39
|
|
|
40
|
+
[](https://github.com/Chr157i4n/PyTmcStepper/actions/workflows/test.yml)
|
|
41
|
+

|
|
42
|
+
|
|
40
43
|
\
|
|
41
44
|
\
|
|
42
45
|
This is a Python library to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi.
|
|
@@ -281,7 +284,9 @@ You can also use MicroPico to run the demo script by opening one and then pressi
|
|
|
281
284
|
The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
|
|
282
285
|
|
|
283
286
|
```python
|
|
284
|
-
from tmc_driver
|
|
287
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
288
|
+
from tmc_driver.com import TmcComUart
|
|
289
|
+
|
|
285
290
|
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
286
291
|
|
|
287
292
|
tmc.set_direction_reg(False)
|
|
@@ -302,6 +307,20 @@ tmc.run_to_position_steps(0)
|
|
|
302
307
|
tmc.set_motor_enabled(False)
|
|
303
308
|
```
|
|
304
309
|
|
|
310
|
+
special register access:
|
|
311
|
+
|
|
312
|
+
```python
|
|
313
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
314
|
+
from tmc_driver.com import TmcComUart
|
|
315
|
+
|
|
316
|
+
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
317
|
+
|
|
318
|
+
tmc.chopconf.read() # read register from the driver
|
|
319
|
+
print(tmc.chopconf.intpol) # print current interpolation setting
|
|
320
|
+
tmc.chopconf.intpol = True # enable interpolation
|
|
321
|
+
tmc.chopconf.write() # write register to the driver
|
|
322
|
+
```
|
|
323
|
+
|
|
305
324
|
## Troubleshoot
|
|
306
325
|
|
|
307
326
|
If you have questions please check out the [Wiki](https://github.com/Chr157i4n/PyTmcStepper/wiki) and the other issues.
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
[](https://pypi.org/project/PyTmcStepper)
|
|
6
6
|
[](https://GitHub.com/Chr157i4n/PyTmcStepper/issues/)
|
|
7
7
|
|
|
8
|
+
[](https://github.com/Chr157i4n/PyTmcStepper/actions/workflows/test.yml)
|
|
9
|
+

|
|
10
|
+
|
|
8
11
|
\
|
|
9
12
|
\
|
|
10
13
|
This is a Python library to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi.
|
|
@@ -249,7 +252,9 @@ You can also use MicroPico to run the demo script by opening one and then pressi
|
|
|
249
252
|
The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
|
|
250
253
|
|
|
251
254
|
```python
|
|
252
|
-
from tmc_driver
|
|
255
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
256
|
+
from tmc_driver.com import TmcComUart
|
|
257
|
+
|
|
253
258
|
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
254
259
|
|
|
255
260
|
tmc.set_direction_reg(False)
|
|
@@ -270,6 +275,20 @@ tmc.run_to_position_steps(0)
|
|
|
270
275
|
tmc.set_motor_enabled(False)
|
|
271
276
|
```
|
|
272
277
|
|
|
278
|
+
special register access:
|
|
279
|
+
|
|
280
|
+
```python
|
|
281
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
282
|
+
from tmc_driver.com import TmcComUart
|
|
283
|
+
|
|
284
|
+
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
285
|
+
|
|
286
|
+
tmc.chopconf.read() # read register from the driver
|
|
287
|
+
print(tmc.chopconf.intpol) # print current interpolation setting
|
|
288
|
+
tmc.chopconf.intpol = True # enable interpolation
|
|
289
|
+
tmc.chopconf.write() # write register to the driver
|
|
290
|
+
```
|
|
291
|
+
|
|
273
292
|
## Troubleshoot
|
|
274
293
|
|
|
275
294
|
If you have questions please check out the [Wiki](https://github.com/Chr157i4n/PyTmcStepper/wiki) and the other issues.
|
|
@@ -1,47 +1,59 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=42", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "PyTmcStepper"
|
|
7
|
-
version = "0.
|
|
8
|
-
authors = [{ name = "Christian Köhlke", email = "christian@koehlke.de" }]
|
|
9
|
-
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"
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
license = "GPL-3.0"
|
|
12
|
-
requires-python = ">=3.10"
|
|
13
|
-
classifiers = [
|
|
14
|
-
"Programming Language :: Python :: 3",
|
|
15
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
-
"Programming Language :: Python :: Implementation :: MicroPython",
|
|
17
|
-
"Operating System :: POSIX :: Linux",
|
|
18
|
-
"Development Status :: 4 - Beta",
|
|
19
|
-
"Intended Audience :: Developers",
|
|
20
|
-
"Natural Language :: English",
|
|
21
|
-
"Topic :: System :: Hardware :: Hardware Drivers",
|
|
22
|
-
]
|
|
23
|
-
dependencies = ["pyserial"]
|
|
24
|
-
|
|
25
|
-
[project.urls]
|
|
26
|
-
Homepage = "https://github.com/Chr157i4n/PyTmcStepper"
|
|
27
|
-
"Bug Tracker" = "https://github.com/Chr157i4n/PyTmcStepper/issues"
|
|
28
|
-
|
|
29
|
-
[project.optional-dependencies]
|
|
30
|
-
RASPBERRY_PI = ["RPi.GPIO"]
|
|
31
|
-
RASPBERRY_PI5 = ["gpiozero"]
|
|
32
|
-
NVIDIA_JETSON = ["Jetson.GPIO"]
|
|
33
|
-
LUCKFOX_PICO = ["python-periphery"]
|
|
34
|
-
ORANGE_PI = ["OPi.GPIO"]
|
|
35
|
-
|
|
36
|
-
[tool.setuptools.packages.find]
|
|
37
|
-
where = ["src"]
|
|
38
|
-
|
|
39
|
-
[tool.pylint."messages control"]
|
|
40
|
-
disable = "C0103,W0511,W0012,R0801"
|
|
41
|
-
|
|
42
|
-
[tool.pylint.main]
|
|
43
|
-
ignored-modules = "machine"
|
|
44
|
-
unsafe-load-any-extension = true
|
|
45
|
-
|
|
46
|
-
[tool.pylint.format]
|
|
47
|
-
max-line-length = 160
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=42", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "PyTmcStepper"
|
|
7
|
+
version = "0.18.2"
|
|
8
|
+
authors = [{ name = "Christian Köhlke", email = "christian@koehlke.de" }]
|
|
9
|
+
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"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = "GPL-3.0"
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Programming Language :: Python :: Implementation :: MicroPython",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Natural Language :: English",
|
|
21
|
+
"Topic :: System :: Hardware :: Hardware Drivers",
|
|
22
|
+
]
|
|
23
|
+
dependencies = ["pyserial"]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://github.com/Chr157i4n/PyTmcStepper"
|
|
27
|
+
"Bug Tracker" = "https://github.com/Chr157i4n/PyTmcStepper/issues"
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
RASPBERRY_PI = ["RPi.GPIO"]
|
|
31
|
+
RASPBERRY_PI5 = ["gpiozero"]
|
|
32
|
+
NVIDIA_JETSON = ["Jetson.GPIO"]
|
|
33
|
+
LUCKFOX_PICO = ["python-periphery"]
|
|
34
|
+
ORANGE_PI = ["OPi.GPIO"]
|
|
35
|
+
|
|
36
|
+
[tool.setuptools.packages.find]
|
|
37
|
+
where = ["src"]
|
|
38
|
+
|
|
39
|
+
[tool.pylint."messages control"]
|
|
40
|
+
disable = "C0103,W0511,W0012,R0801"
|
|
41
|
+
|
|
42
|
+
[tool.pylint.main]
|
|
43
|
+
ignored-modules = "machine"
|
|
44
|
+
unsafe-load-any-extension = true
|
|
45
|
+
|
|
46
|
+
[tool.pylint.format]
|
|
47
|
+
max-line-length = 160
|
|
48
|
+
|
|
49
|
+
[tool.coverage.run]
|
|
50
|
+
relative_files = true
|
|
51
|
+
source = ["src"]
|
|
52
|
+
|
|
53
|
+
[tool.semantic_release]
|
|
54
|
+
branch = "main"
|
|
55
|
+
version_toml = ["pyproject.toml:project.version"]
|
|
56
|
+
build_command = "pip install build && python -m build"
|
|
57
|
+
changelog_file = 'CHANGELOG.md'
|
|
58
|
+
commit = true
|
|
59
|
+
allow_zero_version = true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyTmcStepper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.18.2
|
|
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
|
Author-email: Christian Köhlke <christian@koehlke.de>
|
|
6
6
|
License-Expression: GPL-3.0
|
|
@@ -37,6 +37,9 @@ Dynamic: license-file
|
|
|
37
37
|
[](https://pypi.org/project/PyTmcStepper)
|
|
38
38
|
[](https://GitHub.com/Chr157i4n/PyTmcStepper/issues/)
|
|
39
39
|
|
|
40
|
+
[](https://github.com/Chr157i4n/PyTmcStepper/actions/workflows/test.yml)
|
|
41
|
+

|
|
42
|
+
|
|
40
43
|
\
|
|
41
44
|
\
|
|
42
45
|
This is a Python library to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi.
|
|
@@ -281,7 +284,9 @@ You can also use MicroPico to run the demo script by opening one and then pressi
|
|
|
281
284
|
The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
|
|
282
285
|
|
|
283
286
|
```python
|
|
284
|
-
from tmc_driver
|
|
287
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
288
|
+
from tmc_driver.com import TmcComUart
|
|
289
|
+
|
|
285
290
|
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
286
291
|
|
|
287
292
|
tmc.set_direction_reg(False)
|
|
@@ -302,6 +307,20 @@ tmc.run_to_position_steps(0)
|
|
|
302
307
|
tmc.set_motor_enabled(False)
|
|
303
308
|
```
|
|
304
309
|
|
|
310
|
+
special register access:
|
|
311
|
+
|
|
312
|
+
```python
|
|
313
|
+
from tmc_driver import Tmc2209, TmcEnableControlPin, TmcMotionControlStepDir
|
|
314
|
+
from tmc_driver.com import TmcComUart
|
|
315
|
+
|
|
316
|
+
tmc = Tmc2209(TmcEnableControlPin(21), TmcMotionControlStepDir(16, 20), TmcComUart("/dev/serial0"))
|
|
317
|
+
|
|
318
|
+
tmc.chopconf.read() # read register from the driver
|
|
319
|
+
print(tmc.chopconf.intpol) # print current interpolation setting
|
|
320
|
+
tmc.chopconf.intpol = True # enable interpolation
|
|
321
|
+
tmc.chopconf.write() # write register to the driver
|
|
322
|
+
```
|
|
323
|
+
|
|
305
324
|
## Troubleshoot
|
|
306
325
|
|
|
307
326
|
If you have questions please check out the [Wiki](https://github.com/Chr157i4n/PyTmcStepper/wiki) and the other issues.
|
|
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.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_spi_circuitpython.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/com/_tmc_com_uart_circuitpython.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
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_dir.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_step_reg.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/motion_control/_tmc_mc_vactual.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
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_circuitpython.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_gpiozero.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_micropython.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_periphery.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_gpio/_tmc_gpio_board_rpi_gpio.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/_tmc_logger_cpython.py
RENAMED
|
File without changes
|
{pytmcstepper-0.16.0 → pytmcstepper-0.18.2}/src/tmc_driver/tmc_logger/_tmc_logger_micropython.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
|