Ligne 53 : |
Ligne 53 : |
| | | |
| == Installer le support noyau (à la main) == | | == Installer le support noyau (à la main) == |
− | If you're not using a modern Raspbian or you want to do it by hand, you can! Open LXTerminal or console or ssh and enter the following command:
| + | Si vous n'utilisez pas une version moderne de Raspbian ou si vous désirez réaliser une installation à la main, cela est possible! Ouvrez un LXTerminal ou une console ou une session ssh puis saisissez les commandes suivantes : |
| | | |
| <nowiki>sudo nano /etc/modules</nowiki> | | <nowiki>sudo nano /etc/modules</nowiki> |
| | | |
− | and add these two lines to the end of the file:
| + | Et ajoutez les deux lignes suivante à la fin du fichier : |
| | | |
− | <nowiki>i2c-bcm2708 | + | <nowiki>i2c-bcm2708 |
| i2c-dev</nowiki> | | i2c-dev</nowiki> |
| | | |
Ligne 66 : |
Ligne 66 : |
| [[Fichier:Rasp-Hack-GPIO-Config-I2C-20.png|640px]] | | [[Fichier:Rasp-Hack-GPIO-Config-I2C-20.png|640px]] |
| | | |
− | Then save the file with '''Control-X Y''' <return>
| + | Puis sauvez le fichier avec la combinaison de touche '''Contrôle-X Y''' puis la touche "retour clavier". |
| | | |
− | Depending on your distribution, you may also have a file called '''/etc/modprobe.d/raspi-blacklist.conf'''
| + | En fonction de la distribution, vous pourriez également avoir un fichier nommé '''/etc/modprobe.d/raspi-blacklist.conf''' |
| | | |
− | If you do not have this file then there is nothing to do, however, if you do have this file, you need to edit it and comment out the lines below:
| + | Il n'y a rien à faire si le fichier n'est pas présent. Par contre, s'il est présent, il sera nécessaire d'en éditer le contenu pour '''mettre les deux lignes suivantes en commentaire''' : |
| | | |
| <nowiki>blacklist spi-bcm2708 | | <nowiki>blacklist spi-bcm2708 |
| blacklist i2c-bcm2708</nowiki> | | blacklist i2c-bcm2708</nowiki> |
| | | |
− | .. by putting a # in front of them. | + | .. en plaçant un # en début de ligne. |
| | | |
− | Open an editor on the file by typing:
| + | Ouvrir le fichier dans un éditeur en saisissant le commande suivante : |
| | | |
| <nowiki>sudo nano /etc/modprobe.d/raspi-blacklist.conf</nowiki> | | <nowiki>sudo nano /etc/modprobe.d/raspi-blacklist.conf</nowiki> |
| | | |
− | .. then edit the file so that it appears as below, and then save and exit the file using CTRL-x and Y. | + | .. puis modifier le fichier pour qu'il apparaisse comme sur la capture suivante. |
| | | |
| [[Fichier:Rasp-Hack-GPIO-Config-I2C-21.png|640px]] | | [[Fichier:Rasp-Hack-GPIO-Config-I2C-21.png|640px]] |
| | | |
− | If you are running a recent Raspberry Pi (3.18 kernel or higher) you will also need to update the {{fname|/boot/config.txt}} file. Edit it with {{fname|sudo nano /boot/config.txt}} and add the text
| + | Pour finir, sauver le fichier en utilisant la combinaison de touche Contrôle-X et Y. |
| + | |
| + | === config.txt === |
| + | Si vous utilisez un Raspberry Pi avec un système d'exploitation récent (noyau 3.18 ou supérieur) il sera également nécessaire de modifier le fichier {{fname|/boot/config.txt}} . Editer le fichier à l'aide de la commande {{fname|sudo nano /boot/config.txt}} et ajouter le texte suivant en fin de fichier : |
| | | |
| <nowiki>dtparam=i2c1=on | | <nowiki>dtparam=i2c1=on |
| dtparam=i2c_arm=on</nowiki> | | dtparam=i2c_arm=on</nowiki> |
| | | |
− | at the bottom. note that the "1" in "i2c1" is a one not an L!
| + | Note il s'agit du chiffre "1" dans "i2c1" et non de la lettre "L" en minuscule! |
| | | |
| [[Fichier:Rasp-Hack-GPIO-Config-I2C-22.png|640px]] | | [[Fichier:Rasp-Hack-GPIO-Config-I2C-22.png|640px]] |
| | | |
− | Once this is all done, reboot!
| + | Redémarrer le Pi après la modification! |
| | | |
| sudo reboot | | sudo reboot |
− |
| |
| | | |
| == Tester I2C == | | == Tester I2C == |