Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
MicroPython-esp32-evb
(voir la source)
Version du 24 mai 2021 à 23:12
174 octets ajoutés
,
24 mai 2021 à 23:12
→Commander les Relais
Ligne 7 :
Ligne 7 :
[[Fichier:MicroPython-esp32-evb-relais.png]]
[[Fichier:MicroPython-esp32-evb-relais.png]]
+
+
+
<syntaxhighlight lang="python">
+
from machine import Pin
+
+
rel1 = Pin( 32, Pin.OUT )
+
rel2 = Pin( 33, Pin.OUT )
+
+
rel1.on()
+
rel1.off()
+
+
rel2.on()
+
rel2.off()
+
</syntaxhighlight>
== Où acheter ==
== Où acheter ==
* [https://shop.mchobby.be/product.php?id_product=1306 ESP32-EVB] @ MCHobby
* [https://shop.mchobby.be/product.php?id_product=1306 ESP32-EVB] @ MCHobby
* [https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware ESP32-EVB] @ Olimex
* [https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware ESP32-EVB] @ Olimex
Admin
Bureaucrates
,
Administrateurs
29 918
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable