Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
projets:retropie_gpio_additions [2014/11/16 13:44] bumblebee |
projets:retropie_gpio_additions [2015/04/11 12:45] (Version actuelle) bully |
||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
sources: | sources: | ||
liens:[[http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/|Tutorial: Raspberry Pi GPIO Pins and Python (en)]], [[http://blog.petrockblock.com/retropie/| Retropie (en)]], [[projets:boitierraspberrybplus|]] | liens:[[http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/|Tutorial: Raspberry Pi GPIO Pins and Python (en)]], [[http://blog.petrockblock.com/retropie/| Retropie (en)]], [[projets:boitierraspberrybplus|]] | ||
- | langages:javascript svg | + | langages:python |
tags: raspberry_pi gpio python retropie | tags: raspberry_pi gpio python retropie | ||
usager:bumblebee | usager:bumblebee | ||
Ligne 28: | Ligne 28: | ||
Pour installer les lib : | Pour installer les lib : | ||
<code bash> | <code bash> | ||
- | sudo apt-get install python-pip python-dev | + | sudo apt-get install python-pip python-dev libudev-dev |
sudo pip install python-uinput | sudo pip install python-uinput | ||
sudo pip install sh | sudo pip install sh | ||
Ligne 112: | Ligne 112: | ||
/usr/bin/python /home/pi/retropie_additions.py & | /usr/bin/python /home/pi/retropie_additions.py & | ||
</code> | </code> | ||
+ | |||
+ | ==== Aide pour la réalisation ==== | ||
+ | |||
+ | |||
+ | Pour les personnes qui ne savent pas trop comment bidouiller dans ce domaine, voila la marche à suivre pas à pas: | ||
+ | |||
+ | |||
+ | * Lancez votre retropie, une fois prête, appuyez sur F4 et installez les librairies en faisant comme indiqué plus haut (sudo apt-get install .......) | ||
+ | * Créez un fichier texte nommé " retropie_additions " sur un ordinateur autre | ||
+ | * Copiez le script plus haut dans ce fichier. Remplacez le *.txt/odt/... par le .py | ||
+ | * Éteignez votre retropie | ||
+ | * Placez le fichier fraichement créé dans le répertoire /home/pi de votre retropie (à partir d'un linux faites un drag'n drop... pour les autres OS, aucune idée) | ||
+ | * Pour l'automatisation, lancez votre retropie (pas trop loin) | ||
+ | * Une fois en marche, appuyez encore une fois sur F4 | ||
+ | * Tapez la commande plus haut dans la rubrique automatisation (sudo nano ...) pour lire le contenu du fichier | ||
+ | * Faite la commande pour éditer le texte (Ctrl + X de mémoire) | ||
+ | * Tapez la ligne indiquée à la fin du texte | ||
+ | * enregistrez vos modification | ||
+ | * Redémarrez et ça marche | ||
+ | |||
===== Tests ==== | ===== Tests ==== |