Modifications

Sauter à la navigation Sauter à la recherche
Ligne 63 : Ligne 63 :  
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-08.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-08.png}}
   −
== Blink ==
+
== Tester le croquis "Blink" ==
Now you can upload your first blink sketch!
+
Nous pouvons maintenant téléverser notre premier croquis "blink"!
   −
Plug in the Gemma M0, Trinket M0, Metro M0 or Feather M0 and wait for it to be recognized by the OS (just takes a few seconds). It will create a serial/COM port, you can now select it from the dropdown, it'll even be 'indicated' as Trinket/Gemma/Metro/Feather M0!
+
Brancher votre Gemma M0, Trinket M0, Metro M0 ou Feather M0 et attendez qu'il soit reconnu par le système d'exploitation (cela devrait prendre quelques secondes). Une fois reconnu, cela créera un port série/COM que vous pourrez sélectionner dans dans la liste déroulante (il devrait même être 'mentionné' un Trinket/Gemma/Metro/Feather M0!)
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-09.png|640px}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-09.png|640px}}
   −
Now load up the Blink example
+
Téléversez maintenant l'exemple Blink
    
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
// the setup function runs once when you press reset or power the board
+
// fonction d'initialisation exécutée lorsque la
 +
// plateforme est réinitialisée ou mise sous tension
 
void setup() {
 
void setup() {
   // initialize digital pin 13 as an output.
+
   // initialiser la broche digitale 13 comme sortie.
 
   pinMode(13, OUTPUT);
 
   pinMode(13, OUTPUT);
 
}
 
}
   −
// the loop function runs over and over again forever
+
// La fonction "loop" est exécutée encore et encore (à l'infini)
 
void loop() {
 
void loop() {
   digitalWrite(13, HIGH);  // turn the LED on (HIGH is the voltage level)
+
   digitalWrite(13, HIGH);  // allumer la LED (HIGH est le niveau haut)
   delay(1000);              // wait for a second
+
   delay(1000);              // attendre une seconde
   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
+
   digitalWrite(13, LOW);    // éteindre la LED off (LOW est le niveau bas)
   delay(1000);              // wait for a second
+
   delay(1000);              // attendre une seconde
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
   −
And click upload! That's it, you will be able to see the LED blink rate change as you adapt the '''delay()''' calls.
+
Et cliquez sur le bouton de téléversement! Vous devriez être capable de voir la LED clignoter. Vous pouvez adapter la vitesse du clignotement en modifiant la valeur du paramètre dans l'appel de fonction '''delay()'''.
   −
 
+
{{ambox|text=Si vous rencontrez un problème de téléchargement assurez vous d'avoir sélectionné la carte correspondante au matériel utilisé.}}
{{ambox|text= If you are having issues, make sure you selected the matching Board in the menu that matches the hardware you have in your hand.}}
      
== Sucessful Upload ==
 
== Sucessful Upload ==
29 910

modifications

Menu de navigation