Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{RASP-SENSE-HAT-ASTRO-PI-NAV}}
 
{{RASP-SENSE-HAT-ASTRO-PI-NAV}}
   −
{{bloc-etroit|text=Astro Pi is an add-on board for the Raspberry Pi, which adds the ability to sense all kinds of things and output information using a built-in 8x8 LED matrix. You can find out more about Astro Pi by following the [[RASP-SENSE-HAT-ASTRO-PI|Astro Pi Guide]], which will show you how to connect and test your Astro Pi board. It also has some helpful explanations and examples of what the different inputs and outputs can do.
+
{{bloc-etroit|text=Astro Pi (ou Sense Hat) est une carte d'extension pour le Raspberry Pi qui lui permet d'être sensible (de sentir) un certain nombre de chose et d'afficher des information en utilisant sa matrice d'affichage LED 8x8. Vous pouvez trouver plein d'information sur Astro Pi en suivant le [[RASP-SENSE-HAT-ASTRO-PI|Guide Astro Pi]] qui montre comment connecter et tester la carte Sense Hat. Ce guide propose également des explications et des exemples concernant les différents types d'entrée et de sortie que l'on peut faire.
   −
Once you are set up and have run your first program using the guide, you can begin to experiment further using this worksheet. In order to write your programs you will need to boot your Raspberry Pi to the desktop and start IDLE3, like you did in the guide.}}
+
Une fois que vous avez monté votre carte Sense Hat et exécuté votre premier programme en utilisant le guide, vous pouvez commencer à expérimenter les différents points de cette feuille de travail.  
 +
 
 +
Pour pouvoir écrire vos programmes, vous aurez besoin de booter votre Raspberry Pi, démarrer l'environnement graphique puis démarrer IDLE3 (l'environnement de programmation Python) comme vous l'avez fait dans le guide.}}
 +
 
 +
Vous pouvez également démarrer IDLE3 depuis une fenêtre terminal à l'aide de la commande:
    
  <nowiki>sudo idle3 &</nowiki>
 
  <nowiki>sudo idle3 &</nowiki>
    
== Afficher du Texte ==
 
== Afficher du Texte ==
 +
 +
{{traduction}}
 
{{bloc-etroit|text=When following [[RASP-SENSE-HAT-ASTRO-PI-Premier|the guide]] you will have written a sample program which scrolls text across the LED matrix. The program contains two crucial lines, which import the Astro Pi software and create an {{fname|ap}} object which represents the Astro Pi board.}}
 
{{bloc-etroit|text=When following [[RASP-SENSE-HAT-ASTRO-PI-Premier|the guide]] you will have written a sample program which scrolls text across the LED matrix. The program contains two crucial lines, which import the Astro Pi software and create an {{fname|ap}} object which represents the Astro Pi board.}}
   Ligne 18 : Ligne 24 :  
  <nowiki>ap.show_message("Hello my name is Tim Peake")</nowiki>
 
  <nowiki>ap.show_message("Hello my name is Tim Peake")</nowiki>
   −
You have probably already discovered that you can easily change the message to your own text, but there are more things that we can do.
+
{{bloc-etroit|text=You have probably already discovered that you can easily change the message to your own text, but there are more things that we can do.
    
'''1.''' We can expand the {{fname|ap.show_message}} command to include some extra '''parameters''' which will change the behaviour of the message.
 
'''1.''' We can expand the {{fname|ap.show_message}} command to include some extra '''parameters''' which will change the behaviour of the message.
 
+
}}
 
{| class="wikitable"
 
{| class="wikitable"
 
| align="center" style="background:#f0f0f0;"|'''Parameter'''
 
| align="center" style="background:#f0f0f0;"|'''Parameter'''
29 918

modifications

Menu de navigation