Modifications

Sauter à la navigation Sauter à la recherche
Ligne 47 : Ligne 47 :     
== Programmer l'ATTiny ==
 
== Programmer l'ATTiny ==
Next, we can use the ISP to upload a program to the ATtiny:
+
Ensuite, nous pouvons utiliser l'ISP pour téléverser un programme sur l'ATtiny:
   −
* Open the Blink sketch from the examples menu.
+
* Ouvrez le Croquis/Sketch {{fname|Blink}} dans le menu des exemples.
* Change the pin numbers from 13 to 0.
+
* Changez le numéro de broche de 13 à 0.
* Select “ATtiny” from the Tools > Board menu and the particular ATtiny you’re using from the Tools > Processor menu. (In Arduino 1.0.x, these options are combined in just the Tools > Board menu.)
+
* Sélectionnez "ATtiny" dans le menu Outils > Carte (''Tools > Board'') et plus particulièrement l'ATTiny que vous utilisez (depuis le menu Outils > Processeur (''Tools > Processor'')).<br />(Dans Arduino 1.0.x, ces options sont combinées dans le menu Outils > Carte.)
* Select the appropriate item from the Tools > Programmer menu (e.g. “Arduino as ISP” if you’re using an Arduino board as the programmer, USBtinyISP for the USBtinyISP, FabISP, or TinyProgrammer, etc).
+
* Sélectionnez l'élément approprié dans le menu Outils > Programmateur (''Tools > Programmer''). Par Exemple "Arduino as ISP" étant donné que nous utilisons un Arduino Uno comme programmateur ISP mais cela aurait put être USBtinyISP pour USBtinyISP, FabISP, ou TinyProgrammer, etc en fonction des circonstances).
* Upload the sketch.
+
* Téléversez le croquis.
   −
You should see “Done uploading.” in the Arduino software and no error messages. If you then connect an LED between pin 0 and ground, you should see it blink on and off. Note that you may need to disconnect the LED before uploading a new program.
+
Vous devriez voir le message "Done uploading." / "Téléversement Terminé" dans le logiciel Arduino (sans message d'erreur). Si vous avez connecté une LED entre la broche 0 et la masse alors vous devriez voir la LED glignotée.  
 +
 
 +
{{Underline|Note:}} Il vous faudra probablement déconnecter la LED avant de téléverser le programme sur votre ATTiny.
    
{{Arduino-ATTiny-85-TRAILER}}
 
{{Arduino-ATTiny-85-TRAILER}}
29 917

modifications

Menu de navigation