Skip to content
Jeff Elkner edited this page Oct 21, 2016 · 5 revisions

10/20/2016

10/13/2016

Running read_values.py revealed missing libraries, so we ran:

$ sudo pip install adafruit_gpio
$ sudo pip install adafruit_mcp3008

after which we got the following traceback:

Traceback (most recent call last):
  File "read_values.py", line 8, in <module>
    mcp = Adafruit_MCP3008.MCP3008(spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE))
  File "/usr/local/lib/python2.7/dist-packages/Adafruit_GPIO/SPI.py", line 42, in __init__
    self._device.open(port, device)
IOError: [Errno 2] No such file or directory

I suspect this is because we did not enable SPI on the Pi. That should be our first task at the next meetup.

Clone this wiki locally