Modifications

Sauter à la navigation Sauter à la recherche
Ligne 2 : Ligne 2 :     
== Point de départ ==
 
== Point de départ ==
{{bloc-etroit|text=Never one to leave you with just a breakout board or an IC and a goodbye, Adafruit provides a library for the MCP23008 and MCP23017 in our [https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code dépôt GitHub d'AdaFruit pour Python].  The easiest way to use it is with our convenient [http://wiki.mchobby.be/index.php?title=Pi-WebIde WebIDE], which will automatically point to the Adafruit github repository.
+
{{bloc-etroit|text=Nous vous avons montré comment brancher le MCP23017... nous n'allons pas vous laisser là avec le circuit et un "bonne chance".
 +
 
 +
Nous allons maintenant nous pencher sur la bibliothèque pour le MCP23008 et MCP23017 disponible sur le [https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code dépôt GitHub Python pour Raspberry produit par d'AdaFruit].  The easiest way to use it is with our convenient [http://wiki.mchobby.be/index.php?title=Pi-WebIde WebIDE], which will automatically point to the Adafruit github repository.
    
Once you've opened up the WebIDE in the browser, you simply need to click in the left-hand navigation on the following folders and filenames:
 
Once you've opened up the WebIDE in the browser, you simply need to click in the left-hand navigation on the following folders and filenames:
Ligne 36 : Ligne 38 :  
   mcp.output(0, 0)  # Pin 1 Low</nowiki>
 
   mcp.output(0, 0)  # Pin 1 Low</nowiki>
   −
This file contains both the base MCP230xx class that makes it easy to use the chip, along with a very simple demo that will toggle a single pin as fast as possible.  The example code shows how you can set pins to both input and output:  
+
This file contains both the base MCP230xx class that makes it easy to use the chip, along with a very simple demo that will toggle a single pin as fast as possible.  The example code shows how you can set pins to both input and output:
    
== Créer une instance de Adafruit_MCP230xx ==
 
== Créer une instance de Adafruit_MCP230xx ==
29 917

modifications

Menu de navigation