PyTmcStepper 0.8.0__tar.gz → 0.9.0__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.
Files changed (55) hide show
  1. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/LICENSE +5 -4
  2. {pytmcstepper-0.8.0/src/PyTmcStepper.egg-info → pytmcstepper-0.9.0}/PKG-INFO +22 -1
  3. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/README.md +21 -0
  4. pytmcstepper-0.9.0/pyproject.toml +16 -0
  5. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/setup.cfg +1 -1
  6. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0/src/PyTmcStepper.egg-info}/PKG-INFO +22 -1
  7. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/PyTmcStepper.egg-info/SOURCES.txt +2 -0
  8. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/_tmc_gpio_board.py +681 -542
  9. pytmcstepper-0.9.0/src/tmc_driver/_tmc_logger.py +224 -0
  10. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/_tmc_math.py +18 -0
  11. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/_tmc_stepperdriver.py +11 -0
  12. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com_spi_base.py +1 -1
  13. pytmcstepper-0.9.0/src/tmc_driver/com/_tmc_com_spi_micropython.py +92 -0
  14. pytmcstepper-0.9.0/src/tmc_driver/com/_tmc_com_uart_micropython.py +117 -0
  15. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/_tmc_mc.py +13 -0
  16. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/_tmc_mc_step_dir.py +399 -389
  17. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/_tmc_mc_step_pwm_dir.py +1 -1
  18. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/_tmc_mc_step_reg.py +65 -65
  19. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/_tmc_mc_vactual.py +30 -6
  20. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/reg/_tmc220x_reg.py +1 -1
  21. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/reg/_tmc224x_reg.py +1 -1
  22. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/tmc_2209.py +1 -2
  23. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/tmc_2240.py +5 -5
  24. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_math.py +7 -0
  25. pytmcstepper-0.8.0/pyproject.toml +0 -6
  26. pytmcstepper-0.8.0/src/tmc_driver/_tmc_logger.py +0 -179
  27. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/PyTmcStepper.egg-info/dependency_links.txt +0 -0
  28. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/PyTmcStepper.egg-info/requires.txt +0 -0
  29. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/PyTmcStepper.egg-info/top_level.txt +0 -0
  30. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/__init__.py +0 -0
  31. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/_tmc_exceptions.py +0 -0
  32. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/_tmc_stallguard.py +0 -0
  33. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/__init__.py +0 -0
  34. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com.py +0 -0
  35. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com_spi.py +0 -0
  36. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com_spi_ftdi.py +0 -0
  37. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com_uart.py +0 -0
  38. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/com/_tmc_com_uart_base.py +0 -0
  39. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/enable_control/__init__.py +0 -0
  40. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/enable_control/_tmc_ec.py +0 -0
  41. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/enable_control/_tmc_ec_pin.py +0 -0
  42. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/enable_control/_tmc_ec_toff.py +0 -0
  43. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/motion_control/__init__.py +0 -0
  44. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/reg/__init__.py +0 -0
  45. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/reg/_tmc2209_reg.py +0 -0
  46. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/reg/_tmc_reg.py +0 -0
  47. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/tmc_2208.py +0 -0
  48. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/src/tmc_driver/tmc_220x.py +0 -0
  49. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc2209.py +0 -0
  50. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc2240.py +0 -0
  51. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_com_spi.py +0 -0
  52. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_com_uart.py +0 -0
  53. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_ec_pin.py +0 -0
  54. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_modules.py +0 -0
  55. {pytmcstepper-0.8.0 → pytmcstepper-0.9.0}/tests/test_tmc_move.py +0 -0
@@ -2,10 +2,11 @@ Copyright (C) 2010-2018 Mike McCauley
2
2
  Copyright (c) 2020 troxel
3
3
  Copyright (c) 2014 The Python Packaging Authority (PyPA)
4
4
  Copyright (c) 2014 Mapbox
5
-
6
-
7
-
8
-
5
+ Copyright (c) 2013, 2014 micropython-lib contributors
6
+
7
+
8
+
9
+
9
10
  GNU GENERAL PUBLIC LICENSE
10
11
  Version 3, 29 June 2007
