Ligne 2 : |
Ligne 2 : |
| | | |
| == Premier programme == | | == Premier programme == |
− | Connect the Raspberry Pi peripherals (keyboard, mouse, monitor, and power), and log in using the following login information:
| + | Connecter les périphériques sur votre Raspberry Pi (clavier, souris, moniteur et alimentation) et loggez vous en utilisant votre login et mot de passe: |
| | | |
| <nowiki>login: pi | | <nowiki>login: pi |
− | password: raspberry</nowiki>
| + | mot de passe: raspberry</nowiki> |
| | | |
− | {{bloc-etroit|text=You will not see any text when typing the password; this is a security feature. | + | {{bloc-etroit|text=Vous n'allez rien voir sur l'écran lorsque vous tapez votre mot de passe; c'est pour des raisons de sécurité. |
| | | |
− | Load the graphical user interface by typing {{fname|startx}}. Now, open Python 3 using {{fname|Menu > Programming > Python 3}}. This will cause a Python Shell window to appear. Select {{fname|File > New Window}}, and type in the following code:}}
| + | Chargez l'interface graphique en tapant la commande {{fname|startx}}. Maintenant, ouvrez Python 3 en utilisant le menu {{fname|Programming > Python 3}}. Cela démarre et affiche une fenêtre avec le Shell Python. Selectionnez ensuite {{fname|File > New Window}} pour ouvrir une nouvelle fenêtre et tapez le code suivant:}} |
| | | |
| <nowiki>from astro_pi import AstroPi | | <nowiki>from astro_pi import AstroPi |
Ligne 15 : |
Ligne 15 : |
| ap.show_message("Hello my name is Tim Peake")</nowiki> | | ap.show_message("Hello my name is Tim Peake")</nowiki> |
| | | |
− | {{bloc-etroit|text=Select {{fname|File > Save}} and choose a file name for your program, then select {{fname|Run > Run module}}. Your message should then scroll across the LED matrix in white text. | + | {{bloc-etroit|text=Selectionnez {{fname|File > Save}} pour sauver le fichier et choisissez un nom pour votre programme. Sélectionnez ensuite {{fname|Run > Run module}} pour exécuter le module. Votre message devrait alors défiler sur la matrice LED (en blanc). |
| | | |
− | Why not try changing the message between the double quotation marks and running your code again? }}
| + | Pourquoi ne pas modifier le message entre les double guillemet et exécuter votre code une nouvelle fois? }} |
| | | |
| {{RASP-SENSE-HAT-ASTRO-PI-TRAILER}} | | {{RASP-SENSE-HAT-ASTRO-PI-TRAILER}} |