summaryrefslogtreecommitdiff
path: root/lib/Adafruit_Python_MCP3008/README.md
blob: 6b7da9af6b75dde3a31d0bfd709446d6923841a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Adafruit Python MCP3008

Python code to use the MCP3008 analog to digital converter with a Raspberry Pi or BeagleBone black.

## Installation

To install the library from source (recommended) run the following commands on a Raspberry Pi or other Debian-based OS system:

    sudo apt-get install git build-essential python-dev
    cd ~
    git clone https://github.com/adafruit/Adafruit_Python_MCP3008.git
    cd Adafruit_Python_MCP3008
    sudo python setup.py install

Alternatively you can install from pip with:

    sudo pip install adafruit-mcp3008

Note that the pip install method **won't** install the example code.