Modifications

Sauter à la navigation Sauter à la recherche
93 octets supprimés ,  9 février 2018 à 07:59
Ligne 11 : Ligne 11 :  
Avant d'utiliser la bibliothèque Adafruit, vous devez vous assurer d'avoir les différentes dépendances installées. [[PI-SSH|Connectez vous en SSH sur votre Pi]] et suivez les étapes suivantes:
 
Avant d'utiliser la bibliothèque Adafruit, vous devez vous assurer d'avoir les différentes dépendances installées. [[PI-SSH|Connectez vous en SSH sur votre Pi]] et suivez les étapes suivantes:
   −
Install the RPi.GPIO library by running the following at the command line:
+
Installer la bibliothèque RPi.GPIO en exécutant la ligne de commande:
 +
 
 +
<syntaxhighlight lang="bash">
 +
sudo apt-get update
 +
sudo apt-get install build-essential python-dev python-pip
 +
 
 +
sudo pip install RPi.GPIO
 +
</syntaxhighlight>
   −
<blockquote>
  −
<span class="editor-monospace">'''sudo apt-get update<br>sudo apt-get install build-essential python-dev python-pip<br>'''</span><span class="editor-monospace">'''sudo pip install RPi.GPIO'''</span>
  −
</blockquote>
   
<br>Finally, install the <a href="http://effbot.org/imagingbook/pil-index.htm">Python Imaging Library</a> and smbus library by executing:
 
<br>Finally, install the <a href="http://effbot.org/imagingbook/pil-index.htm">Python Imaging Library</a> and smbus library by executing:
   −
<blockquote><span class="editor-monospace">'''sudo apt-get install python-imaging python-smbus'''</span></blockquote>
+
<syntaxhighlight lang="bash">
 +
sudo apt-get install python-imaging python-smbus
 +
</syntaxhighlight>
 
<br>Now to download and install the latest Adafruit SSD1306 python library code and examples, execute the following commands:
 
<br>Now to download and install the latest Adafruit SSD1306 python library code and examples, execute the following commands:
  
29 917

modifications

Menu de navigation