python:micropython:materiel:espressif

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
python:micropython:materiel:espressif [2023/06/03 12:17] – [MicroPython - Les modules Espressif ESP32 et ESP8266] philpython:micropython:materiel:espressif [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1
Ligne 1: Ligne 1:
-[[:python:micropython:accueil|{{ :iconemaison.jpg?nolink&30|Sommaire MicroPython, CircuitPython}}]] 
- 
-===== MicroPython - Les modules Espressif ESP32 et ESP8266 ===== 
- 
-{{ :python:micropython:materiel:espmicrop.jpg?nolink|}} 
- 
-[Mise à jour le : 23/7/2021] 
- 
-  * **Ressources** 
-    * <html><a href="https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html" target="_blank">Getting started with MicroPython on the ESP8266</a></html> 
-    * <html><a href="https://docs.micropython.org/en/latest/esp32/tutorial/intro.html" target="_blank">Getting started with MicroPython on the ESP32</a></html> 
-    * <html><a href="https://micropython.org/" target="_blank">MicroPython.org</a></html> 
-    * <html><a href="https://docs.micropython.org/en/latest/index.html#" target="_blank">MicroPython documentation</a></html> 
-    * <html><a href="https://thonny.org/" target="_blank">IDE Thonny</a></html> 
-    * Exemples de code sur <html><a href="https://wiki.mchobby.be/index.php?title=MicroPython-Accueil" target="_blank">MCHobby</a></html> 
-        - <html><a href="https://randomnerdtutorials.com/flashing-micropython-firmware-esptool-py-esp32-esp8266/" target="_blank">Flashing MicroPython Firmware with esptool.py on ESP32 and ESP8266</a></html> 
-        - <html><a href="https://randomnerdtutorials.com/getting-started-micropython-esp32-esp8266/" target="_blank">Getting Started with MicroPython on ESP32 and ESP8266</a></html> 
-  * **Lectures connexes** 
-      * **Programmez** ! Juillet/Août 2019  
-      * **Elektor 489** Mai/Jui 2021 
- 
----- 
- 
-==== 1. Description des cartes ESPRESSIF ==== 
-    * Voir les Wikis Arduino  
-      * [[arduino:uc:esp8266|La carte ESP8266 Feather Huzzah]] 
-      * [[arduino:uc:esp32|La carte ESP32 Feather Huzzah]] 
-      * [[arduino:uc:esp01|Les cartes ESP01(S)]] 
- 
-==== 2. Installer MicroPython ==== 
-  * **Source** : <html><a href="https://docs.micropython.org/en/latest/esp32/tutorial/intro.html" target="_blank">Getting started with MicroPython on the ESP32</a></html> 
- 
-=== 2.1 En ligne de commande (sous Windows)=== 
-  * **Installer esptool** 
- 
-<note>esptool est un utilitaire basé sur Python, open source et indépendant de la plate-forme, permettant de communiquer avec le chargeur de démarrage ROM dans les puces Espressif ESP8266 et ESP32.</note> 
- 
-Ouvrir une console et entrer la commande suivante : 
- 
-<code bash *.bash> 
-pip install esptool 
-</code> 
- 
-//Exemple// 
-{{ :python:micropython:materiel:installesptool.png?nolink |}} 
- 
-  * **Effacer la mémoire flash** 
- 
-<code bash *.bash> 
-esptool --port <portcom> erase_flash  
-</code> 
- 
-//Exemple// 
-{{ :python:micropython:materiel:micropyesp32erase.png?nolink |}} 
-  * **Installer MicroPython** 
- 
-<note important>**Télécharger** la dernière **version stable** de MicroPython pour la carte ciblée <html><a href="https://micropython.org/download#esp8266" target="_blank">ici</a></html>.</note>  
- 
-// Exemple // 
-{{ :python:micropython:materiel:micropystable.png?nolink |}} 
-<code bash *.bash> 
-esptool --port <portcom> --baud <baudrate> write_flash --flash_size=detect 0 <path><firmware_name>.bin 
-</code> 
- 
-// Exemple // 
-{{ :python:micropython:materiel:micropyinstal.png?nolink |}} 
- 
-{{ :python:micropython:materiel:thonny.png?nolink&100|}} 
-=== 2.2 Avec l'IDE Thonny ===  
-  * <html><a href="https://thonny.org/" target="_blank">Thonny</a></html> est un environnement de développement intégré pour Python conçu pour les débutants. Il prend en charge différentes façons de parcourir le code, l'évaluation d'expression étape par étape, la visualisation détaillée de la pile d'appels et un mode pour expliquer les concepts de références et de tas. 
- 
-<note important>**Télécharger** la dernière **version stable** de MicroPython pour la carte ciblée <html><a href="https://micropython.org/download#esp8266" target="_blank">ici</a></html>.</note>  
- 
-  * **Connecter** le module au port USB du PC 
- 
-  * Ouvrir les options de Thonny (outils -> options) et sélectionner la carte en dépliant "**Port ou WebREPL**" 
-{{ :python:micropython:materiel:thonny1.png?nolink |}} 
- 
- 
-  * Cliquer sur "**Installer ou mettre à jour le firmware**". Sélectionner le port et l'image préalablement chargée  
- 
-{{ :python:micropython:materiel:thonny2.png?nolink |}} 
-====3. Se connecter à la console REPL ==== 
-  * **Source** : <html><a href="https://docs.micropython.org/en/latest/esp32/tutorial/intro.html" target="_blank">Getting started with MicroPython on the ESP32</a></html> 
- 
-<note>**REPL** pour **R**ead **E**val **P**rint **L**oop est un environnement de programmation informatique interactif simple qui prend les entrées d'un seul utilisateur, les exécute et renvoie le résultat; un programme écrit dans un environnement REPL est exécuté par morceaux.</note> 
- 
-=== 3.1 Connexion avec la ligne de commande (sous Windows)=== 
-  * Utiliser l'utilitaire **Putty**  
-//Exemple// 
-{{ :python:micropython:materiel:putty.png?nolink |}} 
- 
-//Test// 
-{{ :python:micropython:materiel:puttycom11.png?nolink |}} 
- 
-=== 3.2 Connexion avec l'IDE Thonny ===  
-{{ :python:micropython:materiel:thonn3.png?nolink |}} 
- 
- 
-====4. Configurer le Wifi ==== 
-  * **Source et plus loin...** : <html><a href="https://docs.micropython.org/en/latest/esp32/tutorial/intro.html" target="_blank">Getting started with MicroPython on the ESP32</a></html> 
- 
-  * **Test avec REPL** 
-<code python *.py> 
-import network 
-wlan = network.WLAN(network.STA_IF) 
-wlan.active(True) 
-wlan.connect('MON_SSID', 'MON_PASSWD') 
-print('network config:', wlan.ifconfig()) 
-</code> 
- 
- 
  
  • python/micropython/materiel/espressif.1685787457.txt.gz
  • Dernière modification : 2023/06/03 12:17
  • de phil