Posts: 1
Joined: Wed Dec 13, 2017 3:51 pm

Problem with SpiDev open port.

Wed Dec 13, 2017 4:03 pm

Hi i have a trouble with SPI in raspberry pi model 2 B. Till yesterday everythink working alright. When I'am reboot raspberry and try execute this code get thats error. I don't now what's going on.

Code: Select all

[email protected]:~ $ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import spidev
>>> spi = spidev.SpiDev
>>> spi.open(0,0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor 'open' requires a 'SpiDev' object but received a 'int'

Return to “Interfacing (DSI, CSI, I2C, etc.)”