Schrek.fr

Mon super blog :)

  1. home
  2. posts
  3. 2023
  4. 10
  5. communiquer-avec-esp32

Communiquer avec l'Esp32

Cet article fait partie de la série: Esp32


Apres avoir installer Micropython sur notre Esp32, il va falloir communiquer avec.

Recevoir les informations, envoyer des fichiers pour le configurer.

Pour cela nous allons utiliser un environnement de développement ou IDE en anglais.

J’ai choisi Thonny

Installation de Thonny

$ bash <(curl -s https://thonny.org/installer-for-linux)

Configuration

Mon premier code

# import bibliotheque time et pin
import time
from machine import Pin

print("Bonjour ESP32")
# on defini le pin 2 en sortie (led)
p2 = Pin(2,Pin.OUT)
# faire clignoter la led
while True:
  p2.on()
  time.sleep_ms(500)
  p2.off()
  time.sleep_ms(500)

Liens

https://gcworks.fr/tutoriel/esp/LogicielThonny.html

https://www.upesy.fr/blogs/tutorials/install-micropython-on-esp32-quickly-with-thonny-ide#

https://fr.wikipedia.org/wiki/ESP32

https://fr.wikipedia.org/wiki/MicroPython

comments powered by Disqus