Ligne 38 : |
Ligne 38 : |
| {{ADFImage|RASP-PiOLED-Utiliser-01.png|640px}} | | {{ADFImage|RASP-PiOLED-Utiliser-01.png|640px}} |
| | | |
− | == Step 2. Enable i2c == | + | == Etape 2. Activer I2C == |
− | <a href="../../../../adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c">To enable i2c, you can follow our detailed guide on configuring the Pi with I2C support here.</a>
| + | [[Rasp-Hack-GPIO_Configurer_I2C|Suivez ce guide pour activer le support I2C]] sur votre Raspberry-Pi. |
| | | |
− | After you've enabled I2C you will need to shutdown with '''<code>sudo shutdown -h now </code>'''
| + | Après avoir activer le support I2C, il sera nécessaire d'arrêter le Pi à l'aide de la commande {{fname|sudo halt}}. |
| | | |
− | Once the Pi has halted, plug in the PiOLED. Now you can power the Pi back up, and log back in. Run the following command from a terminal prompt to scan/detect the I2C devices
| + | Une fois à l'arrêt, branchez le PiOled puis remettez le Pi sous tension. |
| | | |
− | '''<code>sudo i2cdetect -y 1</code>'''
| + | Connectez vous à nouveau sur votre Pi et exécutez la commande suivante dans un terminal pour scanner et détecter les périphériques I2C. |
| | | |
− | You should see the following, indicating that address '''0x3c''' (the OLED display) was found
| + | <syntaxhighlight lang="bash"> |
| + | sudo i2cdetect -y 1 |
| + | </syntaxhighlight> |
| + | |
| + | Vous devriez voir le résultat suivant indiquant que l'adresse '''0x3c''' (l'afficheur OLED) à été trouvé. |
| | | |
| {{ADFImage|RASP-PiOLED-Utiliser-02.png|640px}} | | {{ADFImage|RASP-PiOLED-Utiliser-02.png|640px}} |