| Ligne 3 : |
Ligne 3 : |
| | {{traduction}} | | {{traduction}} |
| | | | |
| − | To use MicroPython with the ESP8266 you'll need to first flash it with the latest MicroPython firmware. Follow the [http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/intro.html#deploying-the-firmware official instructions to load MicroPython ESP8266 firmware] which are summarized below.
| + | Avant d'utiliser MicroPython avec un ESP8266 il sera nécessaire de reflasher l'ESP8266 avec la dernière version de du firmware MicroPython. |
| | | | |
| − | First install the esptool.py software which enables firmware flashing on the ESP8266. The easiest way to install this tool is from Python's pip package manager. If you don't have it already you'll need to [https://www.python.org/downloads/ install Python 2.7] (make sure you check the box to put Python in your system path when installing on Windows) and then run the following command in a terminal:
| + | Nous vous proposons ce tutoriel condensé (abordable) mais vous pouvez également [http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/intro.html#deploying-the-firmware suivre les instructions officielles] (''micropython.org, anglais'') pour charger MicroPython sur un ESP8266. |
| | + | |
| | + | En tout premier lieu vous aurez également besoin [https://www.python.org/downloads/ d'installer Python 2.7] (n'oubliez pas de sélectionner l'option qui ajoute le programme python dans le PATH de recherche de windows). |
| | + | |
| | + | Ensuite, il est nécessaire d'installer le logiciel {{fname|esptool.py}} qui permet de flasher un firmware sur ESP8266. La façon la plus simple d'installer ce logiciel est d'utiliser '''pip''' (l'installateur de paquet python). |
| | + | |
| | + | Saisissez la commande suivante dans un terminal: |
| | | | |
| | <nowiki>pip install esptool</nowiki> | | <nowiki>pip install esptool</nowiki> |
| | | | |
| − | '''Note on Mac OSX and Linux''' you might need to run the command as root with sudo, like:
| + | {{underline|Note pour les utilisateurs de Mac OSX et Linux:}} vous pourriez avoir besoin d'exécuter cette commande en tant que root à l'aide d'un {{fname|sudo}} comme ceci: |
| | | | |
| | <nowiki>sudo pip install esptool</nowiki> | | <nowiki>sudo pip install esptool</nowiki> |
| Ligne 15 : |
Ligne 21 : |
| | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-20.png}} | | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-20.png}} |
| | | | |
| − | If you receive an error that esptool.py only supports Python 2.x try running again with the '''pip2''' command instead of pip (likely your system is using Python 3 and the pip command is getting confused which version to use).
| + | Si '''pip''' vous information que {{fname|esptool.py}} le fonctionne qu'avec Python 2.x alors essayer une nouvelle fois en utilisant '''pip2''' dans la commande à la place de pip (si votre système utilise Python 3 par défaut alors la commande pip pourrait conduire à une situation un peu confuse). |
| | | | |
| − | Next [http://micropython.org/download/#esp8266 download the latest MicroPython ESP8266 firmware file]. These firmware files are generated daily from the latest code on Github. If you'd like to build your own MicroPython ESP8266 firmware (like if you're customizing it or including other modules & scripts) check out [https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/overview this handy guide on compiling firmware in a special virtual machine].
| + | Ensuite, [http://micropython.org/download/#esp8266 téléchargez la dernière version du binaire du Firmware MicroPython pour ESP8266]. These firmware files are generated daily from the latest code on Github. If you'd like to build your own MicroPython ESP8266 firmware (like if you're customizing it or including other modules & scripts) check out [https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/overview this handy guide on compiling firmware in a special virtual machine]. |
| | | | |
| | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-21.png}} | | {{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-21.png}} |