Modifications

Sauter à la navigation Sauter à la recherche
829 octets ajoutés ,  2 avril 2014 à 11:07
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Rasp-Hack-BMP085-NAV}}
 
{{Rasp-Hack-BMP085-NAV}}
   −
{{traduction}}
+
== Configurer votre Pi pour le support I2C ==
 +
 
 +
{{bloc-etroit|text=Before you can get started with I2C on the Pi, you'll need to run through a couple quick steps from the console.
 +
Check out this tutorial for more details and follow it completely
 +
 
 +
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
 +
 
 +
When you're done, run}}
 +
 
 +
<nowiki>sudo i2cdetect -y 0 (if you are using a version 1 Raspberry Pi)
 +
sudo i2cdetect -y 1 (if you are using a version 2 Raspberry Pi)</nowiki>
 +
 
 +
This will search /dev/i2c-0 or /dev/i2c-1 for all address, and if an Adafruit BMP085 Breakout is properly connected it should show up at 0x77 as follows:
 +
 
 +
{{ADFImage|Rasp-Hack-BMP085-PI-Setup-00.jpg}}
 +
 
 +
Once both of these packages have been installed, you have everything you need to get started accessing I2C and SMBus devices in Python.
    
{{Rasp-Hack-BMP085-TRAILER}}
 
{{Rasp-Hack-BMP085-TRAILER}}
29 837

modifications

Menu de navigation