5.Libraries Installation

1、WiringPi

2、bcm2835 C Library

3、python

  • sudo apt-get update

    Install python-dev
  • sudo apt-get install python-dev

    Install RPi.GPIO Library
  • sudo wget https://pypi.python.org/packages/c1/a8/de92cf6d04376f541ce250de420f4fe7cbb2b32a7128929a600bc89aede5/RPi.GPIO-0.6.2.tar.gz
  • sudo tar xvf RPi.GPIO-0.6.2.tar.gz
  • cd RPi.GPIO-0.6.2/
  • sudo python setup.py install

    Install smbus I2C Library
  • sudo apt-get install python-smbus

    Install serial Library
  • sudo apt-get install python-serial

    Install SPI Library
  • sudo wget https://pypi.python.org/packages/36/83/73748b6e1819b57d8e1df8090200195cdae33aaa22a49a91ded16785eedd/spidev-3.2.tar.gz
  • sudo tar xvf spidev-3.2.tar.gz
  • cd spidev-3.2/
  • sudo python setup.py install