m-laniakea / st_spin Goto Github PK
View Code? Open in Web Editor NEWA Python library for interfacing with ST Spin Family devices, specifically the ST Micro L6470, L6472, L6474, and L6480 ICs.
License: MIT License
A Python library for interfacing with ST Spin Family devices, specifically the ST Micro L6470, L6472, L6474, and L6480 ICs.
License: MIT License
Hi! When running the basic commands you have listed in the readme I have run into an issue I can't seem to figure out. When I compile and run the code I receive an error when calling the move function. The error states: TypeError: unsupported operand types(s) for |: 'int' and 'SpinValue'.
I'm fairly new to python so I'm sorry if it's a dumb error!
Please add License to this repo. My suggestion is to use MIT-licence (a common choice for this type of projects).
https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository
This is a great implementation of the base functions needed to use the L6470 stepper driver (and related). Great job!
I would like to continue the development by implementing higher level commands, and submit this back to Your repo. But to do this I need to know that it is released with a compatible open source license. I have use for this library in work for a client (to use in their research lab).
Can you tell me how to connect GPIO with this board?
https://www.aliexpress.com/item/1564532401.html
Thank you.
Something is really wrong. The README.md sample code fails with several errors. I worked around all of those, then I hit the same error as another user:
File "/usr/local/lib/python3.7/dist-packages/stspin/spin_device.py", line 135, in move
self._writeCommand(Command.Move | self._direction, steps, PayloadSize)
TypeError: unsupported operand type(s) for |: 'int' and 'SpinValue'
Command.Move, an integer, can't be "|" with an object "self._direction". So I then looked at the typedef branch and see you changed the code around:
command = (Command.Move | self._direction).setPayload(steps)
self._writeCommand(command)
Is there a missing commit to the dev branch? You code is amazing and I would really like to use is for my project. Any insights would be greatly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.