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

attribute 'no_cs' not existing with python 3.5 #68

Open
tgd1975 opened this issue Feb 11, 2018 · 3 comments
Open

attribute 'no_cs' not existing with python 3.5 #68

tgd1975 opened this issue Feb 11, 2018 · 3 comments

Comments

@tgd1975
Copy link

tgd1975 commented Feb 11, 2018

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

@fabianWhoknows
Copy link

Same issue here with Python 3.4.2 ...

@moizgillani
Copy link

Have you found any solution for this?

@karenakhumyan
Copy link

use spi.mode = 1 instead

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

4 participants