Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use smbus2 from PyPI #16

Closed
LukeSkywalker92 opened this issue Oct 8, 2018 · 1 comment
Closed

Use smbus2 from PyPI #16

LukeSkywalker92 opened this issue Oct 8, 2018 · 1 comment

Comments

@LukeSkywalker92
Copy link

Hey guys,

is there a good reason, why you use the smbus package which needs to be installed via apt?

I tried to run your modules with smbus2 which is installable via pip and it works without problems.
The big benefit of using this would be, that you can add it as a dependancy in the setup.py.

If you would like, I could make a pull request for that.

If you prefer keeping the apt-version, I would like to make a fork of your project and publish it on PyPI with the changes if this is ok for you.

Best Luke

@abelectronicsuk
Copy link
Owner

Hello Luke

I have done some performance tests with the smbus2 library and it appears to be about 50% slower than smbus when sending I2C writes to the bus. As the performance is so much slower we will keep using the smbus library for the moment but you are welcome to fork the project and publish it on PyPi with the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants