How to get SPI module up and running

npurtschertnpurtschert New Member Posts: 6
edited May 2018 in Others

Hi,

https://wiki.up-community.org/Pinout_UP2#SPI_Ports

I runned all the steps described here but still get no SPI devices:

14:02:50 | [email protected]:/opt/gps/ledpython # ls /dev/spi*
ls: cannot access '/dev/spi*': No such file or directory

I am trying to get a python program running and my guess is the SPI configuration:

14:13:40 | ... # python led.py
Traceback (most recent call last):
File "led.py", line 9, in
spi = mraa.Spi(0)
File "/usr/lib/python2.7/dist-packages/mraa.py", line 2100, in init
this = _mraa.new_Spi(*args)
ValueError: Error initialising SPI bus

Could you please help me to get SPI running?

... uname -srv

Linux 4.10.0-42-generic #5000~upboard10-Ubuntu SMP Tue Dec 19 12:58:48 UTC 2017

Tagged:

Comments

Sign In or Register to comment.