Giter Site home page Giter Site logo

st_spin's People

Contributors

m-laniakea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

st_spin's Issues

SpinValue issue

Hi I am looking to utilize some steppers with these particular L6470 drivers. I want to use python and this code was going to make that easy. I am having issues though. For whatever reason I am getting this error while using your code.
image

Might you know why or how to fix it?

Thank you

Issue running basic commands

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!

Missing License

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).

README.md fails with several errors

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.