11
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyTmcStepper
3
- Version: 0.8.0
3
+ Version: 0.9.0
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
@@ -99,6 +99,7 @@ Jetson.GPIO | NVIDIA_JETSON | Nvidia Jetson
99
99
  pheriphery | LUCKFOX_PICO | Luckfox Pico
100
100
  OPi.GPIO | ORANGE_PI | Orange Pi
101
101
  pyftdi | - | Windows/Linux
102
+ machine | - | Pico, Pico2, ESP32, etc.
102
103
 
103
104
  Those libraries are needed for this library to work. You can either install the correct library yourself.
104
105
  You can also install the needed GPIO library by specifing the Installation Parameter while installing this library:
@@ -251,6 +252,24 @@ For me these baudrates worked fine: 19200, 38400, 57600, 115200, 230400, 460800,
251
252
  If the TMC2209 driver is connected to the Vmotor, the internal voltage regulator will create the Vio for the chip.
252
253
  So you don't need to connect anything to the Vio pin of the driver.
253
254
 
255
+ ### Micropython
256
+
257
+ First you need to upload all need files to the µController with mpremote or another tool. You can use the script `upload_to_pico.py` for that.
258
+ Then you can run a demo script by using
259
+
260
+ some external micropython-lib are needed to be installed:
261
+
262
+ ```shell
263
+ python -m mpremote connect COM4 mip install threading
264
+ python -m mpremote connect COM4 mip install types
265
+ ```
266
+
267
+ Run the demo script with:
268
+
269
+ ```shell
270
+ python -m mpremote connect COM4 run .\demo\micropython\demo_script_tmc2240_03_basic_movement.py
271
+ ```
272
+
254
273
  ## Usage
255
274
 
256
275
  The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
