projets:2019:stagerubanled
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
projets:2019:stagerubanled [2019/11/02 18:51] – christian.jacolot | projets:2019:stagerubanled [2019/11/30 14:39] – christian.jacolot | ||
---|---|---|---|
Ligne 71: | Ligne 71: | ||
* Stéphane Blanc | * Stéphane Blanc | ||
* Christian Jacolot | * Christian Jacolot | ||
- | * ... | + | * Benjamin |
===== Préparation du boîtier ===== | ===== Préparation du boîtier ===== | ||
Ligne 181: | Ligne 180: | ||
Fichier de présentation | Fichier de présentation | ||
+ | * Module NodeMCU ESP32 | ||
* ESP 32, arduino IDE, blink | * ESP 32, arduino IDE, blink | ||
* une LED RGB, connexion à l' | * une LED RGB, connexion à l' | ||
Ligne 186: | Ligne 186: | ||
* ruban LED RGB, connexion et programmation del' | * ruban LED RGB, connexion et programmation del' | ||
* Télécommande ESP32 du ruban de LED: | * Télécommande ESP32 du ruban de LED: | ||
- | * Wifi | + | * Wifi (page web de pilotage) |
- | * Bluetooth | + | * Bluetooth |
=== Code === | === Code === | ||
Ligne 193: | Ligne 193: | ||
Code ESP32 pour piloter une LED: | Code ESP32 pour piloter une LED: | ||
< | < | ||
+ | /* | ||
+ | * ESP32 LED Blink Example | ||
+ | * Board Module NodeMCU ESP32 | ||
+ | | ||
+ | * ON Board LED GPIO 2 | ||
+ | */ | ||
- | </ | + | #define LED 2 |
+ | void setup() { | ||
+ | // Set pin mode | ||
+ | pinMode(LED, | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | delay(500); | ||
+ | digitalWrite(LED, | ||
+ | delay(500); | ||
+ | digitalWrite(LED, | ||
+ | } | ||
+ | </ | ||
projets/2019/stagerubanled.txt · Dernière modification : 2024/04/16 22:26 de 127.0.0.1