Modifications

Sauter à la navigation Sauter à la recherche
288 octets supprimés ,  20 septembre 2018 à 16:45
Ligne 81 : Ligne 81 :  
{{ambox-stop|text=If you are using WINDOWS then you should have a look to the "Windows Driver" section here below!}}
 
{{ambox-stop|text=If you are using WINDOWS then you should have a look to the "Windows Driver" section here below!}}
   −
Nous pouvons maintenant téléverser notre premier croquis "blink"!
+
Now, we can upload your first sketch to the board (the "blink" sketch)!
   −
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!)
+
Wire your board to the computer and wait for the operating system to identify it (this may take few seconds). Once identified, the Serial port/COM is available in the list of serial port available.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-09.png|640px}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-09.png|640px}}
   −
Téléversez maintenant l'exemple Blink
+
It is now time to upload the Blink sketch
    
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
// fonction d'initialisation exécutée lorsque la
  −
// plateforme est réinitialisée ou mise sous tension
   
void setup() {
 
void setup() {
   // initialiser la broche digitale 13 comme sortie.
+
   // init the digital pin #13 as OUTPUT
 
   pinMode(13, OUTPUT);
 
   pinMode(13, OUTPUT);
 
}
 
}
   −
// La fonction "loop" est exécutée encore et encore (à l'infini)
+
// the "loop" function is executed again and again (in a infinite loop)
 
void loop() {
 
void loop() {
   digitalWrite(13, HIGH);  // allumer la LED (HIGH est le niveau haut)
+
   digitalWrite(13, HIGH);  // Light up the LED (HIGH level = 3.3v)
   delay(1000);              // attendre une seconde
+
   delay(1000);              // Wait 1 second
   digitalWrite(13, LOW);    // éteindre la LED off (LOW est le niveau bas)
+
   digitalWrite(13, LOW);    // Switch off the LED (LOW level = 0V)
   delay(1000);              // attendre une seconde
+
   delay(1000);              // Wait 1 second
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
29 836

modifications

Menu de navigation