Modifications

Sauter à la navigation Sauter à la recherche
17 octets supprimés ,  3 novembre 2018 à 21:23
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{ENG-CANSAT-NAV}}
 
{{ENG-CANSAT-NAV}}
 +
{{infobox tuto
 +
  | image = FEATHER-M0-ArduinoIDE-Utiliser-04.png
 +
  | title = Arduino IDE for <br />Feather M0 Express
 +
  | subtitle = Install and configure the Arduino IDE environment to support development with the Feather M0 Express.
 +
  | version = 0.1
 +
}}
 +
== Getting prepared for a Training ==
 +
Installing the Arduino IDE environment + dependencies would involve more than 220 Mb download (100 Mb for Arduino, 120 Mb for Arduino SAMD support, 20 Mb for Adafruit SAMD support).
 +
 +
It is important to get prepared before the training. It is not possible to rely on the guest network to download such amount of data for each of the participant.
 +
 +
So, if you intend to follow a training, get prepared by downloading and installing the complete environment as suggested here follow.
    
== Install Arduino IDE (the .CC version) ==
 
== Install Arduino IDE (the .CC version) ==
Ligne 23 : Ligne 35 :  
If you want to know the Arduino IDE's supported boards then browse [https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls#list-of-3rd-party-boards-support-urls the list of URLs of managed boards] (Arduino Wiki page).  
 
If you want to know the Arduino IDE's supported boards then browse [https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls#list-of-3rd-party-boards-support-urls the list of URLs of managed boards] (Arduino Wiki page).  
   −
For this board, we only need to add a single URL. However, it is possible to add several URLs separated by a coma.  
+
For this Feather M0 Express, we only need to add a single URL. However, it is possible to add several URLs separated by a coma.  
    
Copy/paste the link here below in the field '''Additional Boards Manager URLs''' (of the Arduino IDE "preference" window).
 
Copy/paste the link here below in the field '''Additional Boards Manager URLs''' (of the Arduino IDE "preference" window).
Ligne 50 : Ligne 62 :     
=== Install the SAMD boards ===
 
=== Install the SAMD boards ===
{{traduction}}
+
Now, we will install the '''Arduino SAMD board''' version '''1.6.15''' or higher.
 
  −
Pour commencer, il faut installer les '''cartes Arduino SAMD''' version '''1.6.15''' ou plus récent.
     −
Vous pouvez saisir '''Arduino SAMD''' dans la barre de recherche, puis cliquer sur '''Installer''' lorsque vous voyez l'entrée adequate.
+
You can type in the '''Arduino SAMD''' in the search box to quickly find the package, then press the '''Install''' button.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-02.png|640px}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-02.png|640px}}
    
=== Install the ADAFRUIT SAMD board ===
 
=== Install the ADAFRUIT SAMD board ===
Ensuite, vous pouvez installer les paquets "Adafruit SAMD" pour ajouter la définition des cartes Adafruit
+
After the SAMD board, it's time to install the "Adafruit SAMD" package to support the Adafruit boards.
   −
Vous pouvez saisir '''Adafruit SAMD''' dans la zone de recherche puis cliquer sur le bouton '''Installer''' lorsque vous avez localisé l'entrée dans la liste.
+
You can type in the '''Adafruit SAMD''' in the search field to find the package. Once located, press the '''Install''' button.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-03.png|640px}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-03.png|640px}}
   −
Même si cela n'est pas nécessaire en théorie, nous recommandons de redémarrer l'IDE
+
We strongly recommand to restart the Arduino IDE (it is not required but it is better to do it anyway).
    
=== Check installed boards ===
 
=== Check installed boards ===
'''Quittez et réouvez Arduino IDE''' pour vous assurer que toutes les cartes sont correctement installées. Vous devriez être capable de sélectionner de nouvelles cartes (et téléverser du code) vers les nouvelles cartes accessible dans le menu '''Outils -> Carte''' (''Tools -> Board'').
+
'''Once the Arduino IDE restarted''' to be sure that boards are properly installed, you should be able to select the new boards in the interfaces (and to  upload code) via the menu ''Tools -> Board''.
   −
Sélectionnez la carte correspondante à votre achat, les options sont actuellement:
+
Select the board for the kit among those now available:
* '''Feather M0''' (pour toutes les cartes Feather M0 autre que l'Express)
+
* Feather M0 (for the Feather M0 boards other than Feather M0 Express)
 
* '''Feather M0 Express'''
 
* '''Feather M0 Express'''
* '''Metro M0 Express'''
+
* Metro M0 Express
* '''Circuit Playground Express'''
+
* Circuit Playground Express
* '''Gemma M0'''
+
* Gemma M0
* '''Trinket M0'''
+
* Trinket M0
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-04.png|640px}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-04.png|640px}}
Ligne 83 : Ligne 93 :  
{{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>
   −
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()'''.
+
Then click on the "upload" button! You should be able to see the board LED blinking. You can tune the blink speed by updating the value for the {{fname|delay()}} function.
   −
{{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 get upload issue then you should check if you selected the proper board type.}}
    
== Install the Windows Driver (Win 7 only) ==
 
== Install the Windows Driver (Win 7 only) ==
Il est probable que vous ayez besoin d'installer des pilotes sous Windows lorsque vous branchez la carte.
+
You will certainly have to install Windows Driver before plugin the board on the computer.
   −
Cliquez sur le bouton de téléchargement ci-dessous pour installer les pilotes Adafruit
+
You can download the Windows Driver from the Adafruit Industries server :
   −
{{download-box|Télécharger l'installateur des Pilotes Adafruit v2.0.0.0|https://github.com/adafruit/Adafruit_Windows_Drivers/releases/download/2.0.0.0/adafruit_drivers_2.0.0.0.exe}}
+
{{download-box|Download the Adafruit Drivers v2.0.0.0|https://github.com/adafruit/Adafruit_Windows_Drivers/releases/download/2.0.0.0/adafruit_drivers_2.0.0.0.exe}}
   −
Téléchargez et exécutez le programme d'installation
+
Download and start the setup software.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-05.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-05.png}}
   −
Exécutez le programme d'installation! Etant donné que le programme d'installation de SiLabs et pilotes FTDI, il sera nécessaire de passer les informations de licence en revue.
+
Execute the setup software! It will be necessary to review the licensing instruction as it contains the SiLabs setup and FTDI driver.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-06.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-06.png}}
   −
Sélectionnez le pilote que vous désirez installer, la sélection par défaut mettra en place tous les éléments nécessaire au fonctionnement des cartes Adafruit!
+
Select the driver you want to install, the default selection would be perfect for the Adafruit boards!
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-07.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-07.png}}
   −
Cliuez sur le bouton '''Installer''' pour débuter l'installation.
+
Push the '''Install'' button to proceed.
    
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-08.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-Utiliser-08.png}}
    
{{ENG-CANSAT-TRAILER}}
 
{{ENG-CANSAT-TRAILER}}
29 836

modifications

Menu de navigation