Closed jedenoon closed 5 years ago
Did you installed python library before running the example ...?
if not sudo pip install adafruit-mcp3008
, install the library first .
This library is no longer supported. We have written a library called Adafruit Blinka that allows for using CircuitPython libraries on SBCs with GPIO. Please see the Adafruit CircuitPython MCP3xxx library for using the MCP3008.
Platform/operating system: Raspberry Pi with Raspbian operating system
Python version (run
python -version
orpython3 -version
): i use the nano command on my new raspberry pi 3 model B that has the newest version of Raspbian on itError message you are receiving, including any Python exception traces: File "simpletest.py", line 22, in
mcp = Adafruit_MCP3008.MCP3008(spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE))
AttributeError: 'module' object has no attribute 'MCP3008'
List the steps to reproduce the problem below (if possible attach code or commands to run): simply ran the simpletest example code