@@ -303,6 +322,8 @@ The code to run the stepper motor is based on the code of the [AccelStepper Libr
303
322
 
304
323
  The code for the UART communication is based on this [code from troxel](https://github.com/troxel/TMC_UART).
305
324
 
325
+ For the implementation of Python-stdlib for micropython [micropython-lib](https://github.com/micropython/micropython-lib)
326
+
306
327
  My goal is to make a library, that can run a stepper motor with a TMC2209 stepper driver and can write the setting in the register of the TMC2209, entirely in Python.
307
328
  The main focus for this are Test setups, as Python is not fast enough for high motor speeds.
308
329
 
@@ -68,6 +68,7 @@ Jetson.GPIO | NVIDIA_JETSON | Nvidia Jetson
68
68
  pheriphery | LUCKFOX_PICO | Luckfox Pico
69
69
  OPi.GPIO | ORANGE_PI | Orange Pi
70
70
  pyftdi | - | Windows/Linux
71
+ machine | - | Pico, Pico2, ESP32, etc.
71
72
 
72
73
  Those libraries are needed for this library to work. You can either install the correct library yourself.
73
74
  You can also install the needed GPIO library by specifing the Installation Parameter while installing this library:
@@ -220,6 +221,24 @@ For me these baudrates worked fine: 19200, 38400, 57600, 115200, 230400, 460800,
220
221
  If the TMC2209 driver is connected to the Vmotor, the internal voltage regulator will create the Vio for the chip.
221
222
  So you don't need to connect anything to the Vio pin of the driver.
222
223
 
224
+ ### Micropython
225
+
226
+ First you need to upload all need files to the µController with mpremote or another tool. You can use the script `upload_to_pico.py` for that.
227
+ Then you can run a demo script by using
228
+
229
+ some external micropython-lib are needed to be installed:
230
+
231
+ ```shell
232
+ python -m mpremote connect COM4 mip install threading
233
+ python -m mpremote connect COM4 mip install types
234
+ ```
235
+
236
+ Run the demo script with:
237
+
238
+ ```shell
239
+ python -m mpremote connect COM4 run .\demo\micropython\demo_script_tmc2240_03_basic_movement.py
240
+ ```
241
+
223
242
  ## Usage
224
243
 
225
244
  The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
@@ -272,6 +291,8 @@ The code to run the stepper motor is based on the code of the [AccelStepper Libr
272
291
 
273
292
  The code for the UART communication is based on this [code from troxel](https://github.com/troxel/TMC_UART).
274
293
 
294
+ For the implementation of Python-stdlib for micropython [micropython-lib](https://github.com/micropython/micropython-lib)
295
+
275
296
  My goal is to make a library, that can run a stepper motor with a TMC2209 stepper driver and can write the setting in the register of the TMC2209, entirely in Python.
276
297
  The main focus for this are Test setups, as Python is not fast enough for high motor speeds.
277
298
 
@@ -0,0 +1,16 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=42",
4
+ "wheel"
5
+ ]
6
+ build-backend = "setuptools.build_meta"
7
+
8
+ [tool.pylint."messages control"]
9
+ disable = "C0103,W0511,W0012,R0801"
10
+
11
+ [tool.pylint.main]
12
+ ignored-modules = "machine"
13
+ unsafe-load-any-extension = true
14
+
15
+ [tool.pylint.format]
16
+ max-line-length = 160
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = PyTmcStepper
3
- version = 0.8.0
3
+ version = 0.9.0
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.8.0
3
+ Version: 0.9.0
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
@@ -99,6 +99,7 @@ Jetson.GPIO | NVIDIA_JETSON | Nvidia Jetson
99
99
  pheriphery | LUCKFOX_PICO | Luckfox Pico
100
100
  OPi.GPIO | ORANGE_PI | Orange Pi
101
101
  pyftdi | - | Windows/Linux
102
+ machine | - | Pico, Pico2, ESP32, etc.
102
103
 
103
104
  Those libraries are needed for this library to work. You can either install the correct library yourself.
104
105
  You can also install the needed GPIO library by specifing the Installation Parameter while installing this library:
@@ -251,6 +252,24 @@ For me these baudrates worked fine: 19200, 38400, 57600, 115200, 230400, 460800,
251
252
  If the TMC2209 driver is connected to the Vmotor, the internal voltage regulator will create the Vio for the chip.
252
253
  So you don't need to connect anything to the Vio pin of the driver.
253
254
 
255
+ ### Micropython
256
+
257
+ First you need to upload all need files to the µController with mpremote or another tool. You can use the script `upload_to_pico.py` for that.
258
+ Then you can run a demo script by using
259
+
260
+ some external micropython-lib are needed to be installed:
261
+
262
+ ```shell
263
+ python -m mpremote connect COM4 mip install threading
264
+ python -m mpremote connect COM4 mip install types
265
+ ```
266
+
267
+ Run the demo script with:
268
+
269
+ ```shell
270
+ python -m mpremote connect COM4 run .\demo\micropython\demo_script_tmc2240_03_basic_movement.py
271
+ ```
272
+
254
273
  ## Usage
255
274
 
256
275
  The library currently uses functions to access the TMC registers, but Python properties for internal getters/setters.
@@ -303,6 +322,8 @@ The code to run the stepper motor is based on the code of the [AccelStepper Libr
303
322
 
304
323
  The code for the UART communication is based on this [code from troxel](https://github.com/troxel/TMC_UART).
305
324
 
325
+ For the implementation of Python-stdlib for micropython [micropython-lib](https://github.com/micropython/micropython-lib)
326
+
306
327
  My goal is to make a library, that can run a stepper motor with a TMC2209 stepper driver and can write the setting in the register of the TMC2209, entirely in Python.
307
328
  The main focus for this are Test setups, as Python is not fast enough for high motor speeds.
308
329
 
@@ -23,8 +23,10 @@ src/tmc_driver/com/_tmc_com.py
23
23
  src/tmc_driver/com/_tmc_com_spi.py
24
24
  src/tmc_driver/com/_tmc_com_spi_base.py
25
25
  src/tmc_driver/com/_tmc_com_spi_ftdi.py
26
+ src/tmc_driver/com/_tmc_com_spi_micropython.py
26
27
  src/tmc_driver/com/_tmc_com_uart.py
27
28
  src/tmc_driver/com/_tmc_com_uart_base.py
29
+ src/tmc_driver/com/_tmc_com_uart_micropython.py
28
30
  src/tmc_driver/enable_control/__init__.py
29
31
  src/tmc_driver/enable_control/_tmc_ec.py
30
32
  src/tmc_driver/enable_control/_tmc_ec_pin.py