Modifications

Sauter à la navigation Sauter à la recherche
115 octets ajoutés ,  9 avril 2014 à 19:13
Ligne 17 : Ligne 17 :     
== Tester la bibliothèque ==
 
== Tester la bibliothèque ==
If you're using a version 2 Pi (512 M) then you'll have to change the I2C bus as it flipped from #0 to #1 in the version 2.
+
Si vous utiliser un Pi version 2 (512 Mega de RAM) alors vous aurez besoin de changer l'adresse du bus I2C (puisque ce dernier est passé de la broche #0 à #1 dans la version version 2).
Edit Adafruit_I2C.py with nano Adafruit_I2C.py and change this line
+
 
 +
Editez le fichier Adafruit_I2C.py avec la commande ''nano Adafruit_I2C.py'' et changez la ligne  and change this line
    
  <nowiki>def __init__(self, address, bus=smbus.SMBus(0), debug=False):</nowiki>
 
  <nowiki>def __init__(self, address, bus=smbus.SMBus(0), debug=False):</nowiki>
29 910

modifications

Menu de navigation