Modifications

Sauter à la navigation Sauter à la recherche
436 octets ajoutés ,  6 décembre 2017 à 21:55
Ligne 28 : Ligne 28 :  
Ensuite, sauvez le fichier sur le lecteur sous le nom {{fname|code.py}} ({{fname|main.py}} ou {{fname|code.txt}} conviendrons également). Après quelques instants, la LED rouge de la carte comment a clignoter toutes les secondes.
 
Ensuite, sauvez le fichier sur le lecteur sous le nom {{fname|code.py}} ({{fname|main.py}} ou {{fname|code.txt}} conviendrons également). Après quelques instants, la LED rouge de la carte comment a clignoter toutes les secondes.
   −
{{ambox-stop|text=NE PRESSEZ PAS le bouton RESET de la carte après avoir sauvé le fichier! Cela It could cause the computer to not-finish writing your code to disk. Just wait a few seconds and it should automatically restart the python code for you!}}
+
{{ambox-stop|text=NE PRESSEZ PAS le bouton RESET de la carte après avoir sauvé le fichier! Le système d'exploitation à parfois besoin de terminer l'écriture du fichier et réinitialiser prématurée de la carte pourrait empêcher l'écriture correcte du fichier. Attendez simplement quelques secondes et la carte devrait automatiquement démarrer le code Python pour vous!}}
</nowiki>
     −
== Status LED (Gemma/Trinket/Metro/Feather) ==
+
== Statut de la LED (Gemma/Trinket/Metro/Feather) ==
If you have a Gemma, Trinket, Metro or Feather running CircuitPython, there's a single RGB LED on the board to help you know what's up. While '''code.py''' is running the status neopixel will be solid green. After it is finished, the neopixel will fade green on success or flash an error code on failure. Red flashes happen when data is written to the drive.
+
Si vous avez un Gemma, Trinket, Metro ou Feather exécutant CircuitPython, il y a une simple LED RGB sur la carte qui vous permet de connaître l'état de la carte.  
 +
* La led NeoPixel est VERT FIXE pendant l'exécution de '''code.py'''.  
 +
* La led NeoPixel est VERT PALE après l'exécution.
 +
* La led NeoPixel flash un code d'erreur en cas d'échec: flash en ROUGE arrive lorsque des données sont écrite sur le lecteur.
    +
{{ambox|text=Circuit Playground Express ne dispose pas de LED statut.}}
   −
{{ambox|text= Circuit Playground Express does not have this status LED}}
+
=== Débogage ===
 +
Est-ce que la LED clignote différentes couleurs? vous avez probablement un code d'erreur (ne vous inquiétez pas, cela arrive à d'autres). Le code Python est vérifié au moment de son exécution alors qu'un Arduino le vérifie au moment de la compilation. Il est nécessaire de se connecter sur la sortie série pour voir l'erreur CircuitPython (un peu comme le moniteur série d'Arduino).
   −
=== Debugging ===
+
Voyez [[FEATHER-CHARGER-MICROPYTHON-SERIAL-REPL|ce guide]] pour des instructions détaillées.
Did the status LED flash a bunch of colors at you? You may have an error in your code. Don't worry it happens to everyone. Python code is checked when you run it rather than before like Arduino does when it compiles. To see the CircuitPython error you'll need to connect to the serial output (like Arduino's serial monitor).
     −
See <a href="https://learn.adafruit.com/micropython-basics-how-to-load-micropython-on-a-board/serial-terminal">this guide</a> for detailed instructions.
+
Si vous êtes un nouveau dans le monde Python alors faite une petite recherche sur le net à l'aide de Google. Si vous ne trouvez pas de réponse alors essayez de poster votre question [https://forums.adafruit.com/viewforum.php?f=60 sur les forums d'Adafruit].
   −
If you are new to Python try googling the error first, if that doesn't find an answer feel free to drop by the <a href="https://forums.adafruit.com/viewforum.php?f=60">support forum</a>.
+
== Bibliothèques ==
 +
Utiliser des bibliothèques sur CircuitPython est aussi très facile. Faites un simple glisser/déposer dans le lecteur CIRCUITPY ou dans le répertoire {{fname|lib}} si vous désirez bien organiser votre code.
   −
== Libraries ==
+
Vous pouvez trouver des bibliothèques CircuitPython sur le [https://github.com/search?q=topic%3Acircuitpython GitHub d'Adafruit] et via les [https://learn.adafruit.com/category/circuitpython tutoriels CircuitPython sur le ''Learning System d'Adafruit''] .
Using libraries with CircuitPython is also super easy. Simply drag and drop libraries onto the CIRCUITPY drive or into a <code class="prettyprint">lib</code> folder on the drive to keep it tidy.
     −
Find CircuitPython libraries on GitHub using the <a href="https://github.com/search?q=topic%3Acircuitpython">topic</a> and through our <a href="https://learn.adafruit.com/category/circuitpython">tutorials</a>.
+
Assurez-vous que le bibliothèque est codée pour CircuitPython et non MicroPython. Il y a quelques différences qui pourrait empêcher du code MicroPython standard de fonctionner sur CircuitPython.
   −
Make sure the libraries are for CircuitPython and not MicroPython. There are some differences that may cause it to not work as expected.
+
== Plus d'information ==
 
  −
== More info ==
  −
 
  −
* <a href="https://learn.adafruit.com/category/micropython">Guides and Tutorials</a>
  −
* <a href="https://circuitpython.readthedocs.io/en/latest/">API Reference</a>
  −
* <a href="https://forums.adafruit.com/viewforum.php?f=60">Adafruit forum</a>
  −
* <a href="https://github.com/search?q=topic%3Acircuitpython">Libraries</a>
      +
* [https://learn.adafruit.com/category/micropython Guides et tutoriels MicroPython sur le Learning System d'Adafruit]
 +
* [https://circuitpython.readthedocs.io/en/latest/ Référence d'API MicroPython]
 +
* [https://forums.adafruit.com/viewforum.php?f=60 Forum d'Adafruit]
 +
* [https://github.com/search?q=topic%3Acircuitpython Le GitHub de CircuitPython]
    
{{FEATHER-M0-EXPRESS-TRAILER}}
 
{{FEATHER-M0-EXPRESS-TRAILER}}
29 917

modifications

Menu de navigation