Difference between revisions of "LinkerKit for Raspberry Pi"

From LinkSprite Playgound
Jump to: navigation, search
(Environment Setup)
Line 26: Line 26:
  
 
Now we will install python-pip (pip is a package used to install and manage python software package, and it is used replace esay_install):
 
Now we will install python-pip (pip is a package used to install and manage python software package, and it is used replace esay_install):
 +
 +
<code>
 
sudo apt-get install python-imaging python-imaging-tk python-pip python-dev git
 
sudo apt-get install python-imaging python-imaging-tk python-pip python-dev git
 +
</code>
 +
 
Next, we will install spidev using pip:
 
Next, we will install spidev using pip:
 +
 +
<code>
 
sudo pip install spidev
 
sudo pip install spidev
 +
</code>
 +
 
Then we will install WiringPi (the driver for IOs on Raspberry pi, that can be used in C, shell script or Python, etc):
 
Then we will install WiringPi (the driver for IOs on Raspberry pi, that can be used in C, shell script or Python, etc):
 +
 +
<code>
 
sudo pip install wiringpi
 
sudo pip install wiringpi
 +
</code>

Revision as of 15:37, 31 July 2013


LK raspberry 02.jpg LK raspberry 01.jpg


This pack includes the following components:



Tutorial

In this tutorial, we are going to explain how to use Python to do the experiments:

Environment Setup

Now we will install python-pip (pip is a package used to install and manage python software package, and it is used replace esay_install):

sudo apt-get install python-imaging python-imaging-tk python-pip python-dev git

Next, we will install spidev using pip:

sudo pip install spidev

Then we will install WiringPi (the driver for IOs on Raspberry pi, that can be used in C, shell script or Python, etc):

sudo pip install wiringpi