Modifications

Sauter à la navigation Sauter à la recherche
390 octets ajoutés ,  1 janvier 2013 à 16:45
aucun résumé de modification
Ligne 31 : Ligne 31 :     
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
| align="center" style="background:#f0f0f0;"|'''Nom de la brocheDisplay Pin Name'''
+
| align="center" style="background:#f0f0f0;"|'''Nom de la broche<br />sur afficheur'''
| align="center" style="background:#f0f0f0;"|'''Display Pin Number'''
+
| align="center" style="background:#f0f0f0;"|'''Numéro de broche<br />sur afficheur'''
| align="center" style="background:#f0f0f0;"|'''Arduino Pin (in this example)'''
+
| align="center" style="background:#f0f0f0;"|'''Broches Arduino<br />(dans cet exemple)'''
 
|-
 
|-
 
| RS ||4 ||7
 
| RS ||4 ||7
Ligne 48 : Ligne 48 :  
|}
 
|}
   −
In the 'setup' function, we have two commands:
+
Dans le fonction "''setup''", il y a deux commandes:
    
  <nowiki>lcd.begin(16, 2);
 
  <nowiki>lcd.begin(16, 2);
 
lcd.print("hello, world!");</nowiki>
 
lcd.print("hello, world!");</nowiki>
   −
The first tells the Liquid Crystal library how many columns and rows the display has. The second line displays the message that we see on the first line of the screen.
+
La première indique à la librairie "Liquid Crystal" combien il y a de colonnes et de lignes sur l'afficheur.  
   −
In the 'loop' function, we aso have two commands:
+
La seconde affiche le message que nous voyons sur la première ligne de l'écran.
 +
 
 +
Dans la fonction "''loop''", nous pouvons également voir les deux commandes:
    
  <nowiki>lcd.setCursor(0, 1);
 
  <nowiki>lcd.setCursor(0, 1);
 
lcd.print(millis()/1000);</nowiki>
 
lcd.print(millis()/1000);</nowiki>
   −
The first sets the cursor position (where the next text will appear) to column 0 or row 1. Both column and row numbers start at 0 rather than 1.
+
La première place le curseur à une position précise de l'afficheur (où la prochaine ligne de texte va apparaître). Le curseur est positionné à la colonne 0 et ligne 1.  
 +
 
 +
Sur l'afficheur, les lignes et les colonnes commande à 0 au lieu de 1. La première ligne (ou première colonne) porte donc le numéro 0 alors que la deuxième ligne (ou colonne) porte le numéro 1... et ainsi de suite.
   −
The second line displays the number of milliseconds since the Arduino was reset.
+
La deuxième ligne de code affiche le nombre de millisecondes écoulées de puis le dernier "reset" (redémarrage) d'Arduino.
     
29 917

modifications

Menu de navigation