We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
this code snipped works with python 2.7:
import spidev spi = spidev.SpiDev() spi.open(0, 1) spi.max_speed_hz = 500000 spi.no_cs = True print(spi.xfer2([0xFF])) spi.close()
when beeing executed with python 3.5, it yields the error "AttributeError: 'SpiDev' object has no attribute 'no_cs'".
Python 2.7.13 Python 3.5.3 Raspberry Pi 3, Raspbian Strech , kernel 4.9.59+
tobias
The text was updated successfully, but these errors were encountered:
Same issue here with Python 3.4.2 ...
Sorry, something went wrong.
Have you found any solution for this?
use spi.mode = 1 instead
spi.mode = 1
No branches or pull requests
Hi,
this code snipped works with python 2.7:
when beeing executed with python 3.5, it yields the error "AttributeError: 'SpiDev' object has no attribute 'no_cs'".
Python 2.7.13
Python 3.5.3
Raspberry Pi 3, Raspbian Strech , kernel 4.9.59+
tobias
The text was updated successfully, but these errors were encountered: